:root {
    --primary: #E8B4B8;
    --primary-light: #F5E6E8;
    --primary-dark: #D4A5A5;
    --accent: #C9929E;
    --text: #4A4A4A;
    --text-light: #666666;
    --text-muted: #999999;
    --success: #7FB685;
    --warning: #F4A261;
    --danger: #E76F51;
    --white: #FFFFFF;
    --border: #E8D5D5;
    --shadow: rgba(232, 180, 184, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    color: var(--text);
    min-height: 100vh;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--white);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 15px;
}

.header-left {
    flex-shrink: 0;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.header-center {
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--primary-light);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-tabs {
    display: flex;
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 4px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--white);
    color: var(--accent);
    box-shadow: 0 2px 5px var(--shadow);
}

.tab-btn:hover:not(.active) {
    color: var(--text);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 220px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 50px;
}

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

.sidebar-header h3 {
    color: var(--accent);
    font-size: 1.1rem;
}

.collapse-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-light);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
}

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

.filter-group h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.filter-group label {
    display: block;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.filter-group label:hover {
    background: var(--primary-light);
}

.filter-group input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--accent);
}

.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.data-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    padding: 10px;
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.schedule-view {
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-group {
    margin-bottom: 30px;
}

.schedule-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px var(--shadow);
}

.schedule-date.overdue {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF0F0 100%);
    border-left: 4px solid var(--danger);
}

.schedule-date.urgent {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFF8F0 100%);
    border-left: 4px solid var(--warning);
}

.schedule-date.normal {
    border-left: 4px solid var(--success);
}

.date-label {
    font-weight: 600;
    color: var(--text);
}

.date-count {
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
}

.schedule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 0 10px;
}

.order-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 3px 10px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
}

