/* ==========================================================================
   TEAM WOW — GM STAFFING COMMAND CENTER STYLESHEET
   Shared between Dallas (index.html) and Denver (denver_index.html)
   ========================================================================== */

/* Header styles are canonically managed by brand_master.css */

/* --- CONTROLS & FILTERS --- */
.controls {
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 2px solid var(--crust-med);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--crust-dark);
    background: var(--crust-light);
    font-family: 'Subhead2', sans-serif;
    font-size: 16px;
    color: var(--crust-burnt);
    width: 250px;
}

.view-toggle {
    display: flex;
    background: var(--crust-med);
    border-radius: 8px;
    padding: 4px;
    margin-left: auto;
}

.view-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    font-family: 'Subhead2', sans-serif;
    font-size: 15px;
    color: var(--crust-burnt);
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s;
}

.view-btn.active {
    background: #ffffff;
    color: var(--brand-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .controls {
        gap: 8px;
        justify-content: space-between;
    }
    select {
        width: 48%;
        min-width: 0;
        flex: 0 0 48%;
        margin-bottom: 0;
    }
    .view-toggle {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 4px;
        flex: 0 0 100%;
    }
    .view-btn {
        flex: 1;
        text-align: center;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--crust-light);
}

.container {
    padding: 16px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    flex: 1 0 auto;
    box-sizing: border-box;
}

.portal-footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* --- CANDIDATE CARD STYLES --- */
.card {
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius, 12px);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(71, 43, 16, 0.05);
    border-left: 6px solid transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(71, 43, 16, 0.08);
}

/* Status Borders */
.card.status-blue {
    border-left-color: var(--brand-blue);
}

