/* ============================================
   Traveler - Admin Panel Stylesheet
   ============================================ */

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

/* Sidebar */
.admin-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #1a1f36 0%, #151929 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed {
    width: 70px;
}

/* Collapsed sidebar adjustments */
.admin-sidebar.collapsed .sidebar-header .brand-text,
.admin-sidebar.collapsed .sidebar-header .admin-badge,
.admin-sidebar.collapsed .menu-label,
.admin-sidebar.collapsed .sidebar-menu a span,
.admin-sidebar.collapsed .sidebar-menu a .badge-count {
    display: none;
}

.admin-sidebar.collapsed .sidebar-header {
    justify-content: center;
    text-align: center;
}

.admin-sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 12px;
}

.admin-sidebar.collapsed ~ .admin-main {
    margin-left: 70px;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header .brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-header .brand-text span {
    color: #FF6B35;
}

.sidebar-header .admin-badge {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 15px 0;
}

.sidebar-menu .menu-label {
    padding: 10px 20px 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.sidebar-menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(255, 107, 53, 0.5);
}

.sidebar-menu a.active {
    color: #fff;
    background: rgba(255, 107, 53, 0.12);
    border-left-color: #FF6B35;
    font-weight: 500;
}

.sidebar-menu a i {
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-menu a .badge-count {
    margin-left: auto;
    background: #FF6B35;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sidebar-menu .submenu {
    display: none;
    padding-left: 20px;
    background: rgba(0,0,0,0.15);
}

.sidebar-menu .submenu.open {
    display: block;
}

.sidebar-menu .submenu a {
    padding: 9px 20px;
    font-size: 0.85rem;
}

.sidebar-menu .has-submenu > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.sidebar-menu .has-submenu.open > a::after {
    transform: rotate(180deg);
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 270px;
    background: #f0f2f5;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Top Bar */
.admin-topbar {
    background: #fff;
    padding: 0 30px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6B7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: #f3f4f6;
    color: #1F2937;
}

/* Sidebar animation */
.admin-sidebar {
    transition: transform 0.3s ease-in-out;
}

.sidebar-overlay {
    transition: opacity 0.3s ease-in-out;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 8px 15px;
    border-radius: 8px;
    min-width: 250px;
}

.topbar-search input {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #1F2937;
    width: 100%;
}

.topbar-search i {
    color: #9CA3AF;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: none;
}

.topbar-icon:hover {
    background: #f3f4f6;
    color: #1F2937;
}

.topbar-icon .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.topbar-profile:hover {
    background: #f3f4f6;
}

.topbar-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.topbar-profile .profile-info {
    line-height: 1.3;
}

.topbar-profile .profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1F2937;
}

.topbar-profile .profile-role {
    font-size: 0.72rem;
    color: #9CA3AF;
}

/* Admin Content Area */
.admin-content {
    padding: 30px;
}

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

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
}

.page-header .breadcrumb {
    font-size: 0.85rem;
    color: #9CA3AF;
    padding: 0;
}

/* ============================================
   Dashboard Stats Cards
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.stat-card .stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.stat-card .stat-icon.orange {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.stat-card .stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.stat-card .stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.stat-card .stat-icon.yellow {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.stat-card .stat-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    line-height: 1;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.stat-card .stat-info p {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 400;
    white-space: nowrap;
}

/* ============================================
   Admin Cards
   ============================================ */
.admin-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.admin-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-card .card-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1F2937;
}

.admin-card .card-body {
    padding: 22px;
}

.admin-card .card-footer {
    padding: 15px 22px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   Activity List
   ============================================ */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item .activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.activity-item .activity-content {
    flex: 1;
}

.activity-item .activity-content p {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.5;
}

.activity-item .activity-content .activity-time {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 3px;
}

/* ============================================
   Admin Form Styles
   ============================================ */
.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.admin-form .form-row.three-col {
    grid-template-columns: repeat(3, 1fr);
}

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

.admin-form .form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.admin-form .form-group label .required {
    color: #EF4444;
}

.admin-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1F2937;
    background: #fff;
    transition: all 0.2s ease;
}

.admin-form .form-control:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.admin-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.admin-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form .form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FF6B35;
}

.admin-form .form-hint {
    font-size: 0.78rem;
    color: #9CA3AF;
    margin-top: 4px;
}

.admin-form .image-preview {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    background: #f9fafb;
}

.admin-form .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-form .image-preview .placeholder {
    color: #9CA3AF;
    font-size: 0.8rem;
    text-align: center;
}

/* ============================================
   Admin Table Actions
   ============================================ */
.table-actions {
    display: flex;
    gap: 5px;
}

