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

:root {
    --primary: #1976d2;
    --primary-light: #42a5f5;
    --primary-dark: #1565c0;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #eeeeee;
    --neutral-300: #e0e0e0;
    --neutral-400: #bdbdbd;
    --neutral-500: #9e9e9e;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-tertiary: #9e9e9e;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --border-color: #e0e0e0;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Title */
.section-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    margin-top: 20px;
}

.section-title:first-child {
    margin-top: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-tertiary);
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.positive {
    color: var(--success);
}

.stat-value.negative {
    color: var(--danger);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Users Table / List */
.users-container {
    background: var(--bg-primary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.user-row {
    display: grid;
    grid-template-columns: var(--grid-columns, 1fr 1fr 1fr 1fr);
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background-color 0.2s ease;
}

.user-row:last-child {
    border-bottom: none;
}

.user-row:hover {
    background-color: var(--neutral-50);
}

.user-row.header {
    background-color: var(--neutral-100);
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-tertiary);
}

.user-cell {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-primary);
    border-right: 1px solid var(--border-color);
}

.user-cell:last-child {
    border-right: none;
}

.user-cell.header {
    color: var(--text-tertiary);
    font-weight: 600;
}

/* User Name */
.user-name {
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name-primary {
    color: var(--text-primary);
    font-weight: 600;
}

.user-name-secondary {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
    position: relative;
    cursor: help;
}

/* Status Tooltip */
.status-tooltip {
    visibility: hidden;
    width: 180px;
    background-color: var(--neutral-900);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    pointer-events: none;
}

.status-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--neutral-900) transparent transparent transparent;
}

.status-badge:hover .status-tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 145%;
}

.status-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.login-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: var(--text-tertiary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    position: relative; /* Anchor for the status dot */
}

.autologin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    right: -2px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 5;
}

.autologin-dot.active {
    background: #04ab6b; /* Green */
    box-shadow: 0 0 5px rgba(4, 171, 107, 0.6);
}

.autologin-dot.pending {
    background: #b8860b; /* Yellow Dark */
}

.login-icon-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.login-icon-btn.highlight {
    color: #b8860b;
    border-color: rgba(184, 134, 11, 0.3);
    animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.login-icon-btn:active {
    transform: scale(0.95);
}

.login-icon-btn.success {
    background: var(--success);
    color: white;
}

.tooltip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tooltip-item:last-child {
    margin-bottom: 0;
}

.tooltip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 5px var(--success);
}

.tooltip-label {
    color: rgba(255,255,255,0.7);
}

.tooltip-value {
    color: #fff;
    font-weight: 600;
}

.status-badge.active {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.status-badge.inactive {
    background-color: rgba(158, 158, 158, 0.1);
    color: var(--text-tertiary);
}

.status-badge.paused {
    background-color: rgba(255, 152, 0, 0.1);
    color: #e65100;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.active .status-dot {
    background-color: #4caf50;
}

.status-badge.inactive .status-dot {
    background-color: var(--neutral-400);
}

.status-badge.paused .status-dot {
    background-color: #ff9800;
}

.status-badge.autologin-active {
    background: rgba(4, 171, 107, 0.1);
    color: #04ab6b;
}
.status-badge.autologin-active .status-dot {
    background: #04ab6b;
    box-shadow: 0 0 8px rgba(4, 171, 107, 0.4);
}

.status-badge.autologin-pending {
    background: rgba(184, 134, 11, 0.1); /* Dark Goldenrod / Yellow Dark */
    color: #b8860b;
}
.status-badge.autologin-pending .status-dot {
    background: #b8860b;
}

.autologin-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
    color: var(--text-tertiary);
}

/* Stocks */
.stocks-cell {
    font-size: 12px;
    color: var(--text-secondary);
}

.stock-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.stock-tag {
    background-color: var(--neutral-100);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    border: 0.5px solid var(--neutral-200);
}

.no-stocks {
    color: var(--text-tertiary);
    font-style: italic;
}

/* P&L */
.pnl-value {
    font-weight: 600;
    font-size: 13px;
}

.pnl-positive {
    color: var(--success);
}

.pnl-negative {
    color: var(--danger);
}

