/* Global Black Farmers Cooperative - Custom Styles */

/* Custom fonts and variables */
:root {
    --primary-green: #059669;
    --primary-blue: #2563eb;
    --dark-green: #047857;
    --light-green: #d1fae5;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Hover effects for cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom gradient backgrounds */
.gradient-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.gradient-blue-green {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
}

/* Custom button styles */
.btn-primary {
    background-color: var(--primary-green);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Mobile menu toggle */
.mobile-menu-open {
    display: block;
}

.mobile-menu-closed {
    display: none;
}

/* Credit score indicator */
.credit-score {
    position: relative;
    display: inline-block;
}

.credit-score::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    border-radius: 2px;
}

/* Loan status badges */
.badge-active {
    background-color: #d1fae5;
    color: #047857;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-watchlist {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-barred {
    background-color: #fed7aa;
    color: #9a3412;
}

.badge-debarred {
    background-color: #fecaca;
    color: #991b1b;
}

/* Forum post styles */
.forum-post {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.forum-post:hover {
    border-left-color: var(--primary-green);
    background-color: #f9fafb;
}

/* Media player custom styling */
audio {
    width: 100%;
    height: 40px;
}

audio::-webkit-media-controls-panel {
    background-color: #1f2937;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(400px); }
    to { transform: translateX(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}