/* =====================================================
   MAPISHI RESTAURANT - Complete Stylesheet
   Version: 3.0 - Mobile First Responsive
   ===================================================== */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #eef2f5;
    min-height: 100vh;
    color: #1a2a2a;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   FLASH MESSAGE
   ============================================ */
.flash-message {
    background: #4cafb0;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 0 0 15px 0;
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(76, 175, 176, 0.2);
}

.flash-message i {
    font-size: 16px;
}

@keyframes slideDown {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e8f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: #4cafb0;
}

.stat-icon {
    font-size: 26px;
    opacity: 0.9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f5f8f8;
}

.stat-icon i {
    font-size: 24px;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info h4 {
    font-size: 10px;
    color: #6a8a8a;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-info h4 i {
    font-size: 10px;
    margin-right: 4px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #0d3b3b;
    line-height: 1.1;
}

.stat-number.danger { color: #e74c3c; }
.stat-number.warning { color: #f39c12; }
.stat-number.success { color: #27ae60; }

.stat-card-internal {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
}

.stat-card-internal .stat-icon {
    background: rgba(255, 193, 7, 0.15);
}

.stat-card-internal .stat-number {
    color: #856404;
}

/* ============================================
   TABLES - RESPONSIVE (SCROLL ON MOBILE)
   ============================================ */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8f0f0;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.table-header {
    padding: 12px 16px;
    background: #f5f8f8;
    border-bottom: 1px solid #e8f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.table-header h3 {
    color: #0d3b3b;
    font-size: 14px;
    font-weight: 600;
}

.table-header h3 i {
    margin-right: 6px;
    color: #4cafb0;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Horizontal scroll for tables on mobile */
.table-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table-scroll::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.table-scroll::-webkit-scrollbar-track {
    background: #e8f0f0;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #b0c8c8;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
}

th {
    background: #f5f8f8;
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #2c4a4a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #dce8e8;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

th i {
    margin-right: 4px;
    font-size: 11px;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8f0f0;
    font-size: 12px;
    vertical-align: middle;
}

tr:hover {
    background: #f8fbfb;
}

tr:last-child td {
    border-bottom: none;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.badge i {
    font-size: 10px;
    margin-right: 3px;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-active { background: #d4edda; color: #155724; }
.badge-paid { background: #cce5ff; color: #004085; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-primary { background: #cce5ff; color: #004085; }
.badge-secondary { background: #e8f0f0; color: #2c4a4a; }

/* ============================================
   ROW COLORS
   ============================================ */
.low-stock-row {
    background: #fff8e1 !important;
}
.low-stock-row td:first-child {
    border-left: 3px solid #f39c12;
}

.out-of-stock-row {
    background: #fde8e8 !important;
}
.out-of-stock-row td:first-child {
    border-left: 3px solid #e74c3c;
}

/* ============================================
   BUTTONS - TOUCH FRIENDLY
   ============================================ */
.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

.btn i {
    font-size: 13px;
}

.btn-primary { background: #0d3b3b; color: white; }
.btn-primary:hover { background: #1a5a5a; transform: translateY(-1px); }

.btn-success { background: #27ae60; color: white; }
.btn-success:hover { background: #1e8449; transform: translateY(-1px); }

.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; transform: translateY(-1px); }

.btn-warning { background: #f39c12; color: white; }
.btn-warning:hover { background: #d68910; transform: translateY(-1px); }

.btn-info { background: #3498db; color: white; }
.btn-info:hover { background: #2471a3; transform: translateY(-1px); }

.btn-secondary { background: #95a5a6; color: white; }
.btn-secondary:hover { background: #7f8c8d; transform: translateY(-1px); }

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 32px;
}
.btn-sm i { font-size: 12px; }

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    min-height: 28px;
}

/* ============================================
   FORMS - TOUCH FRIENDLY
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #0d3b3b;
    font-size: 13px;
}

.form-group label i {
    width: 18px;
    color: #4cafb0;
    margin-right: 4px;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dce8e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
    color: #1a2a2a;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a8a8a' 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: 38px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4cafb0;
    box-shadow: 0 0 0 3px rgba(76, 175, 176, 0.12);
}

.form-group input:disabled {
    background: #f5f8f8;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.form-group .help-text {
    font-size: 11px;
    color: #6a8a8a;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============================================
   MODALS - MOBILE OPTIMIZED
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow-y: auto;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-content-large { max-width: 700px; }
.modal-content-small { max-width: 420px; }

@keyframes slideIn {
    from { transform: translateY(-20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f8f8;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    color: #0d3b3b;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.modal-header h3 i {
    margin-right: 8px;
    color: #4cafb0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #6a8a8a;
    transition: color 0.2s;
    line-height: 1;
    padding: 0 4px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #0d3b3b;
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e8f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafcfc;
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ============================================
   MENU GRID
   ============================================ */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 12px 0;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
}

.menu-item-card {
    background: #f5f8f8;
    padding: 12px 8px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.menu-item-card:active {
    background: #0d3b3b;
    color: white;
    transform: scale(0.97);
}

.menu-item-card .item-name {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.3;
}

.menu-item-card .item-price {
    font-size: 11px;
    color: #27ae60;
    margin-top: 4px;
    font-weight: 500;
}

/* ============================================
   INTERNAL TABS
   ============================================ */
.internal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #dce8e8;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.internal-tabs .tab-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    background: #e8f0f0;
    color: #2c4a4a;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
}

.internal-tabs .tab-btn.active {
    background: #0d3b3b;
    color: white;
}

.internal-tabs .tab-btn:active {
    transform: scale(0.97);
}

.internal-tabs .tab-btn .tab-count {
    background: rgba(255,255,255,0.2);
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 10px;
    margin-left: 3px;
}

/* ============================================
   PRODUCT NAME DISPLAY
   ============================================ */
.product-name-display {
    font-size: 15px;
    font-weight: 700;
    color: #0d3b3b;
    padding: 8px 14px;
    background: #f5f8f8;
    border-radius: 8px;
    display: inline-block;
}

/* ============================================
   REPORT FILTERS
   ============================================ */
.report-filters {
    background: #f5f8f8;
    padding: 14px;
    border-radius: 12px;
    margin: 12px 0 20px;
    border: 1px solid #e8f0f0;
}

.report-filters .filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.report-filters .filter-row .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 130px;
}

.report-filters .filter-row .form-group label {
    font-size: 11px;
    margin-bottom: 4px;
}

.report-filters .filter-row .form-group input,
.report-filters .filter-row .form-group select {
    padding: 10px 12px;
    font-size: 13px;
}

/* ============================================
   ORDER SUMMARY
   ============================================ */
.order-summary {
    background: #f5f8f8;
    padding: 14px;
    border-radius: 10px;
    margin: 12px 0;
    border: 1px solid #e8f0f0;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dce8e8;
    font-size: 13px;
    gap: 8px;
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-summary-total {
    text-align: right;
    font-size: 17px;
    font-weight: 700;
    color: #0d3b3b;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #dce8e8;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d3b3b 0%, #1a5a5a 50%, #4cafb0 100%);
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    animation: loginFadeIn 0.5s ease;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8f0f0;
}

.login-header .logo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid #4cafb0;
    box-shadow: 0 6px 20px rgba(76, 175, 176, 0.25);
    background: #ffffff;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #0d3b3b;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.login-header h1 span { color: #4cafb0; }

.login-header p {
    font-size: 12px;
    color: #6a8a8a;
    margin-top: 4px;
}

.login-header p i {
    color: #4cafb0;
    margin-right: 4px;
}

.login-box .form-group input {
    padding: 14px 16px;
    font-size: 15px;
}

.btn-login {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #0d3b3b 0%, #1a5a5a 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    min-height: 48px;
}

.btn-login:active {
    transform: scale(0.98);
}

.login-box .alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-box .alert-error {
    background: #fde8e8;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #e8f0f0;
}

.login-footer p {
    font-size: 11px;
    color: #8aa8a8;
}

.login-footer p i {
    color: #4cafb0;
    margin-right: 3px;
}

/* ============================================
   TABLET - 992px and below
   ============================================ */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 20px;
    }
}

/* ============================================
   MOBILE - 768px and below
   ============================================ */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-info h4 {
        font-size: 9px;
    }
    
    .table-scroll {
        max-height: 500px;
    }
    
    table {
        font-size: 12px;
        min-width: 600px;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    /* Modal - bottom sheet style on mobile */
    .modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .modal-header {
        border-radius: 20px 20px 0 0;
        padding: 14px 16px;
    }
    
    .modal-header h3 {
        font-size: 15px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        border-radius: 0;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-height: 280px;
    }
    
    .menu-item-card {
        padding: 10px 6px;
        min-height: 65px;
    }
    
    .menu-item-card .item-name {
        font-size: 11px;
    }
    
    .report-filters .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .report-filters .filter-row .form-group {
        width: 100%;
        min-width: unset;
    }
    
    .internal-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .internal-tabs::-webkit-scrollbar {
        height: 3px;
    }
    
    .internal-tabs .tab-btn {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Login */
    .login-box {
        padding: 30px 22px;
        border-radius: 16px;
        max-width: 100%;
    }
    
    .login-header h1 {
        font-size: 18px;
    }
    
    .login-header .logo-img {
        width: 100px;
        height: 100px;
    }
    
    .btn-login {
        min-height: 48px;
        font-size: 15px;
    }
}

/* ============================================
   SMALL MOBILE - 480px and below
   ============================================ */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-icon i {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-info h4 {
        font-size: 9px;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .btn-sm {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    table {
        font-size: 11px;
        min-width: 550px;
    }
    
    th, td {
        padding: 8px;
    }
    
    .modal-content {
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 12px 14px;
    }
    
    .modal-body {
        padding: 14px;
    }
    
    .modal-footer {
        padding: 10px 14px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 12px;
        font-size: 14px;
    }
    
    .login-header h1 {
        font-size: 16px;
    }
    
    .login-header .logo-img {
        width: 90px;
        height: 90px;
    }
    
    .login-box {
        padding: 25px 18px;
    }
    
    .login-box .form-group input {
        padding: 12px 14px;
    }
    
    .btn-login {
        padding: 14px 16px;
        min-height: 46px;
    }
}

/* ============================================
   VERY SMALL - 360px and below
   ============================================ */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        align-items: center;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .login-header .logo-img {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #e8f0f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #b0c8c8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8aa8a8;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print { display: none !important; }
    body { background: white; padding: 0; margin: 0; }
    .app-container { display: block; }
    .sidebar { display: none !important; }
    .main-content { padding: 20px; }
    .top-bar { border-bottom: 1px solid #ddd; }
    .flash-message, .top-actions { display: none !important; }
    .stat-card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    table { font-size: 10px; }
    th {
        background: #f5f8f8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .modal { display: none !important; }
}

/* ============================================
   TOUCH DEVICE IMPROVEMENTS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* On touch devices, show active state instead of hover */
    .btn:active {
        transform: scale(0.97);
    }
    
    .stat-card:active {
        background: #f5f8f8;
    }
    
    .menu-item-card:active {
        background: #0d3b3b;
        color: white;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 40px;
    }
    
    .modal-close {
        min-width: 40px;
        min-height: 40px;
    }
    
    /* Better spacing */
    .sidebar-nav a {
        padding: 12px 20px;
        min-height: 44px;
    }
}