.order-card.shipped {
    opacity: 0.7;
    background: linear-gradient(135deg, var(--white) 0%, #F0FFF0 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--primary-light);
}

.platform-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.platform-tag.闲鱼 {
    background: #FFE4B5;
    color: #D2691E;
}

.platform-tag.微信 {
    background: #C8E6C9;
    color: #388E3C;
}

.status-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-tag.pending {
    background: #FFF3E0;
    color: #E65100;
}

.status-tag.progress {
    background: #E3F2FD;
    color: #1976D2;
}

.status-tag.ready {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-tag.shipped {
    background: #F3E5F5;
    color: #7B1FA2;
}

.card-deadline {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.card-body {
    padding: 15px;
}

.card-character {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.card-customer {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 0.85rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-item .icon {
    font-size: 1rem;
}

.detail-item .value {
    color: var(--text-light);
}

.card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid var(--border);
    background: var(--primary-light);
}

.card-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.card-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.card-btn.shipped-btn.active {
    background: var(--success);
    color: var(--white);
}

.kanban-view {
    display: flex;
    gap: 20px;
    height: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-column {
    min-width: 300px;
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 3px 10px var(--shadow);
    display: flex;
    flex-direction: column;
}

.kanban-header {
    padding: 15px;
    background: var(--primary-light);
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-title {
    font-weight: 600;
    color: var(--accent);
}

.kanban-count {
    background: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.kanban-cards {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.table-view {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 3px 10px var(--shadow);
    overflow-x: auto;
}

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

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

.data-table th {
    background: var(--primary-light);
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.data-table tr:hover {
    background: var(--primary-light);
}

.data-table tr.shipped {
    opacity: 0.6;
}

.table-btn {
    padding: 6px 10px;
    border: none;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.table-btn:hover {
    background: var(--primary);
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.data-table th.sortable:hover {
    background: var(--primary);
}

.sort-icon {
    margin-left: 4px;
    font-size: 0.8em;
    opacity: 0.6;
}

.data-table th.sortable:hover .sort-icon {
    opacity: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stats-modal {
    max-width: 600px;
}

.settings-modal {
    max-width: 500px;
}

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

.settings-section h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.setting-item label {
    font-weight: 500;
    color: var(--text);
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

.setting-item select:focus {
    outline: none;
    border-color: var(--accent);
}

.confirm-modal {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary-light);
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header h3 {
    color: var(--accent);
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.form-row {
    margin-bottom: 15px;
}

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

.form-row .required {
    color: var(--danger);
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

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

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.btn-cancel,
.btn-save,
.btn-delete {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: var(--primary-light);
    color: var(--text-light);
}

.btn-cancel:hover {
    background: var(--border);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-delete {
    background: var(--danger);
    color: var(--white);
}

.btn-delete:hover {
    background: #D35E45;
}

.stats-body {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.stats-section {
    margin-bottom: 25px;
}

.stats-section h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1rem;
}

.amount-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amount-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.amount-label {
    color: var(--text-light);
}

.amount-value {
    font-weight: 600;
    color: var(--accent);
}

.amount-value.highlight {
    color: var(--success);
    font-size: 1.1rem;
}

.time-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-label {
    width: 80px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.time-bar-container {
    flex: 1;
    height: 20px;
    background: var(--primary-light);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.time-bar {
    height: 100%;
    transition: width 0.5s ease;
}

.shipped-bar {
    background: linear-gradient(135deg, #81C784 0%, #4CAF50 100%);
    border-radius: 10px 0 0 10px;
}

.unshipped-bar {
    background: linear-gradient(135deg, #FFB74D 0%, #FF9800 100%);
    border-radius: 0 10px 10px 0;
}

.time-count {
    width: 80px;
    text-align: right;
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.shipped-count {
    color: #4CAF50;
}

.unshipped-count {
    color: #FF9800;
}

.time-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.time-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text);
}

.time-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.time-legend .legend-dot.shipped {
    background: #4CAF50;
}

.time-legend .legend-dot.unshipped {
    background: #FF9800;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 10px;
    box-shadow: 0 -2px 10px var(--shadow);
    justify-content: space-around;
    z-index: 100;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--primary-light);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background: var(--primary);
}

.add-nav-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    font-size: 1.8rem;
}

@media (max-width: 1024px) {
    .header {
        flex-wrap: wrap;
    }

    .header-center {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }

    .sidebar {
        width: 180px;
    }

    .schedule-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    .header-right .view-tabs {
        display: none;
    }

    .header-right .icon-btn {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 15px;
        padding-bottom: 80px;
    }

    .schedule-cards {
        grid-template-columns: 1fr;
    }

    .kanban-view {
        flex-direction: column;
    }

    .kanban-column {
        min-width: 100%;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .mobile-nav {
        display: flex;
    }

    .modal {
        max-width: 100%;
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .search-box input {
        padding: 8px 12px;
    }

    .order-card {
        font-size: 0.9rem;
    }

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

    .stat-value {
        font-size: 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 4px;
}

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

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

.free-days-panel {
    background: linear-gradient(135deg, #fff5f7 0%, #f0fff4 100%);
    border-radius: var(--radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-light);
}

.free-days-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.free-days-icon {
    font-size: 1.5rem;
}

.free-days-title {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.free-days-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

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

.free-day-tag {
    background: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
    border: 1px solid var(--success);
    white-space: nowrap;
}

.free-day-more {
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.free-days-detail {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
}

.free-days-detail h5 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 10px;
}

.free-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.free-day-item {
    background: var(--primary-light);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text);
    text-align: center;
}

@media (max-width: 768px) {
    .free-days-panel {
        padding: 12px 15px;
    }
    
    .free-days-header {
        flex-wrap: wrap;
    }
    
    .free-days-count {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
    
    .free-days-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.free-days-panel {
    cursor: pointer;
    transition: all 0.3s ease;
}

.free-days-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

.calendar-modal {
    max-width: 900px;
    width: 95%;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.free {
    background: #90EE90;
}

.legend-dot.work {
    background: #FFB6C1;
}

.legend-dot.holiday {
    background: #E0E0E0;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.calendar-month {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--border);
}

.month-title {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 10px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 5px;
}

.weekday {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 5px 0;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
    position: relative;
    min-height: 36px;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.free {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
}

.calendar-day.work {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD9 100%);
    color: #C2185B;
}

.calendar-day.holiday {
    background: #F5F5F5;
    color: #9E9E9E;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px var(--accent);
    font-weight: bold;
}

.day-number {
    line-height: 1;
}

.day-order {
    font-size: 0.6rem;
    position: absolute;
    bottom: 2px;
}

@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: 1fr;
    }
    
    .calendar-modal {
        max-width: 100%;
        margin: 10px;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 10px 15px;
    }
    
    .header-left .logo {
        font-size: 1.1rem;
    }
    
    .header-center .search-box input {
        width: 180px;
    }
    
    .content {
        padding: 15px;
    }
    
    .kanban-view {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow-x: visible;
    }
    
    .kanban-column {
        min-width: 0;
        flex: none;
    }
    
    .order-card {
        min-width: 0;
    }
    
    .card-header {
        flex-wrap: nowrap;
    }
    
    .status-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .platform-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .data-table th {
        white-space: nowrap;
    }
    
    .table-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .modal {
        max-width: 90%;
        max-height: 90vh;
    }
    
    .form-row {
        margin-bottom: 12px;
    }
    
    .form-row label {
        font-size: 0.85rem;
    }
    
    .form-row input,
    .form-row textarea,
    .form-row select {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .stats-modal {
        max-width: 90%;
    }
    
    .settings-modal {
        max-width: 90%;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .free-days-panel {
        padding: 12px 15px;
    }
    
    .free-days-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .calendar-modal {
        max-width: 90%;
        margin: 15px;
    }
    
    .calendar-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .calendar-day {
        min-height: 35px;
    }
    
    .day-number {
        font-size: 0.85rem;
    }
    
    .day-order {
        font-size: 0.55rem;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .kanban-view {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        overflow-x: visible;
    }
    
    .kanban-column {
        min-width: 0;
        flex: none;
    }
    
    .order-card {
        min-width: 0;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}
