/* === BRIDGE AFRIKA - Complete Stylesheet === */
:root {
    --primary: #1A237E;
    --primary-dark: #0D1442;
    --primary-light: #3949AB;
    --accent: #8B1538;
    --accent-light: #A91D45;
    --accent-gold: #F59E0B;
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --info: #0284C7;
    --dark: #0F172A;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { color: var(--primary-dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
.text-accent { color: var(--accent) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 600;
    border: none; cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-light); color: var(--white); }
.btn-gold { background: var(--accent-gold); color: var(--dark); }
.btn-gold:hover { background: #D97706; color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-light { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* === FORMS === */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: var(--gray-700); }
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--gray-300); border-radius: var(--radius);
    font-size: 0.95rem; transition: border-color 0.2s;
    background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,35,126,0.1); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: auto; }

/* === ALERTS === */
.alert {
    padding: 12px 20px; border-radius: var(--radius);
    margin-bottom: 1rem; font-size: 0.9rem;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* === CARDS === */
.card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 24px; }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--gray-200); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); }

/* === GRID UTILITIES === */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === MARGIN & PADDING === */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.ml-1 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.5rem; }
.p-0 { padding: 0; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* === FLEX === */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* === BADGE === */
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 2px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: var(--primary); color: var(--white); }
.badge-accent { background: var(--accent); color: var(--white); }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-light { background: var(--gray-100); color: var(--gray-700); }

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white); position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
}
.logo a { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo img { height: 40px; width: auto; }

.main-nav ul { display: flex; gap: 8px; }
.main-nav ul li a {
    color: rgba(255,255,255,0.85); padding: 8px 14px;
    border-radius: var(--radius); font-size: 0.88rem; font-weight: 500;
    transition: all 0.2s;
}
.main-nav ul li a:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-icon {
    position: relative; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.1);
    color: var(--white); font-size: 1.1rem;
    transition: background 0.2s;
}
.btn-icon:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.btn-icon .badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; font-size: 0.65rem;
    padding: 0 4px; border-radius: 10px;
}

.user-dropdown { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: none;
    color: var(--white); padding: 6px 12px;
    border-radius: var(--radius); cursor: pointer;
    font-size: 0.9rem; transition: background 0.2s;
}
.user-btn:hover { background: rgba(255,255,255,0.2); }
.avatar-sm {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
}
.dropdown-arrow { font-size: 0.6rem; margin-left: 2px; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 5px;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); min-width: 200px; z-index: 100;
    overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a {
    display: block; padding: 10px 16px; color: var(--gray-700);
    font-size: 0.88rem; transition: background 0.2s;
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--primary); }
.dropdown-menu hr { margin: 4px 0; border: none; border-top: 1px solid var(--gray-200); }

.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; }

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white); padding: 80px 0 60px;
    text-align: center; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80') center/cover;
    opacity: 0.08;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 { font-size: 2.8rem; color: var(--white); margin-bottom: 16px; }
.hero-section p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }

/* === FORM PAGE === */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 200px); padding: 40px 20px;
}
.auth-card {
    width: 100%; max-width: 480px; background: var(--white);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: 40px;
}
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--gray-500); margin-bottom: 30px; }
.auth-footer { text-align: center; margin-top: 20px; color: var(--gray-500); font-size: 0.9rem; }

/* === DASHBOARD === */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
    background: var(--white); padding: 24px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); text-align: center;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 4px; }
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 8px; }

.section-title {
    font-size: 1.5rem; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between;
}

/* === PROJECT CARDS === */
.project-card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.project-card .card-body { padding: 20px; }
.project-card .project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.project-card .project-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 12px; }
.project-card .progress-bar {
    height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin: 10px 0;
}
.project-card .progress-bar .progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--success), var(--accent));
    border-radius: 3px; transition: width 0.3s;
}
.project-card .project-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* === STAGE INDICATOR === */
.stage-indicator { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.stage-dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    border: 2px solid var(--gray-300); color: var(--gray-400);
    background: var(--white);
}
.stage-dot.completed { background: var(--success); border-color: var(--success); color: var(--white); }
.stage-dot.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.stage-line { flex: 1; height: 2px; background: var(--gray-300); }
.stage-line.completed { background: var(--success); }

/* === LIST === */
.list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--gray-200);
}
.list-item:last-child { border-bottom: none; }

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white); padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px; text-align: center; font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.8); }

/* === MISC === */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state .icon { font-size: 4rem; margin-bottom: 16px; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.avatar-lg {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: var(--white);
}
.tag {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    background: var(--gray-100); color: var(--gray-600);
    font-size: 0.8rem; margin: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 16px; z-index: 100; box-shadow: var(--shadow-lg); }
    .main-nav.show { display: block; }
    .main-nav ul { flex-direction: column; }
    .hamburger { display: flex; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero-section h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .auth-card { padding: 24px; }
    .user-name { display: none; }
    .header-actions .btn span { display: none; }
}
@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
