/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Viewport meta handling */
@viewport {
    width: device-width;
    initial-scale: 1;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Mobile Menu Toggle - Hidden by default */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

/* Sidebar Header (Mobile) */
.sidebar-header {
    display: none;
    padding: 20px;
    background: #1e2b38;
    color: white;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s;
}

.close-sidebar:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Sidebar Footer (Mobile) */
.sidebar-footer {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: #1e2b38;
    color: white;
    border-top: 1px solid #34495e;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 24px;
    color: #3498db;
}

.user-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Nav Menu */
.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #ecf0f1;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover {
    background: #34495e;
    color: white;
}

.nav-menu a.active {
    background: #3498db;
    color: white;
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #fff;
}

.nav-menu i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.nav-menu span {
    font-size: 14px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 25px;
    background: #f8f9fa;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.page-header p {
    color: #7f8c8d;
    font-size: 15px;
}

/* Navbar */
.navbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-radius: 8px;
}

.navbar-brand h2 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 24px;
}

.navbar-brand span {
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 500;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.welcome-text i {
    font-size: 20px;
    color: #3498db;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title i {
    font-size: 20px;
    color: #3498db;
}

.card-header h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.btn-view-all {
    color: #3498db;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-view-all:hover {
    color: #2980b9;
    gap: 8px;
}

.btn-view-all i {
    font-size: 12px;
}

.card-body {
    padding: 25px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 28px;
    transition: all 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 700;
}

.stat-info p {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
}

.stat-info small {
    display: block;
    color: #95a5a6;
    font-size: 11px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.table tr {
    transition: background 0.3s;
}

.table tr:hover {
    background: #f8f9fa;
}

.table td .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-scheduled {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 10px;
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.form-control-lg {
    padding: 14px 18px;
    font-size: 16px;
}

.form-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left-width: 4px;
    border-left-style: solid;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #0c5460;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

[class*="col-"] {
    padding: 0 12px;
    margin-bottom: 24px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.action-btn {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-btn:hover {
    border-color: #3498db;
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.15);
}

.action-btn i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #3498db;
    transition: all 0.3s;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 15px;
}

.action-btn small {
    display: block;
    font-size: 11px;
    color: #95a5a6;
}

/* QR Scanner Styles */
.qr-scanner-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#qr-reader {
    width: 100%;
    margin: 20px 0;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
}

#qr-reader-results {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

/* Video Player */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 350px;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.warning {
    border-left: 4px solid #ff9800;
}

.toast.info {
    border-left: 4px solid #2196F3;
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }
.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-25 { gap: 25px; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: #3498db; }
.text-success { color: #2ecc71; }
.text-danger { color: #e74c3c; }
.text-warning { color: #f39c12; }
.text-muted { color: #95a5a6; }

/* Margin Utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Padding Utilities */
.p-0 { padding: 0; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-25 { padding: 25px; }

/* Responsive Design - Tablet */
@media screen and (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .col-4, .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .navbar {
        padding: 12px 20px;
    }
    
    .navbar-brand h2 {
        font-size: 20px;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 768px) {
    /* Show mobile menu toggle */
    .menu-toggle {
        display: block;
    }
    
    /* Sidebar mobile styles */
    .sidebar {
        left: -280px;
        width: 280px;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    }
    
    .sidebar-header,
    .sidebar-footer {
        display: flex;
    }
    
    /* Hide sidebar menu text on mobile */
    .sidebar .nav-menu span {
        display: inline;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Main content mobile styles */
    .main-content {
        margin-left: 0;
        padding: 70px 15px 20px;
        width: 100%;
    }
    
    /* Navbar mobile styles */
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        margin-bottom: 20px;
        position: sticky;
        top: 0;
        z-index: 998;
        border-radius: 0;
    }
    
    .navbar-brand {
        width: 100%;
        text-align: center;
    }
    
    .navbar-brand h2 {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .navbar-user {
        width: 100%;
        justify-content: space-between;
    }
    
    .welcome-text span {
        display: none;
    }
    
    .logout-text {
        display: none;
    }
    
    .btn-logout i {
        margin-right: 0;
    }
    
    .btn-logout {
        padding: 8px 12px;
    }
    
    /* Page header mobile styles */
    .page-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .page-header p {
        font-size: 13px;
    }
    
    /* Quick stats mobile styles */
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-right: 15px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .stat-info small {
        font-size: 10px;
    }
    
    /* Grid system mobile */
    .col-6, .col-4, .col-3, .col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Cards mobile */
    .card-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .card-title {
        width: 100%;
    }
    
    .btn-view-all {
        align-self: flex-end;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Tables mobile */
    .table-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .table {
        min-width: 550px;
    }
    
    .table th,
    .table td {
        padding: 10px;
        font-size: 13px;
    }
    
    /* Quick actions mobile */
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .action-btn {
        padding: 15px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .action-btn i {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 24px;
    }
    
    .action-btn span {
        margin-bottom: 0;
    }
    
    .action-btn small {
        margin-left: auto;
    }
    
    /* Forms mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* QR Scanner mobile */
    .qr-scanner-container {
        padding: 15px;
    }
    
    #qr-reader {
        margin: 15px 0;
    }
    
    /* Alerts mobile */
    .alert {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Button groups mobile */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin: 2px 0;
        border-radius: 6px !important;
    }
    
    /* Toast mobile */
    .toast {
        left: 15px;
        right: 15px;
        max-width: none;
        bottom: 15px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .main-content {
        padding: 70px 12px 15px;
    }
    
    .navbar {
        padding: 12px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .status-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .action-btn {
        padding: 12px;
    }
    
    .action-btn i {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .action-btn span {
        font-size: 13px;
    }
    
    .action-btn small {
        display: none;
    }
}

/* Landscape Mode */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        width: 250px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        padding: 70px 15px 15px;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .menu-toggle,
    .sidebar-overlay,
    .btn,
    .quick-actions,
    .action-btn,
    .btn-view-all,
    .card-header .btn-view-all {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .card-header {
        background: none;
        border-bottom: 2px solid #333;
    }
    
    .table {
        border-collapse: collapse;
        width: 100%;
    }
    
    .table th,
    .table td {
        border: 1px solid #ddd;
    }
    
    .status-badge {
        border: 1px solid #999;
        background: none !important;
        color: #333 !important;
    }
    
    .page-header {
        border-bottom: 2px solid #333;
        margin-bottom: 30px;
    }
}

/* Dark Mode Support - Optional */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}