.pnl-secondary {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Capital */
.capital-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* VPS */
.vps-badge {
    background-color: var(--neutral-100);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    border: 0.5px solid var(--neutral-200);
    display: inline-block;
}

/* Actions */
.actions-cell {
    text-align: center;
}

.action-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn:hover {
    background-color: var(--neutral-100);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .user-row {
        grid-template-columns: var(--grid-columns-mobile, 1fr 1fr 1fr 1fr);
    }

    .user-cell {
        padding: 12px;
        font-size: 12px;
    }
}

/* Profile Dropdown */
.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}

.profile-container:hover {
    background: var(--neutral-100);
}

.profile-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 160px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--neutral-100);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
}

/* Admin Action Buttons */
.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

.btn-icon.delete:hover {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

/* Side Drawer */
.side-drawer {
    position: fixed;
    top: 0;
    right: -900px;
    width: 900px;
    height: 100%;
    background: var(--bg-primary);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.side-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    animation: fadeInOverlay 0.2s ease;
}

.drawer-overlay.show {
    display: block;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.drawer-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 4px;
    line-height: 1;
}

.drawer-close:hover {
    color: var(--text-primary);
}

.detail-item {
    margin-bottom: 20px;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Make row clickable */
.user-row:not(.header) {
    cursor: pointer;
}

@media (max-width: 480px) {
    .side-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Drawer Tabs */
.drawer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--neutral-50);
    padding: 0 12px;
}

.drawer-tab {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.drawer-tab:hover {
    color: var(--text-primary);
}

.drawer-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.tab-pane.active {
    display: block;
}

/* Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: var(--bg-primary);
    width: 700px;
    max-width: 95%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--neutral-50);
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

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

.days-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-check {
    flex: 1;
    min-width: 60px;
}

.day-check input {
    display: none;
}

.day-label {
    display: block;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.day-check input:checked + .day-label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.holiday-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--neutral-100);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 4px;
}

@media (max-width: 768px) {
    .user-row {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        border: none;
        margin-bottom: 12px;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        overflow: hidden;
    }

    .user-row:hover {
        background-color: var(--bg-primary);
    }

    .user-row.header {
        display: none;
    }

    .user-cell {
        display: grid;
        grid-template-columns: 120px 1fr;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--neutral-200);
        border-right: none;
    }

    .user-cell:last-child {
        border-bottom: none;
    }

    .user-cell::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--text-tertiary);
        min-width: 120px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-buttons {
        flex-wrap: wrap;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-row {
    animation: fadeIn 0.3s ease;
}

.user-row:nth-child(n+2) {
    animation-delay: calc((var(--row-index) - 1) * 0.05s);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}
/* Calendar Styles */
.calendar-modal {
    width: 900px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-primary);
    transition: all 0.2s ease;
    position: relative;
    cursor: default;
}

.calendar-day.not-current-month {
    opacity: 0.3;
    background: var(--neutral-50);
}

.calendar-day.weekend {
    background: var(--neutral-50);
}

.calendar-day.today {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.calendar-day-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 auto;
}

.calendar-holiday {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.2);
}

.calendar-holiday .calendar-day-num {
    color: var(--danger);
}

.calendar-special {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.2);
}

.calendar-special .calendar-day-num {
    color: var(--warning);
}

.holiday-tag {
    font-size: 9px;
    padding: 2px 4px;
    background: var(--danger);
    color: white;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.special-tag {
    font-size: 9px;
    padding: 2px 4px;
    background: var(--warning);
    color: white;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-info-panel {
    background: var(--neutral-50);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.schedule-time {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.schedule-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.holiday-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.holiday-item:last-child {
    border-bottom: none;
}

.holiday-date-box {
    min-width: 45px;
    text-align: center;
    padding: 4px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.holiday-date-day {
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.holiday-date-month {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.holiday-info {
    flex: 1;
}

.holiday-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.holiday-status {
    font-size: 11px;
    color: var(--danger);
    font-weight: 500;
}

.nav-btn {
    background: white;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--neutral-100);
    border-color: var(--primary-light);
    color: var(--primary);
}

.market-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.market-status-badge.open {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.market-status-badge.closed {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(currentcolor, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(currentcolor, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(currentcolor, 0); }
}

@media (max-width: 900px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
    .calendar-modal {
        width: 95%;
    }
}
