/* Admin Panel Styles for SkyRoute Cars */

:root {
    /* Color Palette */
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f1f38;
    --accent-color: #e67e22;
    --accent-light: #f39c12;
    --success-color: #27ae60;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* =================================
   ADMIN PANEL STYLES
================================= */

/* Admin Body */
.admin-body {
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.login-header {
    background: var(--primary-color);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h1 {
    margin: 0 0 8px 0;
    font-size: 2em;
    font-weight: 700;
}

.login-header h2 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 400;
    opacity: 0.9;
}

.login-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 0 30px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-logo h2 {
    margin: 0 0 5px 0;
    font-size: 1.5em;
    font-weight: 700;
}

.admin-logo p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9em;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

.admin-nav-item svg {
    flex-shrink: 0;
}

.logout-btn {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px !important;
}

/* Admin Main Content */
.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    background: #f5f7fa;
    max-width: 100%;
    overflow-x: hidden;
    min-width: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: 2em;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.btn-secondary {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-details h3 {
    margin: 0 0 5px 0;
    font-size: 2em;
    color: var(--text-dark);
    font-weight: 700;
}

.stat-details p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9em;
}

/* Admin Section */
.admin-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.4em;
    color: var(--text-dark);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Admin Filters */
.admin-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Admin Table */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    color: var(--text-dark);
    font-size: 0.95em;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.001);
    transition: all 0.2s ease;
}

/* DataTables Customization */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    overflow: visible;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    margin-left: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background: white;
    color: #4a5568;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 250px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
    background: #fffef9;
}

.dataTables_wrapper .dataTables_filter label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9em;
}

.dataTables_wrapper .dataTables_length select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 8px;
    font-size: 0.9em;
    background: white;
    color: #4a5568;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.dataTables_wrapper .dataTables_length label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9em;
}

/* Top controls styling */
.dataTables_wrapper .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #e67e22, #f39c12) !important;
    color: white !important;
    border: 2px solid #e67e22 !important;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4) !important;
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
    border: 2px solid #f39c12 !important;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3) !important;
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: white !important;
    color: #4a5568 !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
}

/* Previous/Next buttons styling */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-weight: 600;
    background: linear-gradient(135deg, #fff5e6, #ffeaa7);
    border: 2px solid #fed7aa;
    color: #c05621;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
    border: 2px solid #e67e22 !important;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3) !important;
}

table.dataTable.table-hover tbody tr:hover {
    background-color: rgba(26, 54, 93, 0.05) !important;
}

table.dataTable thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white !important;
    border-bottom: none !important;
}

table.dataTable thead th:first-child {
    border-top-left-radius: 8px;
}

table.dataTable thead th:last-child {
    border-top-right-radius: 8px;
}

/* DataTables Info and Pagination Styling */
.dataTables_wrapper .dataTables_info {
    color: #6c757d;
    padding: 20px 0 10px 0;
    font-size: 0.9em;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 20px 0 10px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Mobile responsive pagination */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 6px 12px;
        margin: 0 2px;
        min-width: 35px;
        font-size: 0.8em;
    }
    
    .dataTables_wrapper .dataTables_paginate {
        gap: 2px;
    }
}

.dataTables_wrapper .row {
    margin-top: 20px;
}

/* Improve table cell alignment */
table.dataTable td {
    vertical-align: middle;
}

/* Keep all table action buttons inline */
.table-wrapper table td:last-child,
.table-container table td:last-child {
    white-space: nowrap !important;
}

.table-wrapper table td:last-child .action-buttons,
.table-wrapper table td:last-child .action-group,
.table-container table td:last-child .action-buttons,
.table-container table td:last-child .action-group {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
}

.table-wrapper table td:last-child .btn-action,
.table-wrapper table td:last-child .btn-edit,
.table-wrapper table td:last-child .btn-delete,
.table-wrapper table td:last-child .btn-view,
.table-wrapper table td:last-child .btn-toggle,
.table-container table td:last-child .btn-action,
.table-container table td:last-child .btn-edit,
.table-container table td:last-child .btn-delete,
.table-container table td:last-child .btn-view,
.table-container table td:last-child .btn-toggle {
    display: inline-flex !important;
    width: auto !important;
    white-space: nowrap !important;
    vertical-align: middle;
}

/* Add subtle animation to rows */
table.dataTable tbody tr {
    transition: all 0.2s ease;
}

/* Better spacing for action buttons in table */
table.dataTable td .btn-action {
    margin: 0 3px;
}

.table-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.table-img:hover {
    transform: scale(1.1);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Status Select Dropdown */
.status-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85em;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.status-select:hover {
    border-color: var(--primary-color);
}

/* Action Buttons */
.btn-action {
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-action:last-child {
    margin-right: 0;
}

.btn-action {
    background: var(--primary-color);
    color: white;
}

.btn-action:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-action.edit {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-action.edit:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.btn-action.delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-action.delete:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-action.view {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn-action.view:hover {
    background: linear-gradient(135deg, #5a6268, #545b62);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-action.status-change {
    background: linear-gradient(135deg, #8e44ad, #732d91);
    color: white;
}

.btn-action.status-change:hover {
    background: linear-gradient(135deg, #732d91, #5e2370);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(142, 68, 173, 0.3);
}

.btn-action svg {
    display: inline-block;
    vertical-align: middle;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    color: var(--text-dark);
}

/* Admin Form */
.admin-form {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9em;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.admin-form textarea {
    resize: vertical;
    font-family: inherit;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Admin Stats Inline */
.admin-stats-inline {
    display: flex;
    gap: 30px;
}

.stat-inline {
    text-align: center;
}

.stat-inline strong {
    display: block;
    font-size: 1.8em;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-inline span {
    color: var(--text-light);
    font-size: 0.9em;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none !important; /* Hidden by default - only show on mobile/tablet */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
}

.mobile-menu-close {
    display: none !important; /* Hidden by default - only show on mobile/tablet */
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Hide hamburger button when menu is open */
body.menu-open .mobile-menu-toggle {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

/* Responsive Admin */

/* Desktop - Explicitly hide mobile menu buttons */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-close {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Ensure sidebar is always visible on desktop */
    .admin-sidebar {
        position: fixed;
        left: 0;
        width: 260px;
    }
    
    .admin-main {
        margin-left: 260px;
    }
}

/* Tablet - Keep sidebar visible but narrower */
@media (max-width: 991px) and (min-width: 768px) {
    /* Hide hamburger button on tablet - sidebar is always visible */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-close {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .admin-sidebar {
        width: 220px;
        position: fixed;
        left: 0;
    }
    
    .admin-main {
        margin-left: 220px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile - Show hamburger menu and hide sidebar by default */
@media (max-width: 767.98px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .mobile-menu-close {
        display: flex !important;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    /* Sidebar - hidden by default on mobile/tablet */
    .admin-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: none;
    }
    
    .admin-sidebar.active {
        left: 0;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.3);
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 90px 20px 30px 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-header h1 {
        font-size: 1.5em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .admin-filters {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 800px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 0.85em;
    }
    
    .btn-action {
        padding: 8px 10px;
        font-size: 0.8em;
        margin-right: 4px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .admin-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 80px 15px 20px 15px;
    }
    
    .admin-header h1 {
        font-size: 1.3em;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-details h3 {
        font-size: 1.5em;
    }
    
    .btn-primary {
        padding: 10px 16px;
        font-size: 0.85em;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 6px;
        font-size: 0.8em;
    }
}
