/* Training Log Manager Custom Styles */

/* 탭 버튼 스타일 */
.tlm-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: #f8fafc;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.625rem 1rem;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tlm-tab-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.tlm-tab-btn.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* 드래그앤드롭 활성화 */
#file-drop-area.dragging {
    border-color: #3B82F6;
    background-color: #EFF6FF;
}

/* 스위치 애니메이션 */
.dot {
    transition: transform 0.3s ease-in-out;
}

/* 테이블 반응형 */
@media (max-width: 768px) {
    .tlm-log-table {
        font-size: 0.875rem;
    }
    
    .tlm-log-table th,
    .tlm-log-table td {
        padding: 0.5rem !important;
    }
    
    /* 모바일에서 일부 컬럼 숨김 */
    .tlm-log-table th:nth-child(4),
    .tlm-log-table td:nth-child(4),
    .tlm-log-table th:nth-child(5),
    .tlm-log-table td:nth-child(5) {
        display: none;
    }
}

/* 파일 미리보기 호버 효과 */
#file-preview img,
#existing-files img {
    transition: transform 0.2s;
}

#file-preview img:hover,
#existing-files img:hover {
    transform: scale(1.05);
}

/* 로딩 상태 */
.tlm-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 메시지 애니메이션 */
#tlm-message {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 폼 입력 포커스 효과 강화 */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 버튼 호버 효과 */
button,
a.inline-flex {
    transition: all 0.15s ease-in-out;
}

/* 페이지네이션 활성 상태 */
nav a.bg-blue-50 {
    font-weight: 600;
}

/* 상태 뱃지 */
.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
}

/* 파일 업로드 영역 */
#file-drop-area {
    transition: all 0.2s ease-in-out;
}

#file-drop-area:hover {
    border-color: #93C5FD;
}

/* 삭제 버튼 호버 */
button[onclick*="tlmDelete"] {
    transition: color 0.15s;
}

/* 빈 상태 아이콘 */
.text-center svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 모바일 탭 네비게이션 */
@media (max-width: 640px) {
    .tlm-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tlm-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .tlm-tab-nav a {
        white-space: nowrap;
    }
}

/* 프린트 스타일 */
@media print {
    #tlm-container nav,
    button,
    .hover\:bg-gray-50 {
        display: none !important;
    }
}
