/* Date Dashboard Specific Styles */

.dashboard-main {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
    background: #f8f9fa;
    padding: 60px 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 36px;
    color: var(--z2u-grey);
    margin-bottom: 8px;
}

.dashboard-header p {
    font-size: 16px;
    color: #666;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 28px;
    color: var(--z2u-grey);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    color: #666;
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--z2u-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #0091c7;
}

.btn-secondary {
    background: #28a745;
    color: var(--white);
}

.btn-secondary:hover {
    background: #218838;
}

.btn-outline {
    background: var(--white);
    color: var(--z2u-grey);
    border: 2px solid #e0e0e0;
}

.btn-outline:hover {
    border-color: var(--z2u-blue);
    color: var(--z2u-blue);
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.calendar-section,
.list-section {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--z2u-grey);
    margin-bottom: 4px;
}

.section-header p {
    font-size: 14px;
    color: #666;
}

/* Large Calendar */
.large-calendar {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
}

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

.cal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--z2u-grey);
}

.cal-nav {
    display: flex;
    gap: 8px;
}

.cal-nav button {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: var(--z2u-grey);
    transition: all 0.3s;
}

.cal-nav button:hover {
    background: var(--z2u-blue);
    color: var(--white);
    border-color: var(--z2u-blue);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.cal-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    padding: 10px 0;
}

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

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--z2u-grey);
    background: var(--white);
}

.cal-day.weekend {
    background: #f8f9fa;
    color: #999;
}

.cal-day.holiday {
    background: #ffe6e6;
    color: #c00;
    border-color: #ffb3b3;
    font-weight: 700;
}

.cal-day.today {
    border: 2px solid var(--z2u-blue);
}

.cal-day.empty {
    border: none;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--z2u-grey);
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.legend-color.weekend {
    background: #f8f9fa;
}

.legend-color.holiday {
    background: #ffe6e6;
    border-color: #ffb3b3;
}

.legend-color.available {
    background: var(--white);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--z2u-grey);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #f0f7ff;
    border-color: var(--z2u-blue);
}

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

/* Holidays List */
.holidays-list {
    max-height: 600px;
    overflow-y: auto;
}

.holiday-item {
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.holiday-item:hover {
    border-color: var(--z2u-blue);
    box-shadow: 0 2px 8px rgba(0, 167, 226, 0.1);
}

.holiday-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.holiday-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--z2u-grey);
}

.holiday-date {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.holiday-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.holiday-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.holiday-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #e6f7ff;
    color: var(--z2u-blue);
}

.holiday-badge.recurring {
    background: #fff3cd;
    color: #856404;
}

.holiday-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.delete:hover {
    background: #dc3545;
    color: var(--white);
    border-color: #dc3545;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--z2u-grey);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

/* Quick Add Section */
.quick-add-section {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quick-add-section h2 {
    font-size: 20px;
    color: var(--z2u-grey);
    margin-bottom: 20px;
}

.preset-holidays {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.preset-btn {
    padding: 14px 20px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--z2u-grey);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.preset-btn:hover {
    border-color: var(--z2u-blue);
    background: #f0f7ff;
}

.preset-btn .date {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-btn:hover {
    background: #e0e0e0;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--z2u-grey);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    right: 32px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: bottom 0.3s;
    z-index: 10000;
}

.toast.show {
    bottom: 32px;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 14px;
    color: var(--z2u-grey);
    font-weight: 600;
}

.toast.success .toast-icon::before {
    content: '✓';
    color: #28a745;
}

.toast.error .toast-icon::before {
    content: '✕';
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar button {
        width: 100%;
        justify-content: center;
    }

    .preset-holidays {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

