/* ================================================================
   INVITE PANEL — Painel "Meus Convites"
   ================================================================
   Styles for the invite code panel: modal overlay, invite list,
   status badges (available/used/expired), copy button, countdown.

   Owner: .invite-*
   Must NOT define: .btn-* base, .modal-* base
   ================================================================ */

/* ----------------------------------------------------------------
   MODAL OVERLAY & DIALOG
   ---------------------------------------------------------------- */

.invite-panel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.invite-panel-modal {
    background: var(--bg-primary, #121220);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ----------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------- */

.invite-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color, #333);
}

.invite-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #e0e0e0);
}

.invite-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary, #aaa);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.invite-panel-close:hover {
    color: var(--text-primary, #e0e0e0);
}

/* ----------------------------------------------------------------
   BODY
   ---------------------------------------------------------------- */

.invite-panel-body {
    padding: 12px 18px;
    overflow-y: auto;
    flex: 1;
}

/* ----------------------------------------------------------------
   EMPTY STATE
   ---------------------------------------------------------------- */

.invite-panel-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary, #aaa);
    font-size: 13px;
}

/* ----------------------------------------------------------------
   INVITE LIST & ROWS
   ---------------------------------------------------------------- */

.invite-panel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invite-panel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #333);
    border-radius: 6px;
    background: var(--bg-primary, #121220);
}

/* ----------------------------------------------------------------
   INVITE CODE
   ---------------------------------------------------------------- */

.invite-panel-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #e0e0e0);
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----------------------------------------------------------------
   STATUS BADGES
   ---------------------------------------------------------------- */

.invite-panel-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.invite-badge-available {
    background: #052e16;
    color: #4ade80;
    border: 1px solid #166534;
}

.invite-badge-used {
    background: #1c1c1c;
    color: #888;
    border: 1px solid #333;
}

.invite-badge-expired {
    background: #2a0a0a;
    color: #f87171;
    border: 1px solid #7f1d1d;
}

/* ----------------------------------------------------------------
   ROW STATUS ACCENTS
   ---------------------------------------------------------------- */

.invite-status-available {
    border-left: 3px solid #4ade80;
}

.invite-status-used {
    border-left: 3px solid #555;
    opacity: 0.7;
}

.invite-status-expired {
    border-left: 3px solid #f87171;
    opacity: 0.7;
}

/* ----------------------------------------------------------------
   EXPIRATION COUNTDOWN
   ---------------------------------------------------------------- */

.invite-panel-expires {
    font-size: 10px;
    color: var(--text-secondary, #aaa);
    white-space: nowrap;
}

/* ----------------------------------------------------------------
   COPY BUTTON
   ---------------------------------------------------------------- */

.invite-panel-copy {
    background: none;
    border: 1px solid var(--border-color, #333);
    border-radius: 4px;
    color: var(--accent, #60a5fa);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}

.invite-panel-copy:hover {
    background: var(--accent, #60a5fa);
    color: white;
    border-color: var(--accent, #60a5fa);
}