.table-actions .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-btn.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.action-btn.edit:hover {
    background: #3B82F6;
    color: #fff;
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.action-btn.delete:hover {
    background: #EF4444;
    color: #fff;
}

.action-btn.view {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.action-btn.view:hover {
    background: #10B981;
    color: #fff;
}

.action-btn.print {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.action-btn.print:hover {
    background: #8B5CF6;
    color: #fff;
}

/* ============================================
   Settings Tabs
   ============================================ */
.settings-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 0;
}

.settings-tabs a {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6B7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.settings-tabs a:hover {
    color: #FF6B35;
}

.settings-tabs a.active {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

/* ============================================
   Responsive Admin
   ============================================ */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 270px;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-content {
        padding: 20px 15px;
    }
    
    .admin-topbar {
        padding: 0 15px;
    }
    
    .topbar-search {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Desktop - sidebar toggle always visible */
@media (min-width: 769px) {
    .admin-sidebar {
        transform: translateX(0) !important;
    }
    
    /* Toggle always visible on all devices */
    .sidebar-toggle {
        display: flex !important;
    }
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================
   User Panel Specific Styles
   ============================================ */

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #FF6B35;
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

.user-panel-wrapper {
    margin-top: 75px;
    min-height: calc(100vh - 75px);
    background: #f0f2f5;
}

.user-panel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 25px;
}

/* User Panel Header - Mobile Toggle */
.user-panel-header {
    display: none;
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .user-panel-header {
        display: flex;
    }
}

.user-panel-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.user-panel-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: all 0.2s ease;
}

.user-panel-toggle:hover {
    background: #e5e7eb;
    color: #1F2937;
}

.user-panel-toggle:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* Sidebar Overlay for Mobile */
.user-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-sidebar-overlay.active {
    opacity: 1;
}

/* User Panel Sidebar */
.user-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 95px;
}

.user-sidebar .sidebar-close {
    display: none;
}

.user-sidebar .user-avatar {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.user-sidebar .user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid #FF6B35;
}

.user-sidebar .user-avatar h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.user-sidebar .user-avatar p {
    font-size: 0.82rem;
    color: #9CA3AF;
}

.user-sidebar .user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}

.user-sidebar .user-menu a:hover {
    background: #f3f4f6;
    color: #1F2937;
}

.user-sidebar .user-menu a:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

.user-sidebar .user-menu a.active {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.user-sidebar .user-menu a i {
    width: 20px;
    text-align: center;
}

/* User Panel Page Title */
.user-content .page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-content .page-title i {
    color: var(--primary);
}

/* User Panel Stats Grid */
.user-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* User Panel Quick Actions */
.user-content .quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* User Panel Form Improvements */
.user-content .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.user-content .form-grid.single {
    grid-template-columns: 1fr;
}

/* Form group improvements */
.user-content .form-group label .required {
    color: #EF4444;
}

/* Ensure form controls are accessible */
.user-content .form-control:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.user-content .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1F2937;
    background: #fff;
    transition: all 0.2s ease;
}

/* Booking Card Enhancements */
.booking-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.booking-card-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.booking-card-content {
    flex: 1;
    min-width: 200px;
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.booking-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 5px;
}

.booking-card-title a {
    color: inherit;
}

.booking-card-title a:hover {
    color: var(--primary);
}

.booking-card-meta p {
    color: #6B7280;
    font-size: 0.85rem;
}

.booking-card-meta {
    display: flex;
    gap: 25px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.booking-card-meta span {
    color: #6B7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.booking-card-meta span i {
    color: var(--primary);
}

.booking-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.booking-card-actions {
    margin-top: 15px;
}

/* Profile Settings */
.profile-avatar-section {
    text-align: center;
    margin-bottom: 25px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid var(--primary);
}

.profile-avatar-label {
    cursor: pointer;
    display: inline-block;
}

/* Transaction Table Improvements */
.transaction-table th:last-child,
.transaction-table td:last-child {
    text-align: center;
}

.invoice-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.invoice-btn:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #6B7280;
    margin-bottom: 10px;
}

.empty-state p {
    color: #9CA3AF;
    margin-bottom: 20px;
}

/* Status Badges */
.status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .user-panel-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    
    .user-sidebar-overlay {
        display: block;
    }
    
    .user-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        border-radius: 0;
        z-index: 100;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 60px;
    }
    
    .user-sidebar.active {
        left: 0;
    }
    
    .user-sidebar .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f3f4f6;
        border: none;
        cursor: pointer;
        color: #6B7280;
    }
    
    .user-sidebar .sidebar-close:focus {
        outline: 2px solid #FF6B35;
        outline-offset: 2px;
    }
    
    .user-content {
        min-width: 0;
    }
    
    /* Stack form elements on mobile */
    .user-content .form-row,
    .user-content > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Improve table scrolling on mobile */
    .user-content .table-responsive {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    /* Booking cards on mobile */
    .user-content .admin-card .card-body > div[style*="flex"] {
        flex-direction: column;
    }
    
    .user-content .admin-card .card-body img {
        width: 100% !important;
        height: 150px !important;
    }
}

