/* AidVeritas CSS - Digital Guardian Inspired Theme */
:root {
    --primary-blue: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-teal: #0d9488;
    --accent-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #ffffff;
}

/* Header & Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-blue);
    color: white !important;
}

/* Main Banner - Half Height */
.main-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0; /* Reduced from 4rem to make it half height */
    min-height: 25vh; /* Reduced from 50vh to make it half height */
    display: flex;
    align-items: center;
}

/* Page Header Banner - Same as home banner but for other pages */
.page-header-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    min-height: 25vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 25vh; /* Updated to match new banner height */
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.charity-card {
    border-left: 4px solid var(--primary-blue);
}

.charity-logo {
    border-radius: 0.5rem;
}

.charity-logo-placeholder {
    border-radius: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Search Bar */
.input-group .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
}

.input-group .btn {
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

/* Footer - Half Height with Banner Color */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%); /* Same as banner */
    color: white;
    padding: 1rem 0; /* Reduced from 2rem to make it half height */
}

.footer h5 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: none;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
    padding: 2rem;
    text-align: center;
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Dashboard Styles */
.sidebar {
    background: var(--gray-900);
    color: white;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.sidebar .nav-link {
    color: var(--gray-300);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--gray-800);
    color: white;
    border-left-color: var(--primary-blue);
}

.dashboard-main {
    background-color: var(--gray-50);
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-blue);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* Tables */
.table {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .main-banner {
        padding: 1rem 0; /* Further reduced for mobile */
        min-height: 20vh; /* Further reduced for mobile */
    }
    
    .page-header-banner {
        padding: 1rem 0;
        min-height: 20vh;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .footer {
        padding: 0.5rem 0; /* Further reduced for mobile */
    }
}

/* Security-themed elements */
.security-badge {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--secondary-teal) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.encryption-icon {
    color: var(--accent-green);
}

.trust-badge {
    border: 2px solid var(--accent-green);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    background: rgba(16, 185, 129, 0.05);
}

/* Make sure all primary elements use the same color scheme */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%) !important;
}

.sidebar .nav-link.active {
    background-color: var(--primary-blue) !important;
    border-left-color: var(--primary-blue) !important;
}

.stat-card {
    border-left: 4px solid var(--primary-blue);
}