/* 내 연차 신청 내역 카드뷰 */

/* 카드 그리드 레이아웃 - 3칸 고정 */
.leave-requests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 개별 연차 카드 - 크기 50% 축소 */
.leave-request-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 3px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.leave-request-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* 상태별 테두리 색상 */
.leave-request-card.status-pending {
    border-left-color: #f59e0b;
}

.leave-request-card.status-approved {
    border-left-color: #10b981;
}

.leave-request-card.status-rejected {
    border-left-color: #ef4444;
}

.leave-request-card.status-cancelled {
    border-left-color: #6b7280;
}

.leave-request-card.status-cancel_requested {
    border-left-color: #f97316;
}

/* 카드 헤더 */
.card-request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 6px;
}

.card-leave-type {
    display: flex;
    align-items: center;
    gap: 4px;
}

.leave-type-icon {
    font-size: 16px;
}

.leave-type-text {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.card-status-badge {
    flex-shrink: 0;
}

/* 카드 날짜 정보 */
.card-date-info {
    background: #f9fafb;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.date-row:last-child {
    margin-bottom: 0;
}

.date-icon {
    color: #6b7280;
    font-size: 11px;
    width: 14px;
    text-align: center;
}

.date-label {
    font-size: 10px;
    color: #6b7280;
    min-width: 40px;
}

.date-value {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.days-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}

/* 카드 사유 */
.card-reason {
    margin-bottom: 8px;
    padding: 6px;
    background: #fef3c7;
    border-radius: 4px;
    border-left: 2px solid #f59e0b;
}

.reason-label {
    font-size: 9px;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.reason-text {
    font-size: 10px;
    color: #78350f;
    line-height: 1.4;
}

/* 카드 푸터 */
.card-request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    gap: 6px;
}

.created-date {
    font-size: 9px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-action-buttons {
    display: flex;
    gap: 8px;
}

/* 취소 버튼 */
.btn-cancel-request {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn-cancel-request:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.05);
}

.btn-cancel-request i {
    font-size: 10px;
}

/* 상태 표시 태그 */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
}

.status-tag.waiting {
    background: #fef3c7;
    color: #92400e;
}

.status-tag.cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

/* 데이터 없을 때 */
.no-requests-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.no-requests-message i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-requests-message h3 {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 10px;
}

.no-requests-message p {
    font-size: 14px;
    color: #9ca3af;
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    .leave-requests-grid {
        max-width: 1200px;
        gap: 18px;
        padding: 18px;
    }
}

@media (max-width: 1200px) {
    .leave-requests-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        gap: 16px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .leave-requests-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 12px;
        padding: 12px;
    }
    
    .leave-request-card {
        padding: 16px;
    }
    
    .card-request-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-status-badge {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .leave-requests-grid {
        padding: 8px;
        max-width: 100%;
    }
    
    .leave-request-card {
        padding: 12px;
    }
    
    .card-date-info {
        padding: 12px;
    }
    
    .date-row {
        flex-wrap: wrap;
    }
    
    .days-highlight {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* 애니메이션 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leave-request-card {
    animation: slideIn 0.3s ease-out;
}

/* 타입별 아이콘 색상 */
.leave-type-icon.full {
    color: #3b82f6;
}

.leave-type-icon.half {
    color: #8b5cf6;
}

.leave-type-icon.quarter {
    color: #ec4899;
}

.leave-type-icon.hourly {
    color: #06b6d4;
}

.leave-type-icon.birthday_half {
    color: #6366f1;
}

.leave-type-icon.happy_quarter {
    color: #8b5cf6;
}

.leave-type-icon.refresh {
    color: #10b981;
}