/* ============================================
   Image Upload Dropzone
   ============================================ */
.dropzone {
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.dropzone:hover {
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.02);
}

.dropzone i {
    font-size: 2rem;
    color: #9CA3AF;
    margin-bottom: 10px;
}

.dropzone p {
    color: #6B7280;
    font-size: 0.9rem;
}

.dropzone .browse-link {
    color: #FF6B35;
    font-weight: 600;
    cursor: pointer;
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    border: none;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .admin-sidebar,
    .admin-topbar,
    .sidebar-overlay,
    .no-print {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0 !important;
    }
    
    .admin-content {
        padding: 0 !important;
    }
}

/* ============================================
   Media Management Section
   ============================================ */
.media-section {
    margin-bottom: 20px;
}

.media-section-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: block;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-light);
    aspect-ratio: 16/10;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.media-item:hover {
    border-color: var(--primary);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.media-item:hover .media-item-actions {
    opacity: 1;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-action.btn-danger {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

.btn-action.btn-danger:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.btn-action.btn-primary {
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
}

.btn-action.btn-primary:hover {
    background: #007bff;
    transform: scale(1.1);
}

.media-item-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Video item specific styles */
.video-item img,
.video-item video {
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

/* Upload area styles */
.upload-area {
    border: 2px dashed var(--gray-lighter);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gray-lightest);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 123, 255, 0.05);
}

.upload-area-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-area-content i {
    font-size: 2.5rem;
    color: var(--primary);
}

.upload-area-content p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.upload-area-content span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Video preview */
.video-preview {
    position: relative;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-preview video {
    width: 100%;
    max-height: 300px;
    display: block;
}

.video-preview .btn-action {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* YouTube input group */
.youtube-input-group {
    display: flex;
    gap: 10px;
}

.youtube-input-group input {
    flex: 1;
}

.youtube-preview {
    position: relative;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--gray-light);
    max-width: 400px;
}

.youtube-preview img {
    width: 160px;
    height: 90px;
    object-fit: cover;
}

.youtube-preview-info {
    padding: 10px 15px;
    flex: 1;
}

.youtube-preview-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.youtube-preview .btn-action {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Preview grid for new images */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-light);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Settings Page Enhancements
   ============================================ */
.settings-section {
    margin-bottom: 15px;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid var(--gray-lighter);
}

.settings-section h4 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h4 i {
    font-size: 0.85rem;
    color: var(--primary);
}

/* Compact form controls for settings */
.settings-section .form-group {
    margin-bottom: 10px;
}

.settings-section .form-group label {
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.settings-section .form-control {
    font-size: 0.85rem;
    padding: 6px 10px;
    height: 32px;
}

.settings-section textarea.form-control {
    height: auto;
    min-height: 40px;
}

.settings-section .form-row {
    gap: 12px;
}

.settings-section .form-row .form-group {
    margin-bottom: 8px;
}

.form-hint {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 2px;
    display: block;
}

/* Checkbox styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

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

.form-check label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    font-size: 0.85rem;
}

/* General Settings compact layout */
.admin-card .card-body .form-group label {
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.admin-card .card-body .form-control {
    font-size: 0.85rem;
    padding: 6px 10px;
    height: 34px;
}

.admin-card .card-body textarea.form-control {
    height: auto;
    min-height: 50px;
}

.admin-card .card-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0;
}

.admin-card .card-body .form-row .form-group {
    margin-bottom: 10px;
}

/* Settings tabs - more compact */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.settings-tabs a {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.settings-tabs a i {
    font-size: 0.75rem;
    margin-right: 4px;
}

/* Compact settings buttons */
.settings-section .btn {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .settings-tabs {
        flex-wrap: wrap;
    }
    
    .settings-tabs a {
        flex: 1 1 45%;
        text-align: center;
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .settings-section {
        padding: 10px;
    }
    
    .settings-section h4 {
        font-size: 0.85rem;
    }
    
    .admin-card .card-body .form-row {
        grid-template-columns: 1fr;
    }
}

.preview-item .remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(220, 53, 69, 0.9);
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Toast notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.info {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
