/* ============================================================
   Responsive Styles
   ============================================================ */

@media (max-width: 1024px) {
    .sidebar-toggle { display: block; }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar-collapsed .sidebar,
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
    .topbar {
        padding: 0 16px;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-left, .toolbar-right {
        justify-content: center;
    }
    .search-box input {
        min-width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .page-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .user-info {
        display: none;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    table th, table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    .review-detail {
        grid-template-columns: 1fr 1fr;
    }
    .auth-card {
        padding: 24px;
    }
    .count-entry-card .qty-input-group {
        flex-wrap: wrap;
    }
    .filter-form select.form-control,
    .filter-form button {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .btn-group {
        flex-direction: column;
    }
    .table-actions {
        flex-direction: column;
    }
    .review-detail {
        grid-template-columns: 1fr;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Print Styles --- */
@media print {
    .sidebar, .topbar, .sidebar-toggle, .toolbar, .btn, .pagination-nav, .flash-container {
        display: none !important;
    }
    .main-wrapper {
        margin-left: 0 !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    body { background: #fff; }
}
