/* ============================================ */
/* COMPLETE MERGED CSS - Rockfields Portal      */
/* ============================================ */

/* CSS Variables for consistent theming */
:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --secondary: #667eea;
    --secondary-dark: #5a67d8;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --dark: #343a40;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.5;
}

/* Header */
header {
    background: var(--white);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid #e0e0e0;
}

header img {
    max-width: 100%;
    height: auto;
}

.heading {
    align-self: center;
}

/* Navigation Sidebar */
nav {
    float: left;
    width: 260px;
    background: var(--white);
    border-radius: var(--radius-md);
    margin: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    border-bottom: 1px solid #eee;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #444;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

nav ul li a i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
}

nav ul li a:hover {
    background: var(--primary);
    color: white;
    padding-left: 28px;
}

nav ul li a:hover i {
    color: white;
}

/* Main Content Area */
article {
    float: left;
    width: calc(100% - 280px);
    margin-left: 10px;
    padding: 20px;
    background: transparent;
    min-height: calc(100vh - 200px);
}

/* Clear floats */
section:after {
    content: "";
    display: table;
    clear: both;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    margin: 10px;
    border-radius: var(--radius-md);
    clear: both;
}

/* ============================================ */
/* TOP NAVIGATION BAR */
/* ============================================ */

.topnav {
    overflow: hidden;
    background-color: var(--primary);
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.nav1 {
    list-style-type: none;
    margin-left: 0;
    overflow: hidden;
    background-color: green;
    padding: 0;
    margin: 4px 0px 4px;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--primary);
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 12px;
    text-decoration: none;
}

li {
    float: left;
}

li a, .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 10px 12px;
    text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
    background-color: black;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ============================================ */
/* FORM ELEMENTS */
/* ============================================ */

input[type=password],
input[type=text],
input[type=email],
select {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=checkbox] {
    width: 100%;
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit], button {
    width: fit-content;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

input[type=submit]:hover, button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Button Groups */
.btn {
    background-color: transparent;
    margin-bottom: 15px;
}

.btn a {
    background-color: var(--primary);
    color: white;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    margin: 2px;
    transition: var(--transition);
}

.btn a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================ */
/* CARD COMPONENTS */
/* ============================================ */

.card, .form-card, .booking-section, .edit-card,
.student-list-card, .results-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.card h3, .form-card h3, .booking-section h3,
.edit-card h3, .student-list-card h3, .results-card h3 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.stat-card .label {
    color: var(--gray);
    font-size: 13px;
    margin-top: 8px;
}

/* Dashboard Row */
.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    font-size: 16px;
}

/* Progress Bars */
.progress-item {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.progress-bar-bg {
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    height: 8px;
}

.progress-fill {
    background: var(--primary);
    height: 8px;
    border-radius: 20px;
    transition: width 0.5s;
}

/* Bus Items */
.bus-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.bus-name {
    font-weight: 600;
    width: 100px;
}

.bus-stats {
    flex: 1;
    margin: 0 15px;
}

.bus-badge {
    width: 70px;
    text-align: right;
    font-weight: bold;
}

/* ============================================ */
/* FORM GRID */
/* ============================================ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 13px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Student Info Display */
.student-info {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: white;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
}

/* ============================================ */
/* TABLE STYLES */
/* ============================================ */

.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-md);
}

.data-table, .booking-table, .bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table th, .data-table td,
.booking-table th, .booking-table td,
.bookings-table th, .bookings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th, .booking-table th, .bookings-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.data-table tr:hover, .booking-table tr:hover, .bookings-table tr:hover {
    background: #f9f9f9;
}

