/* 베이스 스타일링 */
body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: #f9fafb;
}

/* 스피너 애니메이션 */
.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 모바일 라벨 */
.mobile-label {
    display: none;
}

/* 피크타임 그리드 */
.peak-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
    text-align: left;
}

/* 반응형 테이블 스타일 */
@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody,
    .responsive-table tr {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid #e9e9e9;
        background-color: #ffffff;
    }

    .responsive-table td {
        border: none;
        display: block;
    }

    .responsive-table .rank-cell,
    .responsive-table .rider-cell,
    .responsive-table .status-cell {
        flex-basis: calc(100% / 3);
        padding: 0.5rem 0.25rem;
        border-bottom: 1px solid #e9e9e9;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .responsive-table .rank-cell {
        flex-direction: row;
        gap: 0.5rem;
    }

    .responsive-table .rank-cell .mobile-label,
    .responsive-table .rank-cell .value {
        display: inline;
        margin-bottom: 0;
    }

    .responsive-table .rank-cell .mobile-label {
        font-size: 1rem;
        font-weight: 600;
    }

    .responsive-table .rank-cell .value {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .responsive-table .complete-cell,
    .responsive-table .reject-cell,
    .responsive-table .cancel-cell,
    .responsive-table .fault-cell {
        flex-grow: 1;
        flex-basis: auto;
        padding: 0.5rem 0.1rem;
        text-align: center;
        border-bottom: 1px solid #e9e9e9;
        margin-bottom: 0.5rem;
    }

    .responsive-table .peak-time-cell {
        flex-basis: 100%;
        padding-top: 0.5rem;
    }

    .peak-time-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1.5rem;
    }

    .mobile-label {
        display: block;
        font-weight: 500;
        color: #6b7280;
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
    }

    .value {
        display: block;
        word-wrap: break-word;
    }

    .responsive-table .status-cell .value .px-3 {
        float: none;
        display: inline-block;
    }
}

/* 관리자 페이지 스타일 */
.admin-body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
}

/* 로그인 페이지 스타일 */
.login-body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
}

.form-input:focus {
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
    border-color: #06b6d4;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 모달 비활성화시 body 스크롤 방지 */
.modal-open {
    overflow: hidden;
}

/* 탭 스타일 */
.tab-btn {
    transition: all 0.2s ease-in-out;
}

.tab-active {
    color: #0891b2; /* cyan-600 */
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

/* 패널 전환 */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모달 스타일 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 480px;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.modal-backdrop.visible .modal-content {
    transform: scale(1) translateY(0);
}

/* 커스텀 입력 포커스 */
.form-input:focus {
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
    border-color: #06b6d4; /* cyan-500 */
}