/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* 導入父主題樣式 */
@import url('../generatepress/style.css');

/* 全局變量 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --light-bg: #f4f4f5;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 全局樣式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #f5f6fa;
}

dl,
ol,
ul {
    margin-top: 0px;
    margin-bottom: 0;
}

/* 卡片樣式 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    background-color: white;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* 時間軸樣式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    font-weight: bold;
    background-color: var(--accent-color);
}

.timeline-content {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 列表樣式 */
.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.list-group-item i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* 標題樣式 */
h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* 場地卡片樣式 */
.venue-card {
    height: 100%;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.venue-card h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.venue-card i.fas {
    margin-right: 8px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-badge {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.9rem;
    }

    .list-group-item {
        padding: 0.5rem 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.2rem;
    }
}

/* 連結樣式 */
a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 警告提示樣式 */
.warning-text {
    color: #e74c3c;
    font-weight: 500;
}

/* 重要資訊樣式 */
.important-info {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

/* 移除 Accordion 點擊時的粗邊框和陰影 */
.accordion-button:focus,
.accordion-button:not(.collapsed) {
    box-shadow: none;
    border-color: transparent;
    outline: none;
}

/* 自訂導覽列樣式 */
.custom-nav-bg {
    background: #181e7a;
}

.nav-btn {
    background: #f5f6fa;
    color: #181e7a;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    min-width: unset;
    padding: 0.5rem 0;
    border: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 0;
}

.nav-btn.active,
.nav-btn:active,
.nav-btn:focus {
    background: #1677ff;
    color: #fff;
    border: none;
    outline: none;
}

.nav-btn:hover {
    background: #e6eafc;
    color: #181e7a;
}



/* 基本資料卡片樣式 */
.info-item {
    margin-bottom: 0.5rem;
}

.info-label {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.2rem;
    background: #1677ff;
    width: fit-content;
    padding: 2px 10px;
    border-radius: 8px;
    align-self: center;
}

.info-value {
    font-size: 1rem;
    font-weight: bold;
}

/* 成績卡片樣式 */
.score-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.score-card:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.5rem;
    background: #1677ff;
    width: fit-content;
    padding: 2px 10px;
    border-radius: 8px;
    margin: 0 auto;
}

.score-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a237e;
}

/* 警告訊息樣式 */
.alert-info {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
    font-size: 0.9rem;
}

.alert-info i {
    color: #1976d2;
}

/* 新增成績顯示卡片樣式 */
.score-display-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem;
    border: 1px solid #fbeaea;
}

.score-number-container {
    background-color: #1a237e;
    border-radius: 8px;
    padding: 0.25rem 1rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-number-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    text-align: center;
}

.score-number-value {
    font-size: 3rem;
    font-weight: 700;
    color: #1a237e;
    line-height: 1;
    text-align: center;
}

/* 分隔線樣式 */
.score-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(26, 35, 126, 0.5), rgba(0, 0, 0, 0));
}

/* 排名區塊樣式 */
.rank-section {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    background-color: #f0f2f5;
    margin: 0 0.25rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rank-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
    background-color: #e0e0e0;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.rank-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.medal-info {
    margin-top: auto;
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.5;
    padding-top: 0.5rem;
}

.medal-info i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.medal-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}

/* 獎牌狀態顏色 */
.status-pending-red {
    background-color: #f8d7da;
    color: #721c24;
}

.status-received-blue {
    background-color: #cce5ff;
    color: #004085;
}