/* Action Buttons for Tables */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edit_btn, .btn-edit {
    background: var(--warning);
    color: #333;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.del_btn, .btn-delete {
    background: var(--danger);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view {
    background: var(--info);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12px;
}

.btn-transport {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12px;
}

.edit_btn:hover, .del_btn:hover, .btn-view:hover, .btn-transport:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
    color: white;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.quick-btn {
    background: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================ */
/* SEARCH SECTION */
/* ============================================ */

.search-card, .search-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
    color: white;
}

.search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-form .form-group {
    flex: 1;
    min-width: 200px;
}

.search-form input,
.search-form select {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.search-form button {
    background: var(--warning);
    color: #333;
    padding: 10px 25px;
}

/* Live Search Box */
.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    width: 250px;
    font-size: 14px;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background: #f5f5f5;
}

/* ============================================ */
/* STATUS BADGES */
/* ============================================ */

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-confirmed { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.badge-route {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* ============================================ */
/* MESSAGES */
/* ============================================ */

.message-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

/* ============================================ */
/* PROFILE PAGE */
/* ============================================ */

.view-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 48px;
}

.profile-body {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ============================================ */
/* COUNTDOWN TIMER */
/* ============================================ */

.countdown-banner {
    background: var(--primary);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

.countdown-clock {
    font-size: 28px;
    font-weight: bold;
    font-family: monospace;
}

.window-closed-banner {
    background: var(--danger);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.col-1, .col-2 {
    display: inline-block;
    width: fit-content;
    padding: 12px;
    margin: 4px;
    background: white;
    border-radius: 8px;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 10px; }
.mb-2 { margin-bottom: 10px; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 10px; }

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 992px) {
    nav { width: 220px; }
    article { width: calc(100% - 240px); }
}

@media (max-width: 768px) {
    nav, article {
        width: 100%;
        float: none;
        margin: 10px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form .form-group {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-btn {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-body {
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card .number {
        font-size: 24px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}
/* ============================================ */
/* LOGIN PAGE STYLES */
/* ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-header h4 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ============================================ */
/* DASHBOARD SECTION */
/* ============================================ */

.dashboard-section {
    padding: 10px;
}

.dashboard-nav {
    float: left;
    width: 260px;
    margin: 10px;
}

.dashboard-content {
    float: left;
    width: calc(100% - 280px);
    margin-left: 10px;
    padding: 20px;
    background: transparent;
    min-height: calc(100vh - 200px);
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    color: white;
}

.welcome-card h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.welcome-card p {
    margin: 0;
    opacity: 0.9;
}

.session-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
}



/* Dropdown in side navigation */
.dropdown-side {
    position: relative;
}

.dropdown-side > a {
    position: relative;
}

.dropdown-side > a i.fa-chevron-down {
    margin-left: auto;
    font-size: 12px;
}

.dropdown-side-content {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.dropdown-side-content li a {
    padding-left: 48px;
    font-size: 13px;
}

.dropdown-side:hover .dropdown-side-content {
    display: block;
}

/* ============================================ */
/* RESPONSIVE FIXES FOR DASHBOARD */
/* ============================================ */

@media (max-width: 992px) {
    .dashboard-nav {
        width: 220px;
    }
    .dashboard-content {
        width: calc(100% - 240px);
    }
}

@media (max-width: 768px) {
    .dashboard-nav, .dashboard-content {
        width: 100%;
        float: none;
        margin: 10px 0;
    }
    
    .welcome-card h1 {
        font-size: 20px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
}
/* Add these to the end of your css/styles.css file */

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #eee;
}

.info-table td {
    padding: 10px 0;
}

/* Info Note */
.info-note {
    margin-top: 15px;
    color: #666;
    font-size: 13px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Dashboard Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    color: white;
}

.welcome-card h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.welcome-card p {
    margin: 0;
    opacity: 0.9;
}

.session-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
}

/* Dashboard Section Layout */
.dashboard-section {
    padding: 10px;
}

.dashboard-nav {
    float: left;
    width: 260px;
    margin: 10px;
}

.dashboard-content {
    float: left;
    width: calc(100% - 280px);
    margin-left: 10px;
    padding: 20px;
    background: transparent;
    min-height: calc(100vh - 200px);
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-nav {
        width: 220px;
    }
    .dashboard-content {
        width: calc(100% - 240px);
    }
}

@media (max-width: 768px) {
    .dashboard-nav, .dashboard-content {
        width: 100%;
        float: none;
        margin: 10px 0;
    }
    .welcome-card h1 {
        font-size: 20px;
    }
}
/* ============================================ */
/* SIDEBAR STYLES - FIXED LAYOUT */
/* ============================================ */

/* Profile Section in Sidebar */
.profile-section {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.profile-avatar-small {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 32px;
    color: white;
}

.profile-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.profile-info p {
    margin: 0 0 5px 0;
    font-size: 11px;
    color: #666;
}

.role-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    margin: 8px 0;
}

.logout-link {
    display: inline-block;
    color: #dc3545;
    text-decoration: none;
    font-size: 12px;
    margin-top: 5px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* ============================================ */
/* SIDEBAR STYLES - No green background, green text */
/* ============================================ */

/* Side Navigation - Updated */
.side-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
}

.side-nav li {
    border-bottom: 1px solid #eee;
}

.side-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    background: transparent;
}

.side-nav li a i {
    width: 20px;
    color: var(--primary);
    font-size: 14px;
}

.side-nav li a:hover {
    background: #f5f5f5;
    color: var(--primary);
    padding-left: 28px;
}

.side-nav li a:hover i {
    color: var(--primary);
}

/* Remove green background from active/hover states */
.side-nav li a:active,
.side-nav li a:focus {
    background: transparent;
    color: var(--primary);
}

/* Profile section - keep as is */
.profile-section {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.profile-avatar-small {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 32px;
    color: white;
}

.profile-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.profile-info p {
    margin: 0 0 5px 0;
    font-size: 11px;
    color: #666;
}

.role-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    margin: 8px 0;
}

.logout-link {
    display: inline-block;
    color: #dc3545;
    text-decoration: none;
    font-size: 12px;
    margin-top: 5px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Dashboard Section - Side by Side Layout */
.dashboard-section {
    display: flex;
    gap: 15px;
    padding: 10px;
    min-height: calc(100vh - 150px);
}

.dashboard-nav {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dashboard-content {
    flex: 1;
    background: transparent;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-section {
        flex-direction: column;
    }
    
    .dashboard-nav {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .dashboard-content {
        width: 100%;
    }
}

/* Fix for article and nav floats - override old styles */
section .dashboard-nav,
section .dashboard-content {
    float: none;
}

/* Remove old conflicting styles */
section:after {
    content: "";
    display: table;
    clear: both;
}
/* ============================================ */
/* DASHBOARD LAYOUT - SIDEBAR + CONTENT SIDE BY SIDE */
/* ============================================ */

/* Main Layout Container */
.dashboard-layout {
    display: flex;
    gap: 20px;
    padding: 15px;
    min-height: calc(100vh - 150px);
}

/* Sidebar - Fixed width on left */
.dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Main Content - Takes remaining space */
.dashboard-main {
    flex: 1;
    background: transparent;
}

/* Profile Section in Sidebar */
.profile-section {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.profile-avatar-small {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 32px;
    color: white;
}

.profile-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.profile-info p {
    margin: 0 0 5px 0;
    font-size: 11px;
    color: #666;
}

.role-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    margin: 8px 0;
}

.logout-link {
    display: inline-block;
    color: #dc3545;
    text-decoration: none;
    font-size: 12px;
    margin-top: 5px;
}

.logout-link:hover {
    text-decoration: underline;
}



/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    color: white;
}

.welcome-card h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.welcome-card p {
    margin: 0;
    opacity: 0.9;
}

.session-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #eee;
}

.info-table td {
    padding: 10px 0;
}

/* Info Note */
.info-note {
    margin-top: 15px;
    color: #666;
    font-size: 13px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
}
/* ============================================ */
/* CONSISTENT PAGE LAYOUT FOR ALL PAGES */
/* ============================================ */

/* Main Layout Container - Use this for all pages */
.page-layout {
    display: flex;
    gap: 20px;
    padding: 15px;
    min-height: calc(100vh - 150px);
}

/* Sidebar - Fixed width on left */
.page-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Main Content - Takes remaining space */
.page-content {
    flex: 1;
    background: transparent;
}

/* Remove old conflicting styles */
section nav,
section article {
    float: none;
    width: auto;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }
    
    .page-sidebar {
        width: 100%;
    }
}
/* ============================================ */
/* CRITICAL FIXES - SIDEBAR LAYOUT */
/* ============================================ */

/* Main Layout Container */
.page-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    padding: 15px;
    min-height: calc(100vh - 150px);
    width: 100%;
}

/* Sidebar - Fixed width on left */
.page-sidebar {
    width: 280px !important;
    flex-shrink: 0 !important;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Main Content - Takes remaining space */
.page-content {
    flex: 1 !important;
    background: transparent;
    min-width: 0;
}

/* Remove any conflicting float styles */
.page-sidebar,
.page-content {
    float: none !important;
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.profile-avatar-small {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
}

.profile-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.profile-info p {
    margin: 0 0 5px 0;
    font-size: 11px;
    color: #666;
}

.role-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    margin: 8px 0;
}

.logout-link {
    display: inline-block;
    color: #dc3545;
    text-decoration: none;
    font-size: 12px;
    margin-top: 5px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Side Navigation */
.side-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
}

.side-nav li {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
}

.side-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    background: transparent;
}

.side-nav li a i {
    width: 20px;
    color: #4CAF50;
    font-size: 14px;
}

.side-nav li a:hover {
    background: #f5f5f5;
    color: #4CAF50;
    padding-left: 28px;
}

.side-nav li a:hover i {
    color: #4CAF50;
}

/* Responsive */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column !important;
    }
    .page-sidebar {
        width: 100% !important;
    }
}
/* ============================================ */
/* PAGE LAYOUT - Sidebar + Content */
/* ============================================ */

.page-layout {
    display: flex;
    gap: 20px;
    padding: 15px;
    min-height: calc(100vh - 150px);
}

.page-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.page-content {
    flex: 1;
    background: transparent;
}

/* Sidebar Profile Section */
.profile-section {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.profile-avatar-small {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 32px;
    color: white;
}

.profile-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.profile-info p {
    margin: 0 0 5px 0;
    font-size: 11px;
    color: #666;
}

.role-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    margin: 8px 0;
}

.logout-link {
    display: inline-block;
    color: #dc3545;
    text-decoration: none;
    font-size: 12px;
    margin-top: 5px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Side Navigation */
.side-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
}

.side-nav li {
    border-bottom: 1px solid #eee;
}

.side-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    background: transparent;
}

.side-nav li a i {
    width: 20px;
    color: var(--primary);
    font-size: 14px;
}

.side-nav li a:hover {
    background: #f5f5f5;
    color: var(--primary);
    padding-left: 28px;
}

.side-nav li a:hover i {
    color: var(--primary);
}

/* View Student Page */
.view-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 48px;
}

.profile-body {
    padding: 30px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
}

.btn-back, .btn-edit-profile, .btn-book {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-edit-profile {
    background: #ffc107;
    color: #333;
}

.btn-book {
    background: #28a745;
    color: white;
}

.btn-back:hover, .btn-edit-profile:hover, .btn-book:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }
    .page-sidebar {
        width: 100%;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
}
/* ============================================ */
/* PAGINATION STYLES */
/* ============================================ */

.pagination-container {
    margin-top: 25px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    background: white;
}

.pagination a:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination .active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
    background: #f5f5f5;
}

.page-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
}

