:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --bg: #022c22;
    --card-bg: rgba(6, 78, 59, 0.6);
    --glass-border: rgba(52, 211, 153, 0.15);
    --text-main: #ecfdf5;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --sidebar-width: 260px;
}

/* Light Mode Overrides */
body.light-mode {
    --bg: #e2e8f0;
    /* Darker grey-blue for contrast against white cards */
    --card-bg: rgba(255, 255, 255, 0.95);
    /* High opacity white */
    --text-main: #020617;
    /* Almost Black */
    --text-muted: #475569;
    --glass-border: rgba(0, 0, 0, 0.15);
    /* Stronger border */
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea,
body.light-mode .btn-secondary,
body.light-mode .glass-select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

body.light-mode .glass {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

body.light-mode .sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    /* Default all text to main color */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

i,
i * {
    color: inherit;
    /* Icons should inherit color from parent or have their own */
}

body {
    background: var(--bg);
    background-image: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.brand-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Card View Specifics for Mobile */
@media (max-width: 576px) {
    #inventory-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #inventory-table td:last-child {
        border-bottom: none;
    }

    .col-name {
        display: block !important;
        font-size: 1.15rem;
        margin-bottom: 10px;
        width: 100%;
        padding-right: 0 !important;
    }

    .mobile-category,
    .mobile-unit {
        display: inline-block;
        margin-left: 10px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        color: var(--text-muted);
    }

    /* Ensure action buttons are easy to tap */
    .btn-icon {
        padding: 12px;
    }
}

.auth-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Main Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white !important;
}

.nav-link i {
    color: inherit;
}

.badge {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info p {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Content Area */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

#section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.stat-card.warning i {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.stat-icon-wrapper {
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.stat-icon-wrapper i {
    font-size: 1.8rem;
    padding: 0;
    background: transparent;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

/* Icon Colors */
.p-blue {
    background: rgba(99, 102, 241, 0.2);
}

.p-blue i {
    color: #6366f1;
}

.p-purple {
    background: rgba(168, 85, 247, 0.2);
}

.p-purple i {
    color: #a855f7;
}

.p-orange {
    background: rgba(245, 158, 11, 0.2);
}

.p-orange i {
    color: #f59e0b;
}

.p-green {
    background: rgba(16, 185, 129, 0.2);
}

.p-green i {
    color: #10b981;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Tables */
.table-container {
    padding: 24px;
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--glass-border);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Forms & Buttons */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
    font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: var(--danger);
}

.text-center {
    text-align: center;
}

.badge-center {
    display: flex;
    justify-content: center;
}

.btn-success:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 95%;
    max-width: 600px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content.wide {
    max-width: 850px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    /* Allow wrapping on medium screens */
}

.modal-actions button {
    white-space: nowrap;
}

/* Import Area */
.upload-area {
    border: 2px dashed var(--glass-border);
    padding: 60px;
    text-align: center;
    border-radius: 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Inventory Table Column Logic */
#inventory-table th,
#inventory-table td {
    padding: 16px 12px;
    vertical-align: middle;
}

.col-sno {
    color: var(--text-muted);
    width: 60px;
    text-align: center;
}

.col-name {
    font-weight: 600;
    min-width: 200px;
}

.col-category {
    width: 140px;
}

.col-stock {
    min-width: 180px;
}

.col-minstock {
    width: 100px;
    text-align: center;
    color: var(--text-muted);
}

.col-unit {
    width: 80px;
    font-weight: 600;
    color: var(--primary);
}

.col-actions {
    width: 150px;
}

.col-check {
    width: 40px;
    text-align: center;
}

.name-display {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.mobile-category {
    display: none;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    display: none;
}

.stock-action-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stock-val {
    font-size: 1.2rem;
    font-weight: 700;
    width: 40px;
    text-align: center;
}

.mobile-unit {
    display: none;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.badge-booked {
    background: var(--primary);
    color: white;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.audit-badge {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-style: italic;
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-number {
    font-weight: 600;
    color: var(--text-main);
}

#inventory-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.update-stock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

/* Category Browser */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.cat-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 15px;
}

.cat-info h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.cat-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cat-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.category-card:hover .cat-arrow {
    transform: translateX(5px);
    color: var(--primary);
}

/* Form Controls */
.glass-select {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    font-size: 0.9rem;
    min-width: 180px;
}

.glass-select option {
    background: var(--bg);
    color: var(--text-main);
}

.inventory-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Search Bar Styling */
.search-bar {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-bar input {
    padding-left: 45px;
    width: 100%;
}

.filter-group {
    display: flex;
    gap: 10px;
}

/* Ensure buttons don't shrink */
.inventory-controls button {
    white-space: nowrap;
}

/* ============================================
   MOBILE-FIRST RESPONSIVE DESIGN (ENHANCED)
   ============================================ */

/* Helper: Responsive Utilities */
.desktop-only {
    display: inline-block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-full {
        width: 100% !important;
    }
}

/* Mobile Devices (Portrait Phones, 0-576px) */
@media (max-width: 576px) {

    /* Auth Pages */
    .auth-card {
        padding: 30px 20px;
        margin: 15px;
        width: 90%;
    }

    /* Sidebar - Modern Mobile Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 2000;
        transform: translateX(-110%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        background: rgba(2, 44, 34, 0.98);
        backdrop-filter: blur(20px);
        border-right: 1px solid var(--glass-border);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    body.light-mode .sidebar {
        background: rgba(255, 255, 255, 0.98);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1999;
        display: none;
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Content Layout */
    .content {
        margin-left: 0 !important;
        padding: 15px !important;
        padding-top: 90px !important;
        /* increased space for fixed header */
        padding-bottom: 80px !important;
        /* Space for bottom nav or scrolling */
    }

    header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        /* Fixed height */
        padding: 0 15px;
        background: rgba(2, 44, 34, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1001;
        border-bottom: 1px solid var(--glass-border);
    }

    body.light-mode header {
        background: rgba(255, 255, 255, 0.98);
    }

    /* Ensure Header Left (Hamburger) is visible */
    .header-left {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Title Centered or growing */
    #section-title {
        font-size: 1.1rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 700;
        text-align: left;
        line-height: 1;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        color: var(--text-main);
        font-size: 1.2rem;
        cursor: pointer;
    }

    /* Action Buttons (Right Side) */
    .actions {
        display: flex;
        gap: 8px !important;
        justify-content: flex-end;
    }

    .actions .btn-secondary {
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .actions .btn-secondary span,
    #lang-text {
        display: none !important;
    }

    /* Stats Grid - Stacked for visibility */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
        gap: 20px;
    }

    /* Bigger Numbers */
    .stat-card .stat-value {
        font-size: 2.2rem;
    }

    /* Inventory Controls - Stack Vertical */
    .inventory-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-bar,
    .search-bar input {
        width: 100%;
        height: 50px;
        /* Taller touch targets */
        font-size: 1rem;
    }

    .filter-group {
        flex-direction: column;
        /* Stack filters */
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        height: 50px;
    }

    .inventory-controls button {
        width: 100% !important;
        justify-content: center;
        height: 50px;
        font-size: 1rem;
    }

    /* Responsive Tables */
    .table-container {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
        /* Let cards flow */
    }

    /* Hide traditional table headers */
    #inventory-table thead {
        display: none;
    }

    /* Card View for Rows */
    #inventory-table tbody tr {
        display: block;
        background: var(--card-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
        position: relative;
    }

    #inventory-table td {
        display: block;
        padding: 5px 0;
        border: none;
        text-align: left;
    }

    /* Custom formatting for specific cells in card view */
    .col-name {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 5px;
        padding-right: 40px !important;
        /* Space for checkbox */
    }

    .col-check {
        position: absolute;
        top: 15px;
        right: 15px;
        width: auto;
    }

    .col-check input {
        width: 24px;
        height: 24px;
    }

    .col-category::before {
        content: "Category: ";
        color: var(--text-muted);
    }

    .col-stock::before {
        content: "Stock: ";
        color: var(--text-muted);
    }

    .col-unit::before {
        content: "Unit: ";
        color: var(--text-muted);
    }

    .col-actions {
        margin-top: 15px;
        padding-top: 15px !important;
        border-top: 1px solid var(--glass-border) !important;
        display: flex;
        justify-content: space-between;
    }

    /* Modals - Full Screenish */
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 20px;
        /* More breathing room */
        padding-top: 60px;
        /* Space for close button if we had one fixed */
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    input,
    select {
        height: 50px;
        /* Taller inputs */
    }

    /* Floating Action Button for Add */
    #add-product-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px !important;
        height: 60px !important;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
        font-size: 0;
        /* Hide text */
    }

    #add-product-btn i {
        display: block;
        font-size: 1.5rem;
        margin: 0;
    }

    /* Quick Add Button next to it */
    #quick-add-btn {
        display: none;
        /* Hide quick add on mobile to save space, or move into menu */
    }
}

/* Tablets & Medium Screens (Small Tablet - Desktop) */
@media (min-width: 577px) and (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }

    .sidebar span,
    .sidebar .user-info p,
    .sidebar .user-info span,
    .sidebar .footer-credits,
    .sidebar-header span {
        display: none !important;
    }

    .sidebar-header {
        justify-content: center;
        margin-bottom: 30px;
    }

    .nav-link {
        justify-content: center;
        padding: 15px;
    }

    .nav-link i {
        margin: 0;
        font-size: 1.4rem;
    }

    .content {
        margin-left: 80px;
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inventory-controls {
        flex-wrap: wrap;
    }

    .search-bar {
        min-width: 100%;
        order: -1;
    }

    /* Search takes full width on tablet */
}

/* Landscape Orientation Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
    }

    .sidebar {
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .modal,
    button,
    .pagination-controls,
    .theme-btn,
    .lang-btn {
        display: none !important;
    }

    .content {
        margin-left: 0;
        padding: 0;
    }

    .glass {
        background: white !important;
        border: 1px solid #ddd;
        box-shadow: none;
        color: black;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Touch Target Optimization */
@media (pointer: coarse) {

    button,
    a,
    input,
    select {
        min-height: 48px;
    }

    .btn-icon {
        padding: 12px;
    }
}