/**
 * Details Dashboard CSS
 * 
 * @package TBC_Participant_Frontend
 * @since 3.0.0
 */

.tbc-pf-center-text {
    text-align: center;
}

.tbc-pf-full-width {
    width: 100%;
    margin-bottom: 15px;
}

.tbc-pf-details-dashboard {
    background-color: var(--fcom-secondary-bg, #f8f9fa);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin-bottom: 25px;
    padding: 15px;
}

.tbc-pf-details-dashboard h3 {
    color: var(--fcom-primary-text, #333);
    margin-bottom: 20px;
}

.tbc-pf-details-dashboard h4 {
    margin: 10px 0;
    font-size: 16px;
    color: var(--fcom-primary-text, #333);
}

.tbc-pf-details-dashboard table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tbc-pf-details-dashboard th,
.tbc-pf-details-dashboard td {
    padding: 15px;
    text-align: center;
    background-color: var(--fcom-primary-bg, #ffffff);
}

.tbc-pf-details-dashboard th {
    background-color: var(--fcom-primary-button, #007bff);
    color: var(--fcom-primary-button-text, #ffffff);
    font-weight: bold;
    text-transform: uppercase;
}

.tbc-pf-details-dashboard td {
    border-top: 1px solid var(--fcom-primary-border, #dee2e6);
}

.tbc-pf-combined-header-table {
    margin-bottom: 20px !important;
}

.tbc-pf-event-title-header {
    background-color: var(--fcom-primary-button, #007bff) !important;
    color: var(--fcom-primary-button-text, #ffffff) !important;
    font-weight: bold;
    font-size: 18px;
    padding: 15px !important;
    text-align: center;
}

.tbc-pf-metric-label {
    background-color: var(--fcom-active-bg, #e9ecef) !important;
    color: var(--fcom-primary-text, #495057) !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    padding: 10px !important;
}

.tbc-pf-metric-value {
    vertical-align: middle;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--fcom-primary-text, #333);
    padding: 15px !important;
}

.tbc-pf-team-info-combined {
    text-align: left !important;
    background-color: var(--fcom-secondary-bg, #f8f9fa) !important;
    border-top: 2px solid var(--fcom-primary-border, #dee2e6) !important;
    padding: 12px 15px !important;
}

.tbc-pf-team-info-row {
    margin-bottom: 5px;
    line-height: 1.5;
    font-size: 14px;
}

.tbc-pf-team-info-row:last-child {
    margin-bottom: 0;
}

.tbc-pf-team-info-row strong {
    color: var(--fcom-primary-text, #495057);
    font-weight: 600;
    margin-right: 5px;
}

.tbc-pf-archived-tag,
.tbc-pf-active-tag {
    display: inline-block;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

.tbc-pf-archived-tag {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tbc-pf-active-tag {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tbc-pf-back-button-container {
    margin: 20px 0;
    text-align: left;
}

.tbc-pf-back-button {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tbc-pf-back-button:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .tbc-pf-details-dashboard table {
        font-size: 14px;
    }
    
    .tbc-pf-details-dashboard th,
    .tbc-pf-details-dashboard td {
        padding: 10px 5px;
    }
    
    .tbc-pf-event-title-header {
        font-size: 16px;
        padding: 12px !important;
    }
    
    .tbc-pf-metric-value {
        font-size: 1.2em;
    }
    
    .tbc-pf-team-info-row {
        font-size: 13px;
    }
    
    .tbc-pf-back-button-container {
        margin: 15px 0;
    }
}

/* Unified Alert Banner */
.tbc-pf-unified-alert-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.tbc-pf-alert-icon {
    font-size: 20px;
    line-height: 1;
}

.tbc-pf-alert-title {
    font-weight: 700;
    font-size: 14px;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbc-pf-alert-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.tbc-pf-alert-item {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #856404;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .tbc-pf-unified-alert-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tbc-pf-alert-items {
        margin-left: 0;
        width: 100%;
    }
    
    .tbc-pf-alert-item {
        width: 100%;
        justify-content: center;
    }
}