:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #10b981;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
body { background-color: var(--background); color: var(--text-main); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: var(--primary-color); }
main { flex: 1; }

/* Header & Dropdown */
.header {
    background-color: var(--surface); padding: 1rem 5%; box-shadow: var(--shadow-sm);
    display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100;
}
.responsive-logo { height: 26px; width: auto; vertical-align: middle; transition: var(--transition); }
.logo a { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links > a:not(.btn), .dropdown > a { color: var(--text-main); font-weight: 500; transition: var(--transition); }
.nav-links > a:not(.btn):hover, .dropdown > a:hover { color: var(--primary-color); }

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; background-color: white; min-width: 200px;
    box-shadow: var(--shadow-md); z-index: 1; border-radius: var(--radius-md); overflow: hidden; top: 100%;
}
.dropdown-content a { color: var(--text-main); padding: 12px 16px; display: block; font-size: 0.875rem; border-bottom: 1px solid var(--border-color); }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #f1f5f9; color: var(--primary-color); }
.dropdown:hover .dropdown-content { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 2rem; border-radius: var(--radius-md); font-weight: 600; transition: var(--transition); cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background-color: var(--primary-color); color: #ffffff !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); color: white; }

/* Hero Section */
.hero { padding: 4rem 5%; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); overflow: hidden; }
.hero-content { flex: 1; max-width: 600px; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }

/* Features */
.features { padding: 4rem 5%; background: white; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--background); border: 1px solid var(--border-color); transition: var(--transition); text-align: center; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.feature-icon { color: var(--primary-color); margin-bottom: 1rem; }

/* Forms */
.form-container { max-width: 800px; margin: 3rem auto; background: white; padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-main); font-size: 0.875rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 0.95rem; background: var(--background); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); background: white; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-group input { margin-top: 0.25rem; }
.checkbox-group label { font-size: 0.875rem; color: var(--text-muted); line-height: 1.4; }

/* Alerts */
.alert { padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; font-weight: 500; font-size: 0.875rem; }
.alert-success { background-color: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.alert-danger { background-color: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.alert-warning { background-color: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* Content Pages (Legal, FAQ, etc) */
.content-section { max-width: 800px; margin: 3rem auto; padding: 0 5%; }
.content-section h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-main); }
.content-section h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--text-main); }
.content-section p, .content-section li { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.content-section ul { margin-left: 1.5rem; margin-bottom: 1rem; }

/* Admin Dashboard Sidebar Layout */
.admin-layout { display: flex; min-height: 100vh; background: #f8fafc; }
.admin-sidebar { width: 260px; background: #ffffff; box-shadow: 2px 0 15px rgba(0,0,0,0.03); border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; flex-shrink: 0; z-index: 10; }
.sidebar-logo { height: 72px; padding: 0 1.5rem; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center; }
.sidebar-nav { display: flex; flex-direction: column; padding: 1.5rem 0; gap: 0.5rem; }
.sidebar-nav a { margin: 0 1rem; padding: 0.875rem 1.25rem; color: var(--text-muted); font-weight: 500; transition: var(--transition); border-radius: var(--radius-md); display: flex; align-items: center; }
.sidebar-nav a:hover { background: #f1f5f9; color: var(--text-main); }
.sidebar-nav a.active { background: var(--primary-color); color: white; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; }
.admin-header { height: 72px; background: #ffffff; padding: 0 2rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: flex-end; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }

/* Admin Dashboard Table Area */
.dashboard-container { padding: 2rem; width: 100%; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.table-responsive { overflow-x: auto; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 0.875rem; }
.admin-table th { background-color: var(--background); font-weight: 600; color: var(--text-muted); }
.admin-table tr:hover { background-color: #f8fafc; }
.status-badge { padding: 0.25rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-processing { background: #e0f2fe; color: #0369a1; }
.action-btn { padding: 0.375rem 0.75rem; border-radius: var(--radius-md); font-size: 0.75rem; border: none; cursor: pointer; font-weight: 500; margin-right: 0.5rem; }
.btn-approve { background: var(--secondary-color); color: white; }
.btn-reject { background: #ef4444; color: white; }

/* Footer */
.footer { background-color: #0f172a; color: #cbd5e1; padding-top: 4rem; margin-top: auto; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 0 5%; max-width: 1400px; margin: 0 auto; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.footer-desc { font-size: 0.875rem; margin-bottom: 1.5rem; line-height: 1.6; }
.contact-info p { font-size: 0.875rem; margin-bottom: 0.5rem; }
.contact-info strong { color: white; }
.footer-col h4 { color: white; font-size: 1.125rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: #cbd5e1; font-size: 0.875rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-color); padding-left: 0.25rem; }
.footer-disclaimer { border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; padding: 1.5rem 5%; margin: 3rem 0 0; text-align: justify; font-size: 0.75rem; line-height: 1.6; color: #94a3b8; }
.footer-disclaimer strong { color: #cbd5e1; }
.footer-bottom { text-align: center; padding: 1.5rem; font-size: 0.875rem; }

@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* Professional Form Cards */
.form-section-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--background);
    color: var(--primary-color);
    border-radius: 50%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .nav-links { gap: 1rem; }
    .nav-links > a, .dropdown > a { font-size: 0.9rem; }
    .btn-primary { padding: 0.5rem 1rem !important; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 3rem; }
    .hero h1 { font-size: 2.5rem; }
    
    .responsive-logo { height: 18px; }
    
    /* Responsive Header */
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 1rem 5%;
        box-shadow: var(--shadow-md);
        align-items: flex-start;
        gap: 1.25rem;
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .nav-links > a, .dropdown { width: 100%; }
    .dropdown-content { position: static; box-shadow: none; border-left: 2px solid var(--border-color); margin-top: 0.5rem; display: none; }
    .dropdown:hover .dropdown-content { display: block; }
    .nav-links .btn { width: 100%; justify-content: center; }
    
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Admin Mobile Responsiveness */
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; padding: 1rem 0; border-right: none; border-bottom: 1px solid #e2e8f0; position: relative; z-index: 10; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 0.5rem 0; }
    .sidebar-nav a { margin: 0.25rem; padding: 0.5rem 1rem; font-size: 0.85rem; }
    .admin-header { display: none; }
    .dashboard-container { padding: 1rem; }
}

@media (max-width: 992px) {
    /* Admin view application inline grids override */
    div[style*="grid-template-columns: 2fr 1fr"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns: 1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
}