.card.status-green {
    border-left-color: var(--success-green, #117a30);
    border-left-width: 8px;
}

.card.status-red {
    border-left-color: var(--brand-red);
    border: 2px solid var(--brand-red);
}

.card.status-gminterview {
    border-left-color: var(--dark-blue);
    border-left-width: 7px;
    background-color: #f2f7fb;
}

.card.status-tbd {
    border-left-color: var(--crust-dark);
    border-left-width: 7px;
    background-color: #faf6f0;
}

.card.status-gray {
    border-left-color: #6c757d;
    opacity: 0.8;
    background-color: #f8f9fa;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.name {
    font-family: 'Subhead2', sans-serif;
    font-size: 18px;
    color: var(--crust-burnt);
}

.position-badge {
    font-family: 'Subhead2', sans-serif;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 12px;
    background: var(--crust-light);
    color: var(--dark-blue);
    border: 1px solid var(--crust-med);
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Condensed', sans-serif;
    font-size: 15px;
    color: var(--crust-deep);
    margin-bottom: 6px;
}

/* --- PIPELINE VISUALS --- */
.pipeline-container {
    margin-top: 10px;
    margin-bottom: 6px;
}

.pipeline-track {
    background: #eeeeee;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.pipeline-fill {
    height: 100%;
    transition: width 0.5s ease;
    background: var(--brand-blue);
}

.pipeline-fill.green {
    background: var(--success-green, #117a30);
}

.pipeline-fill.red {
    background: var(--brand-red);
}

.pipeline-fill.grey {
    background: #6c757d;
}

.status-text {
    font-family: 'Subhead2', sans-serif;
    font-size: 16px;
    color: var(--brand-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-text.red {
    color: var(--brand-red);
}

.status-text.green {
    color: var(--success-green, #117a30);
}

.status-text.grey {
    color: #6c757d;
}

/* --- ALERT BANNER --- */
.alert-banner {
    background-color: var(--red-soft-bg, #fff1f1);
    border: 1px solid var(--brand-red);
    color: var(--dark-red);
    padding: 10px;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 8px;
    font-family: 'Subhead2', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- EXPANDABLE SECTIONS --- */
.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.card.expanded .card-details {
    max-height: 1000px;
}

.expand-chevron {
    font-size: 16px;
    color: var(--crust-dark);
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.card.expanded .expand-chevron {
    transform: rotate(180deg);
}

/* --- CHECKLIST STYLE --- */
.onboarding-checklist {
    background: var(--crust-light);
    border: 1px solid var(--crust-med);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.checklist-title {
    font-family: 'Subhead2', sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--crust-burnt);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 8px;
    font-family: 'Condensed', sans-serif;
    color: var(--crust-deep);
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.chk-icon {
    font-size: 16px;
    font-weight: bold;
}

.chk-done {
    color: var(--success-green, #117a30);
}

.chk-missing {
    color: var(--brand-red);
    font-family: 'Subhead2', sans-serif;
}

.chk-pending {
    color: #888888;
}

/* --- DATA CHIPS --- */
.chip-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.chip {
    font-size: 15px;
    background: #f0f4f8;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #dde1e6;
    color: #444444;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Condensed', sans-serif;
}

.chip-nto {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #bbdefb;
    font-weight: bold;
}

/* --- NUDGE & ACTION BUTTONS --- */
.action-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-family: 'Subhead2', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-call {
    background-color: var(--dark-blue);
    color: white;
}

.btn-nudge {
    background-color: var(--brand-red);
    color: white;
}

.action-btn:active {
    transform: scale(0.98);
}

/* --- GM APPOINTMENT BOX --- */
.gm-appt-box {
    background-color: #e8f5e9;
    border: 1px solid #28a745;
    color: #1b5e20;
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gm-appt-label {
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: bold;
}

.gm-appt-time {
    font-family: 'Subhead2', sans-serif;
    font-size: 18px;
}

/* --- NOTES --- */
.notes-section {
    font-size: 16px;
    margin-top: 12px;
    color: var(--crust-deep);
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #cccccc;
    white-space: pre-wrap;
    word-break: break-word;
}

.notes-section.hold-notes {
    background: #ffebee;
    border-left-color: var(--brand-red);
    color: #b71c1c;
}

.updated-text {
    font-size: 13px;
    color: #999999;
    text-align: right;
    margin-top: 8px;
    font-style: italic;
}

.loader {
    text-align: center;
    padding: 40px;
    color: var(--crust-dark);
    font-family: 'ExtraBlack', 'Header1', serif;
    font-size: 20px;
}

/* --- BRAND DIALOG MODALS --- */
.brand-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(71, 43, 16, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
    box-sizing: border-box;
}

.brand-modal-card {
    background: var(--card-bg, #ffffff);
    width: 95%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius, 12px);
    box-shadow: 0 16px 48px rgba(71, 43, 16, 0.25);
    border: 2px solid var(--crust-dark);
    overflow: hidden;
    animation: fadeIn 0.15s ease-out;
}

.brand-modal-brand-stripe {
    background: linear-gradient(90deg, var(--brand-red) 50%, var(--brand-blue) 50%);
    height: 8px;
    width: 100%;
    flex-shrink: 0;
}

.brand-modal-content {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(90vh - 8px);
    box-sizing: border-box;
}

/* --- SUBTLE UPCOMING NTO SCHEDULE BANNER --- */
.nto-schedule-banner {
    background: #ffffff;
    border: 1.5px solid #d0e2ec;
    border-left: 4px solid var(--brand-blue);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.nto-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    background: #f8fbfe;
    user-select: none;
    transition: background 0.15s;
}

.nto-schedule-header:hover {
    background: #edf5fc;
}

.nto-schedule-dropdown {
    padding: 12px 14px;
    border-top: 1px solid #e2edf5;
    background: #ffffff;
}

.nto-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nto-pill {
    background: #f0f7fc;
    border: 1px solid #c9e0f0;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 160px;
    max-width: 220px;
    box-sizing: border-box;
}

.nto-pill-day {
    font-family: 'Subhead2', sans-serif;
    font-size: 14px;
    color: var(--dark-blue);
}

.nto-pill-time {
    font-size: 13.5px;
    color: #333333;
    font-weight: 500;
    font-family: 'Condensed', sans-serif;
}

.nto-pill-trainer {
    font-size: 12.5px;
    color: #777777;
    font-family: 'Condensed', sans-serif;
}

@media (max-width: 600px) {
    .nto-schedule-dropdown {
        padding: 10px;
    }
    .nto-pills-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .nto-pill {
        max-width: none;
        flex: none;
        padding: 8px 10px;
    }
    .nto-pill-day {
        font-size: 13.5px;
    }
    .nto-pill-time {
        font-size: 12.5px;
    }
    .nto-pill-trainer {
        font-size: 11.5px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
