/* 棄權功能樣式 */
.match-forfeit-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.forfeit-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1a1a1a;
}

/* 通知訊息 */
.forfeit-notification {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.forfeit-notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.forfeit-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 球隊卡片網格 */
.forfeit-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.forfeit-team-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.forfeit-team-card.forfeited {
    background: #fff3cd;
    border-color: #ffc107;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dee2e6;
}

.forfeit-team-card.forfeited .team-logo {
    border-color: #ffc107;
    opacity: 0.7;
}

.team-info {
    flex: 1;
}

.team-label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

/* 棄權狀態標籤 */
.forfeit-status {
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-badge.forfeited {
    background-color: #f8d7da;
    color: #721c24;
}

/* 按鈕 */
.forfeit-actions {
    text-align: center;
}

.btn-set-forfeit,
.btn-cancel-forfeit {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-set-forfeit {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-set-forfeit:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-cancel-forfeit {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-cancel-forfeit:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-set-forfeit:disabled,
.btn-cancel-forfeit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 注意事項 */
.forfeit-notice-box {
    background: #e7f3ff;
    border-left: 4px solid #1b76ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.forfeit-notice-box p {
    margin: 0 0 0.75rem 0;
    color: #1a1a1a;
}

.forfeit-notice-box ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #495057;
}

.forfeit-notice-box li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.forfeit-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* 確認對話框 */
.forfeit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.forfeit-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.forfeit-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.forfeit-modal .modal-message {
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.forfeit-modal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-modal-cancel,
.btn-modal-confirm {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel {
    background: #e9ecef;
    color: #495057;
}

.btn-modal-cancel:hover {
    background: #dee2e6;
}

.btn-modal-confirm {
    background: linear-gradient(135deg, #1b76ff 0%, #0056d2 100%);
    color: white;
}

.btn-modal-confirm:hover {
    background: linear-gradient(135deg, #0056d2 0%, #004bb5 100%);
    box-shadow: 0 4px 12px rgba(27, 118, 255, 0.3);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .match-forfeit-container {
        padding: 1.5rem;
    }

    .forfeit-status-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .forfeit-title {
        font-size: 1.5rem;
    }

    .team-logo {
        width: 48px;
        height: 48px;
    }

    .team-name {
        font-size: 1.125rem;
    }

    .forfeit-modal .modal-content {
        padding: 1.5rem;
    }

    .forfeit-modal .modal-actions {
        flex-direction: column;
    }

    .btn-modal-cancel,
    .btn-modal-confirm {
        width: 100%;
    }
}
