/* Bootstrap 5 Import */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Design System */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 14px;
}

/* Modern Sidebar Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav-item {
    margin: 0.25rem 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-nav-link:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.sidebar-nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-dark);
}

.sidebar-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.page-content {
    padding: 2rem;
}

/* Modern Cards & Components */
.modern-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
}

.modern-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modern-card-body {
    padding: 1.5rem;
}

.modern-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stats-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin: 0;
}

.stats-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stats-card-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.stats-card-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.stats-card-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stats-card-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin: 0;
}

.stats-card-change {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stats-card-change.positive {
    color: var(--secondary-color);
}

.stats-card-change.negative {
    color: var(--danger-color);
}

/* Custom Buttons */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 10px;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    transform: translateY(-2px);
}

/* Card Styles */
.custom-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.custom-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

.custom-card .card-body {
    padding: 20px;
}

/* Table Styles */
.table-custom {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.table-custom thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table-custom tbody tr:hover {
    background-color: #f8f9fa;
}

.table-custom tbody td {
    padding: 15px;
    border-color: #e2e8f0;
}

/* Badge Styles */
.badge-custom {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 15px 15px 0 0;
}

/* Item Row Styles */
.item-row {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.item-row:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-container {
        margin: 10px;
        padding: 20px;
    }
    
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .stats-card {
        margin-bottom: 20px;
    }
    
    .nav-pills .nav-link {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .dashboard-header {
        text-align: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Modern Tables */
.modern-table {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.modern-table .table {
    margin-bottom: 0;
}

.modern-table thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.modern-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-900);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.modern-table tbody tr:hover {
    background-color: var(--gray-50);
}

/* Modern Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-success {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0.25rem 0 0 0;
}

/* Legacy compatibility - keeping existing styles working */
.dashboard-container {
    background: transparent;
    padding: 0;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--gray-50);
}

/* Updated Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    position: relative;
}

.nav-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-dark);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

.sidebar-footer .nav-item.text-danger {
    color: var(--danger-color);
}

.sidebar-footer .nav-item.text-danger:hover {
    background-color: #fef2f2;
    color: var(--danger-color);
}

/* Main Content with Sidebar */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.content-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.content-body {
    flex: 1;
    padding: 2rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--gray-700);
}

/* Info Items for Modern Cards */
.info-item {
    margin-bottom: 1rem;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.875rem;
    color: var(--gray-900);
    font-weight: 500;
}

/* Enhanced Modern Card Headers */
.modern-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-card-header h5 i {
    color: var(--primary-color);
}

/* Enhanced Stat Cards */
.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    margin-bottom: 0.75rem;
}

.stat-icon i {
    font-size: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-header,
    .content-body {
        padding: 1rem;
    }
}

/* Feedback-specific styles */
.feedback-item {
    transition: all 0.2s ease;
}

.feedback-item:hover {
    background-color: var(--gray-50);
    border-radius: 8px;
    padding: 1rem !important;
    margin: 0 -1rem 1rem -1rem !important;
}

.feedback-text {
    background-color: var(--gray-50);
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem;
    border-radius: 0 8px 8px 0;
    margin-top: 0.5rem;
}

.feedback-list .feedback-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.school-feedback-list .d-flex:last-child {
    margin-bottom: 0 !important;
}

/* Card hover effects for feedback cards */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Feedback form styling */
.feedback-form textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-submitted {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid var(--success-color);
}

/* Modal improvements */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-overlay {
        display: block;
    }
    
    /* Sidebar adjustments for mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        max-width: 85vw;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Main content takes full width */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Top header adjustments */
    .top-header {
        padding: 0 1rem 0 70px;
        height: 60px;
        flex-wrap: wrap;
    }
    
    .top-header > div:first-child {
        flex: 1;
        min-width: 0;
    }
    
    .page-title {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .page-subtitle {
        font-size: 0.75rem;
        display: none;
    }
    
    .top-header .d-flex {
        gap: 0.5rem !important;
    }
    
    .top-header .text-muted {
        display: none;
    }
    
    .top-header .btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
    
    .top-header .btn span {
        display: none;
    }
    
    .top-header .btn i {
        margin: 0;
    }
    
    /* Page content adjustments */
    .page-content {
        padding: 1rem;
    }
    
    /* Stats grid for mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    /* Tables responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Cards adjustments */
    .modern-card,
    .card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .modern-card-header,
    .card-header {
        padding: 1rem;
    }
    
    .modern-card-body,
    .card-body {
        padding: 1rem;
    }
    
    /* Form adjustments */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button adjustments */
    .btn-group {
        flex-wrap: wrap;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        max-height: 60vh;
    }
    
    /* Chart containers */
    .chart-container {
        height: 250px !important;
    }
    
    /* Hide certain columns on mobile */
    .d-none-mobile {
        display: none !important;
    }
    
    /* Analytics cards */
    .analytics-card {
        margin-bottom: 1rem;
    }
    
    .analytics-card h5 {
        font-size: 1rem;
    }
    
    /* Filter section */
    .filter-section {
        padding: 1rem;
    }
    
    .filter-section .row {
        gap: 0.5rem;
    }
    
    /* Package cards */
    .package-card {
        margin-bottom: 1rem;
    }
    
    /* Ticket cards */
    .ticket-card {
        margin-bottom: 1rem;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .sidebar {
        max-width: 90vw;
    }
    
    .top-header {
        padding: 0 0.75rem 0 60px;
        height: 55px;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .page-content {
        padding: 0.75rem;
    }
    
    .stats-card {
        padding: 0.875rem;
    }
    
    .stats-card h3 {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
    
    .modern-card-header,
    .card-header {
        padding: 0.875rem;
    }
    
    .modern-card-body,
    .card-body {
        padding: 0.875rem;
    }
    
    /* Make metric cards stack vertically */
    .metric-card {
        margin-bottom: 0.75rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    /* Responsive tables - stack on very small screens */
    .table-mobile-stack {
        display: block;
    }
    
    .table-mobile-stack thead {
        display: none;
    }
    
    .table-mobile-stack tbody,
    .table-mobile-stack tr,
    .table-mobile-stack td {
        display: block;
        width: 100%;
    }
    
    .table-mobile-stack tr {
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: 8px;
        padding: 0.75rem;
        background: white;
    }
    
    .table-mobile-stack td {
        text-align: right;
        padding: 0.5rem 0;
        border: none;
        position: relative;
        padding-left: 50%;
    }
    
    .table-mobile-stack td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
        color: var(--gray-700);
    }
}

/* Landscape Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .top-header {
        height: 50px;
    }
    
    .sidebar {
        max-width: 70vw;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .mobile-overlay,
    .top-header,
    .btn,
    .form-control,
    .form-select {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .page-content {
        padding: 0;
    }
    
    .modern-card,
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}