@media (max-width: 768px) {
    .pagination a, .pagination span {
        padding: 5px 10px;
        font-size: 12px;
    }
}
/* ============================================ */
/* ROUTES MANAGEMENT STYLES - Add to styles.css */
/* ============================================ */

.routes-container {
    padding: 20px;
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.action-btn {
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #dee2e6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.1);
}

/* Buttons */
.btn-submit {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edit-link {
    background: #17a2b8;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.delete-link {
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.edit-link:hover, .delete-link:hover {
    opacity: 0.8;
    color: white;
}

/* Badge */
.badge-route {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* Page Info */
.page-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .routes-container {
        padding: 10px;
    }
    .form-row {
        flex-direction: column;
    }
    .form-group {
        width: 100%;
    }
    .action-buttons {
        flex-direction: column;
    }
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .action-bar {
        flex-direction: column;
    }
    .action-btn {
        justify-content: center;
    }
}
/* ============================================ */
/* BUS MANAGEMENT STYLES - Add to styles.css   */
/* ============================================ */

.buses-container {
    padding: 20px;
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.action-btn {
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #dee2e6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.action-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 13px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* List Card */
.list-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.list-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-view {
    background: #17a2b8;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-edit {
    background: #ffc107;
    color: #333;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view:hover, .btn-edit:hover, .btn-delete:hover {
    opacity: 0.8;
    color: white;
}

/* Badge */
.badge-route {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* Page Info */
.page-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-data a {
    color: #4CAF50;
    text-decoration: none;
}

.no-data a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination-container {
    margin-top: 25px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    background: white;
}

.pagination a:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination .active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .buses-container {
        padding: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .pagination a, .pagination span {
        padding: 5px 10px;
        font-size: 12px;
    }
}
/* ============================================ */
/* EDIT BUS PAGE STYLES - Add to styles.css    */
/* ============================================ */

.editbus-container {
    padding: 20px;
}

/* Search Card */
.search-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    color: white;
}

.search-card h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.1rem;
}

.search-card p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 13px;
}

.search-form .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-form .form-group {
    flex: 1;
    min-width: 200px;
}

.search-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    opacity: 0.9;
}

.search-form select,
.readonly-input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.readonly-input {
    background: rgba(255,255,255,0.9);
    cursor: not-allowed;
}

.btn-search {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    background: #ffcd39;
    transform: translateY(-1px);
}

/* Edit Card */
.edit-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.edit-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bus Info */
.bus-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

/* Edit Form */
.edit-form {
    margin-top: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 13px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-update {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-update:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-1px);
}

/* Reference Card */
.reference-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.reference-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Container */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* Badge */
.badge-route {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-edit {
    background: #17a2b8;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-edit:hover {
    opacity: 0.8;
    color: white;
}

/* Messages */
.message-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-data a {
    color: #4CAF50;
    text-decoration: none;
}

.no-data a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .editbus-container {
        padding: 10px;
    }
    
    .search-form .form-row {
        flex-direction: column;
    }
    
    .search-form .form-group {
        width: 100%;
    }
    
    .form-grid {
        grid-template-forms: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button,
    .form-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ============================================ */
/* MOBILE RESPONSIVE FIXES - Sidebar & Topnav   */
/* ============================================ */

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Hide sidebar by default on mobile */
    .page-sidebar {
        position: fixed !important;
        left: -280px !important;
        top: 0 !important;
        width: 280px !important;
        height: 100% !important;
        z-index: 999 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
    }
    
    /* When sidebar is open */
    .page-sidebar.open {
        left: 0 !important;
    }
    
    /* Show mobile toggle button */
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Show overlay when sidebar is open */
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Main content takes full width */
    .page-content {
        width: 100% !important;
        padding: 15px !important;
    }
    
    /* Topnav - Make it responsive */
    .topnav ul {
        display: flex;
        flex-wrap: wrap;
    }
    
    .topnav li {
        float: none;
    }
    
    /* Adjust dropdown for mobile */
    .topnav .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
    }
    
    /* Make quick actions stack vertically */
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .quick-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Stats grid - single column */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Dashboard row - single column */
    .dashboard-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Form rows - single column */
    .form-row {
        flex-direction: column !important;
    }
    
    .form-row .form-group {
        width: 100% !important;
    }
    
    /* Table horizontal scroll */
    .table-wrapper {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    /* Cards - less padding */
    .card, .dashboard-card, .selection-card {
        padding: 15px !important;
    }
    
    /* Welcome card smaller text */
    .welcome-card h1 {
        font-size: 20px !important;
    }
    
    /* Action buttons stack */
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons .btn-icon,
    .action-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* Tablet Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .page-sidebar {
        width: 240px !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .dashboard-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

