/* Vacation Days Management Styles */

/* Modern Month Navigation - Glass Morphism */
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.month-navigation:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.month-display {
    text-align: center;
    color: #fff;
}

.month-display h2 {
    margin: 0;
    font-size: 1.1em; /* Made smaller as requested */
    font-weight: 600;
}

.month-display p {
    margin: 4px 0 0 0;
    font-size: 0.85em; /* Made smaller */
    color: rgba(255, 255, 255, 0.7);
}

/* Modern Calendar Container - Glass Morphism */
.calendar-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.calendar-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Calendar Header */
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.day-header {
    padding: 10px 4px;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85em;
    box-sizing: border-box;
}

.day-header.weekend {
    background: rgba(239, 68, 68, 0.2);
    color: rgba(239, 68, 68, 0.9);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    min-height: 350px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 50px;
    max-height: 60px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #2c3e50;
    font-weight: 500;
    text-align: center;
    font-size: 0.9em;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.calendar-day.weekend {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    cursor: not-allowed;
}

.calendar-day.weekend:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.holiday {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: #fff;
    font-weight: 600;
}

.calendar-day.super-work {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    color: #fff;
    font-weight: 600;
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.other-month:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.today {
    border: 2px solid #f39c12 !important;
    background: rgba(243, 156, 18, 0.2) !important;
    font-weight: 700;
}

.calendar-day.today .day-number {
    color: #f39c12;
    font-weight: 700;
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.other-month:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.weekend {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    cursor: not-allowed;
}

.calendar-day.weekend:hover {
    transform: none;
    box-shadow: none;
}

.day-number {
    font-size: 1.1em;
    font-weight: 600;
}

/* Dual date display styling - matching the image */
.day-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4px;
}

.jalali-date {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 2px;
}

.gregorian-date {
    font-size: 0.8em;
    color: #7f8c8d;
    line-height: 1;
    font-weight: 500;
}

/* Saturday styling */
.calendar-day.saturday .jalali-date,
.calendar-day.saturday .gregorian-date {
    color: #e74c3c;
}

/* Today styling */
.calendar-day.today .jalali-date,
.calendar-day.today .gregorian-date {
    color: #e74c3c;
    font-weight: bold;
}

/* Holiday styling */
.calendar-day.holiday .jalali-date,
.calendar-day.holiday .gregorian-date {
    color: #fff;
    font-weight: bold;
}

/* Super work styling */
.calendar-day.super-work .jalali-date,
.calendar-day.super-work .gregorian-date {
    color: #fff;
    font-weight: bold;
}

/* Date Info Display */
.date-info {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 2px solid #4a6741;
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    color: #ecf0f1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-label {
    font-size: 0.9em;
    color: #bdc3c7;
    margin-bottom: 5px;
    font-weight: 600;
}

#today-info,
#tomorrow-info {
    font-size: 1.1em;
    font-weight: bold;
    color: #ecf0f1;
}

.day-status {
    font-size: 0.7em;
    margin-top: 2px;
    opacity: 0.8;
}

/* Modern Legend - Glass Morphism */
.legend-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.legend-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.legend-container h3 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.legend-color.normal-day {
    background: rgba(236, 240, 241, 0.1);
}

.legend-color.weekend {
    background: rgba(231, 76, 60, 0.2);
}

.legend-color.holiday {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.legend-color.super-work {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Modern Action Buttons - Glass Morphism */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.action-buttons:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Responsive: buttons side-by-side on larger screens */
@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
        gap: 16px;
}

    .action-buttons button {
        flex: 1;
    }
}

/* Modern Button Styles */
.main-button, .secondary-btn {
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    min-height: 48px;
}

.main-button svg, .secondary-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
}

.main-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.main-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.main-button:disabled, .secondary-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 1px;
        padding: 2px;
        min-height: 300px;
    }
    
    .calendar-day {
        min-height: 35px;
        max-height: 40px;
        padding: 2px;
        font-size: 0.8em;
    }
    
    .day-header {
        padding: 6px 2px;
        font-size: 0.7em;
    }
    
    .day-number {
        font-size: 0.9em;
    }
    
    .day-status {
        font-size: 0.5em;
    }
    
    .legend-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 1px;
        padding: 1px;
        min-height: 250px;
    }
    
    .calendar-day {
        min-height: 30px;
        max-height: 35px;
        padding: 1px;
        font-size: 0.7em;
    }
    
    .day-header {
        padding: 4px 1px;
        font-size: 0.6em;
    }
    
    .legend-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

