:root {
    --primary-color: #ffb606;
    --primary-dark: #ffb606;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #333;
    --text-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* Header/Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.logout-btn {
    background-color: var(--danger-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    color: white;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* New: Hamburger Menu Icon */
.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it is above the content */
}


/* Hero Section - Updated for Image and Background control */
.hero {
    background: #fff; /* Base background */
    padding: 0; 
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* New: Hero Image Container for size control */
.hero-image-container {
    width: 100%;
    /* max-height on desktop can be adjusted if needed, but flex/block is better */
    display: flex;
    justify-content: center;
    padding: 2rem 0 0; /* Top padding to lift the image slightly if needed */
}

/* New: Hero Image styling for responsiveness and max-width */
.hero-image {
    max-width: 700px; /* Max size on desktop */
    width: 90%; 
    height: auto;
    display: block;
}

/* New: Hero Content Background (Yellow part below the image) */
.hero-content-bg {
    background-color: var(--primary-color); /* The requested #ffb606 background */
    color: white; 
    padding: 3rem 2rem; /* Padding for the content area */
    position: relative;
    z-index: 5;
}

/* Hero Content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: white;
}

/* Buttons (Existing styles, kept for completeness) */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

/* Form Styles (Existing) */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group,
.radio-group {
    margin-bottom: 1rem;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
    display: inline;
    margin-bottom: 0;
    margin-right: 1.5rem;
    cursor: pointer;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alerts (Existing) */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Container (Existing) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Table Styles (Existing) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
}

table thead {
    background-color: var(--light-bg);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    font-weight: 600;
    color: var(--text-dark);
}

table tr:hover {
    background-color: var(--light-bg);
}

/* Card Styles (Existing) */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Badge (Existing) */
.badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-pending {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Footer (Existing) */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Grid (Existing) */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Spacing Utilities (Existing) */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Text Utilities (Existing) */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }

.text-muted { color: var(--text-light); }

.font-bold { font-weight: bold; }
.font-italic { font-style: italic; }

/* File Upload (Existing) */
.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-label {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: var(--primary-dark);
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive Overrides (Mobile First) */
@media (max-width: 768px) {
    /* Header Responsive */
    .navbar {
        flex-wrap: wrap; 
        padding: 1rem;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon on mobile */
    }

    /* Hide menu by default, show when 'active' class is added by JS */
    #nav-menu {
        display: none; 
        width: 100%;
        order: 3; 
        background-color: var(--primary-dark);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    #nav-menu.active {
        display: block; 
    }

    .nav-links {
        flex-direction: column;
        gap: 0; 
        text-align: center;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:first-child {
        border-top: none;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        display: block;
        transition: background-color 0.3s;
    }

    .nav-links a.btn {
        margin: 0.5rem 0; 
        display: inline-block;
    }
    
    /* Hero Section Responsive */

    /* Image Control on Mobile */
    .hero-image-container {
        padding: 1rem 0 0; /* Less padding on mobile */
    }
    
    .hero-image {
        max-width: 200px; /* **Crucial Change**: Making image small on mobile */
        width: 80%; /* Ensure it's responsive within container */
    }

    .hero-content-bg {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.75rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content-bg {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Loading Spinner (Existing) */
.spinner {
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard & Admin (Existing) */
.dashboard-header {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-panel {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--text-dark);
    color: white;
    padding-top: 70px;
    overflow-y: auto;
}

.admin-main {
    margin-left: 250px;
    padding: 2rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-top: 0;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }

    .sidebar-menu li {
        flex: 1;
        border: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-menu a {
        padding: 0.75rem;
        text-align: center;
    }

    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
}