/* ============================================ */
/* استایل شماره ۱: مدرن طلایی - Modern Gold */
/* ============================================ */

/* ============================================ */
/* بخش ۱: متغیرهای رنگ */
/* ============================================ */

:root {
    --primary-color: #c9a03d;
    --primary-dark: #a8862e;
    --primary-light: #e8c46e;
    --secondary-color: #1a2a3a;
    --bg-body: #f5f7fb;
    --bg-card: #ffffff;
    --bg-sidebar: #1a2a3a;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-sidebar: #ffffff;
    --border-color: #e9ecef;
    --hover-bg: rgba(201, 160, 61, 0.1);
    --scrollbar-track: #e9ecef;
    --scrollbar-thumb: #c9a03d;
    --scrollbar-thumb-hover: #a8862e;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ============================================ */
/* بخش ۲: تنظیمات پایه */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    direction: rtl;
}

body {
    font-family: 'IRANSansWeb', 'Tahoma', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    transition: var(--transition);
    overflow-x: hidden;
}

/* ============================================ */
/* بخش ۳: اسکرول بار */
/* ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* ============================================ */
/* بخش ۴: ساختار سایدبار و محتوا */
/* ============================================ */

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #1a2a3a 0%, #0f1a24 100%);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .menu-item span,
.sidebar.collapsed .menu-group-title {
    display: none;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .logo {
    justify-content: center;
    padding: 20px 0;
}

.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    transition: var(--transition);
    min-height: 100vh;
}

.sidebar.collapsed + .main-content {
    margin-right: var(--sidebar-collapsed-width);
}

/* ============================================ */
/* بخش ۵: لوگو */
/* ============================================ */

.logo {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(201, 160, 61, 0.2);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--primary-color);
    border-radius: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ============================================ */
/* بخش ۶: منوی سایدبار */
/* ============================================ */

.menu-group {
    margin-bottom: 20px;
}

.menu-group-title {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
    color: rgba(255, 255, 255, 0.8);
}

.menu-item i {
    width: 20px;
    font-size: 18px;
}

.menu-item span {
    font-size: 14px;
}

.menu-item:hover {
    background: rgba(201, 160, 61, 0.15);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
}

.menu-item.active {
    background: linear-gradient(90deg, transparent, rgba(201, 160, 61, 0.2));
    color: var(--primary-color);
    border-right-color: var(--primary-color);
}

/* ============================================ */
/* بخش ۷: هدر */
/* ============================================ */

.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle {
    cursor: pointer;
    font-size: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    width: 250px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ============================================ */
/* بخش ۸: نوتیفیکیشن و پروفایل */
/* ============================================ */

.notifications-btn {
    position: relative;
    cursor: pointer;
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-dropdown,
.user-dropdown-menu {
    position: absolute;
    top: 60px;
    left: 20px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.notifications-dropdown.show,
.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ============================================ */
/* بخش ۹: دکمه‌ها */
/* ============================================ */

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--hover-bg);
}

/* ============================================ */
/* بخش ۱۰: کارت‌های آماری (داشبورد) */
/* ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 24px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-info h3 {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}

/* ============================================ */
/* بخش ۱۱: جداول */
/* ============================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--secondary-color);
}

.data-table tr:hover {
    background: rgba(201, 160, 61, 0.05);
}

.table-responsive {
    overflow-x: auto;
}

/* ============================================ */
/* بخش ۱۲: فرم‌ها */
/* ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ============================================ */
/* بخش ۱۳: بادج و وضعیت */
/* ============================================ */

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

/* ============================================ */
/* بخش ۱۴: سوئیچر */
/* ============================================ */

.style-switcher {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1001;
}

.style-switcher-toggler {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.style-switcher-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    width: 200px;
    display: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.style-switcher-menu.show {
    display: block;
}

.style-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.style-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.style-option:hover {
    background: var(--hover-bg);
}

.style-preview {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.style-preview-1 { background: linear-gradient(135deg, #1a2a3a, #c9a03d); }
.style-preview-2 { background: linear-gradient(135deg, #2c3e50, #95a5a6); }
.style-preview-3 { background: linear-gradient(135deg, #667eea, #764ba2); }
.style-preview-4 { background: linear-gradient(135deg, #0a0a0a, #d4af37); }
.style-preview-5 { background: linear-gradient(135deg, #f8c9d4, #c9e9c0); }

.pack-switcher {
    position: fixed;
    left: 20px;
    bottom: 90px;
    z-index: 1001;
}

.pack-switcher-toggler {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pack-switcher-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    width: 220px;
    display: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.pack-switcher-menu.show {
    display: block;
}

.pack-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}

.pack-option:hover {
    background: var(--hover-bg);
}

/* ============================================ */
/* بخش ۱۵: مودال */
/* ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
    padding: 24px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.modal-header i {
    cursor: pointer;
    font-size: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ============================================ */
/* بخش ۱۶: صفحه آنالیز (analytics.html) */
/* ============================================ */

.chart-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px;
}

.metric-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.metric-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.trend-up { color: #28a745; }
.trend-down { color: #dc3545; }

.filter-bar {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin: 0 24px 24px 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-group label {
    color: var(--text-primary);
    font-weight: 500;
}

.date-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: inherit;
}

.full-width {
    grid-column: span 2;
}

/* ============================================ */
/* بخش ۱۷: صفحه محصولات (products.html) */
/* ============================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--bg-card);
    margin-bottom: 24px;
    border-radius: var(--border-radius);
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.filters-bar {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin: 0 24px 24px 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: inherit;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 24px 24px 24px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.product-stock {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.stock-in { color: #28a745; }
.stock-low { color: #ffc107; }
.stock-out { color: #dc3545; }

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px;
}

.pagination-item {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-primary);
}

.pagination-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================ */
/* بخش ۱۸: صفحه تیکت‌ها (tickets.html) */
/* ============================================ */

.tickets-list {
    padding: 24px;
}

.ticket-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ticket-subject {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.ticket-id {
    font-size: 12px;
    color: var(--text-secondary);
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.ticket-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================ */
/* بخش ۱۹: صفحه شرکت (company-profile.html) */
/* ============================================ */

.company-header {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin: 24px;
}

.company-logo {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 48px;
    color: white;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 24px 24px 24px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 24px;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: white;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================ */
/* بخش ۲۰: صفحه تنظیمات (settings.html) */
/* ============================================ */

.settings-container {
    padding: 24px;
}

.settings-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ============================================ */
/* بخش ۲۱: صفحه لاگین (login.html) */
/* ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
}

.login-box {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
    margin: 0 auto;
}

.login-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* ============================================ */
/* بخش ۲۲: پاسخگو برای موبایل */
/* ============================================ */

@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    
    .sidebar .menu-item span,
    .sidebar .menu-group-title,
    .sidebar .logo-text {
        display: none;
    }
    
    .main-content {
        margin-right: var(--sidebar-collapsed-width);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        position: fixed;
        width: var(--sidebar-width);
    }
    
    .sidebar .menu-item span,
    .sidebar .menu-group-title,
    .sidebar .logo-text {
        display: block;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .products-grid,
    .team-grid,
    .company-info-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .filter-input {
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .date-range {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0 12px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-info h3 {
        font-size: 22px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .metric-value {
        font-size: 24px;
    }
}