/* 당일 연차 사용 현황 스타일 */

/* 조회 카드와 결과 카드 간격 */
.daily-search-card {
    margin-bottom: 30px;
}

.daily-result-card {
    margin-top: 0;
}

/* 결과 카드는 flex가 아닌 block으로 */
.daily-result-card.card {
    display: block !important;
    padding: 0 !important;
}

.daily-result-card .card-header {
    padding: 25px;
    border-bottom: 2px solid #e5e7eb;
}

/* 날짜 검색 컨테이너 */
.date-search-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2ff 100%);
    border-radius: 12px;
    border: 2px solid #e0e7ff;
    flex-wrap: wrap;
    justify-content: center;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.date-input-group label {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input-large {
    padding: 14px 20px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.date-input-large:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.date-separator {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    align-self: center;
    margin: 0 10px;
    margin-bottom: 8px;
}

.button-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.btn-large {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.search-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.search-info i {
    color: #667eea;
    font-size: 18px;
}

/* 빈 상태 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #9ca3af;
    text-align: center;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 18px;
    font-weight: 500;
}

/* 로딩 메시지 */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #667eea;
    text-align: center;
}

.loading-message i {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 기존 스타일 유지 */
.date-navigation {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.date-range-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-range-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.date-navigation input[type="date"] {
    padding: 12px 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    min-width: 180px;
}

.date-navigation .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.date-navigation .btn-secondary {
    min-width: 100px;
}

.date-range-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 0;
    padding: 20px;
    min-height: 200px;
}

/* 빈 상태나 로딩 중일 때만 block */
.date-range-container .empty-state,
.date-range-container .loading-message {
    grid-column: 1 / -1;
}

.daily-leave-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

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

.daily-leave-card.today {
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.daily-card-header {
    padding: 20px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.daily-card-header.prev-day {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.daily-card-header.today-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.daily-card-header.next-day {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.daily-card-header h3 {
    font-size: 22px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.daily-card-header .date-label {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
}

.daily-card-body {
    padding: 25px;
    min-height: 400px;
}

.daily-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
}

.stats-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
}

.stats-value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

.employee-list {
    max-height: 600px;
    overflow-y: auto;
}

.employee-item {
    background: #f9fafb;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.employee-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.employee-info {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.employee-name {
    font-weight: bold;
    font-size: 18px;
    color: #111827;
}

.employee-dept {
    color: #6b7280;
    font-size: 15px;
    padding: 4px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.employee-id {
    color: #9ca3af;
    font-size: 14px;
    font-family: monospace;
    padding: 4px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.leave-detail {
    color: #4b5563;
    font-size: 15px;
    margin-top: 8px;
    padding: 10px 14px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* 2일 이상 연차 강조 스타일 */
.leave-detail.multi-day-leave {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.leave-detail.multi-day-leave strong {
    color: #dc2626;
    font-size: 16px;
}

.leave-detail {
    font-size: 15px;
    color: #4b5563;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #10b981;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 16px;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .daily-leave-container {
        grid-template-columns: 1fr;
    }
    
    .daily-leave-card {
        margin-bottom: 20px;
    }
    
    .date-range-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .date-search-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .date-input-group {
        width: 100%;
        min-width: auto;
    }
    
    .date-separator {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .button-group {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .date-navigation {
        flex-direction: column;
    }
    
    .date-navigation input[type="date"] {
        width: 100%;
    }
    
    .employee-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .date-range-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}