.appeal-deadline {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.appeal-status {
    margin-top: 0.25rem;
}

.appeal-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.appeal-pending {
    background-color: #fff3cd;
    color: #856404;
}

.score-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.btn-appeal {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-appeal:hover {
    background-color: #c82333;
    color: #fff;
}

/* 排名說明按鈕 */
.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: #fff;
}



/* 獎牌卡片樣式 */
.medal-card {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.medal-name {
    font-weight: 600;
    font-size: 1.1rem;
}

/* 狀態樣式 */
.award-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #e9ecef;
    color: #6c757d;
}

.status-received {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* 手風琴樣式優化 */
.accordion-button:not(.collapsed) {
    background-color: #e8eaf6;
    color: #1a237e;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.25);
}

/* 賽事項目資訊樣式 */
.event-info-grid {
    display: grid;
    gap: 1rem;
}

.event-info-item {
    margin-bottom: 0.5rem;
}

.event-info-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.event-info-value {
    font-size: 1rem;
    font-weight: 500;
}

/* 狀態卡片樣式 */
.event-status-card {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.medal-status-card {
    background-color: #fff8e1;
    border-left: 3px solid #ffc107;
}

.certificate-status-card {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.status-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.status-value {
    font-size: 1rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-secondary {
    background-color: #e9ecef;
    color: #6c757d;
}

/* 團隊資訊樣式 */
.team-info {
    padding: 1rem 0;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.team-region {
    font-size: 1.1rem;
    color: #6c757d;
}

/* 團隊標籤頁樣式 */
.nav-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    border-radius: 0;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link.active {
    color: #1a237e;
    font-weight: 600;
    border-bottom: 3px solid #1a237e;
}

/* 團隊成績表格樣式 */
.team-results-table th {
    background-color: #e8eaf6;
    color: #1a237e;
    font-weight: 600;
    border-top: none;
}

.team-results-table td {
    vertical-align: middle;
}

/* 載入動畫優化 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 排名徽章 */
.rank-badge {
    background-color: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-block;
}

.rank-pending {
    background-color: #ff9800;
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-block;
}

/* 獎項和證書樣式 */
.awards-section {
    margin-top: 10px;
}

.award-item {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 8px 12px;
}

.award-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #757575;
}

.medal-icon {
    color: #ffc107;
}

.award-details {
    flex: 1;
}

.award-label {
    font-size: 0.8rem;
    color: #757575;
    margin-bottom: 2px;
}

.award-value {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 排名信息提示 */
.rank-info-message {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
    color: #1976d2;
}

/* 響應式調整 */
@media (max-width: 767.98px) {
    .score-number-label {
        font-size: 2rem;
    }

    .award-item {
        margin-bottom: 8px;
    }
}

/* 排名說明 Modal */
.modal-header.bg-info {
    background-color: #17a2b8 !important;
}

.modal-body .card-header.bg-primary {
    background-color: #1a237e !important;
}

.modal-body .card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
}

.modal-body .card-header {
    border-radius: 8px 8px 0 0;
}

.appeal-action {
    text-align: right;
}

/* 證書標籤靠右顯示 */
.certificate-label {
    margin-left: auto;
    text-align: right;
    width: fit-content;
}

/* 上訴步驟指示器樣式 */
.appeal-steps {
    margin: 20px 0;
}

.step-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.step-line {
    flex: 1;
    height: 3px;
    background-color: #e9ecef;
    margin: 0 10px;
    position: relative;
    top: -20px;
    z-index: 0;
}

.step-indicator.active .step-number {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.step-indicator.active .step-text {
    color: #0d6efd;
    font-weight: bold;
}

.step-indicator.completed .step-number {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

.step-indicator.completed .step-text {
    color: #198754;
}

/* QR碼容器樣式 */
.qr-code-container {
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: 0 auto;
}

/* 上訴表單樣式 */
.appeal-step {
    transition: all 0.3s ease;
}

#appeal-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 上訴按鈕樣式 */
.btn-appeal {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-appeal:hover {
    background-color: #bb2d3b;
    color: white;
}

/* 上訴狀態徽章 */
.appeal-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

.appeal-pending {
    background-color: #ffc107;
    color: #212529;
}

.appeal-deadline {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/**
 * 參賽資料查詢頁面樣式
 */

/* QR 掃描器樣式 */
.qr-scanner-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 1/1;
    /* 確保容器是正方形 */
}

/* 視頻元素也保持正方形 */
#qrScanner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 確保視頻填滿容器 */
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    width: 70%;
    height: 70%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 掃描線動畫 */
.scanner-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(21, 101, 192, 0.8);
    box-shadow: 0 0 10px rgba(21, 101, 192, 0.8);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

/* 掃描框四角標記 */
.scanner-frame::before {
    content: '';
    position: absolute;
    width: fit-content;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 2px;
    box-sizing: border-box;
    border-image-source: linear-gradient(45deg, #1565c0 0%, transparent 30%, transparent 70%, #1565c0 100%);
    border-image-slice: 1;
}

/* 驗證碼樣式 */
.verification-code-display {
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    border-radius: 4px;
    font-size: 2rem;
    background-color: #f8f9fa;
    padding: 1rem;
}

/* 卡片樣式 */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.feature-card .card-body {
    padding: 2rem;
}

/* 圖標樣式 */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1565c0;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background-color: rgba(21, 101, 192, 0.1);
}

/* Start of Selection */
/* 手風琴按鈕樣式 */
.accordion-button:not(.collapsed) {
    background-color: #e8eaf6;
    color: #1a237e;
}

/* End of Selection */

/* 結果表格樣式 */
.participant-table {
    border-collapse: separate;
    border-spacing: 0;
}

.participant-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
}

.participant-table td {
    padding: 1rem;
    vertical-align: middle;
}

.status-registered {
    color: #198754;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background-color: rgba(25, 135, 84, 0.1);
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background-color: rgba(255, 193, 7, 0.1);
}

/* 全尺寸 Modal 樣式 */
.modal-fullsize {
    padding: 0 !important;
}

.modal-fullsize .modal-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal-fullsize .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.modal-fullsize .modal-body {
    overflow-y: auto;
    padding: 2rem;
}

/* 錯誤提示樣式 */
.error-message {
    background-color: #f8d7da;
    color: #842029;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

/* 表單樣式 */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25);
    border-color: #1565c0;
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1565c0;
    border-color: #1565c0;
}

.btn-primary:hover {
    background-color: #0d47a1;
    border-color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* 輸入碼組樣式 */
.input-code-group {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.code-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0;
    border-radius: 8px;
}

.code-input:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25);
}

/* 移動端樣式調整 */
@media (max-width: 576px) {
    .code-input {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* 驗證碼提交按鈕樣式 */
.verification-submit-btn {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.verification-submit-btn:disabled {
    background-color: #b0bec5;
    border-color: #b0bec5;
    cursor: not-allowed;
    opacity: 0.7;
}

.verification-submit-btn:not(:disabled):hover {
    background-color: #0d47a1;
    border-color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.3);
}

.verification-submit-btn.active {
    background-color: #2e7d32;
    border-color: #2e7d32;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 125, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

/* 頁面載入器樣式 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loader-container {
    text-align: center;
    padding: 2.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-loader .spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    color: #1565c0;
    border-width: 0.25rem;
}

.page-loader p {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* 載入動畫 */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.loader-icon {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Toast通知樣式 */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: toastFadeIn 0.3s ease forwards;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 操作按鈕樣式 */
#action-buttons-container .btn {
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
}

#action-buttons-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#refreshDataBtn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#backToSearchBtn:hover {
    background-color: #f8f9fa;
}

/* 按鈕冷卻期樣式 */
#refreshDataBtn.cooldown {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    overflow: hidden;
}

#refreshDataBtn.cooldown .btn-icon {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#refreshDataBtn.cooldown::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-100%);
    animation: cooldown-wave 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cooldown-wave {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* 上訴模態框樣式 */
#appealModal .modal-header {
    background-color: #dc3545;
    color: white;
    border-bottom: none;
}

#appealModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

/* 步驟指示器樣式 */
.appeal-steps {
    margin: 20px 0;
}

.step-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.step-line {
    flex-grow: 1;
    height: 3px;
    background-color: #e9ecef;
    margin: 0 10px;
    margin-bottom: 28px;
    transition: all 0.3s ease;
}

/* 活動步驟樣式 */
.step-indicator.active .step-number {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.2);
}

.step-indicator.active .step-text {
    color: #0d6efd;
    font-weight: bold;
}

/* 已完成步驟樣式 */
.step-indicator.completed .step-number {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

.step-indicator.completed .step-text {
    color: #198754;
}

.step-indicator.completed+.step-line {
    background-color: #198754;
}

/* 上訴表單樣式 */
.appeal-step {
    transition: all 0.3s ease;
}

#appeal-form .card {
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

#appeal-form .card-header {
    font-weight: bold;
}

#appeal-form .form-label {
    font-weight: 500;
}

/* 上訴按鈕樣式 */
.btn-appeal {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-appeal:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.appeal-deadline {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* 上訴狀態徽章 */
.appeal-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.appeal-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* 上訴 QR 碼樣式 */
.qr-code-container {
    background-color: white;
    padding: 20px;
}

#appealQRModal .modal-header {
    background-color: #198754;
    color: white;
}

/* 獎牌狀態樣式 */
.medal-status {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 50px;
    margin-top: 5px;
}

.status-pending-orange {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status-received-blue {
    background-color: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
}

.status-supplement-green {
    background-color: rgba(25, 135, 84, 0.2);
    color: #198754;
}