/* /list/listStyle.css — Public UI Styles */

/* Burgundy Reset Button */
.btn-reset { background: #800020 !important; color: #fff !important; }
.btn-reset:hover { background: #991b1b !important; transform: translateY(-1px); }

/* DESKTOP SEARCH ROW */
.search-row {
    display: flex; gap: 12px; align-items: center; margin-bottom: 25px;
    background: rgba(255,255,255,0.05); padding: 12px 20px; 
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.1);
    max-width: 900px; margin: 0 auto 25px auto;
}

[data-theme="light"] .search-row {
    background: var(--panel, #ffffff);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.search-select, .search-input, .search-row .btn {
    height: 48px !important; display: flex; align-items: center; justify-content: center; border-radius: 14px;
}

.search-row .btn { width: 110px !important; padding: 0 !important; flex-shrink: 0; font-weight: 800; }
.sub { font-size: 1.1rem; opacity: 0.8; margin-bottom: 20px; font-weight: 500; text-align: center; }

/* --- TWO-COLUMN TOP STATUS GRID (FULL DYNAMIC THEME SUPPORT) --- */
.top-dashboard-grid {
    max-width: 900px;
    margin: 0 auto 25px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    box-sizing: border-box;
}

.dash-card {
    background: var(--panel, #192030);
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-sizing: border-box;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .dash-card {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

.dash-info {
    flex: 1;
    text-align: left;
}
.dash-label {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.55;
    margin-bottom: 4px;
    color: var(--text);
}
.dash-detail {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.dash-stat-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px 16px;
    min-width: 90px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .dash-stat-pill {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.dash-stat-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent, #6366f1);
    line-height: 1;
    margin-bottom: 3px;
}
.dash-stat-lbl {
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.6;
    white-space: nowrap;
    color: var(--text);
}

/* MATCHES THEMED .btn.ghost (MORE INFO BUTTONS) */
.btn-check-req {
    background: transparent !important;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.2)) !important;
    color: var(--text) !important;
    padding: 9px 16px !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
[data-theme="light"] .btn-check-req {
    border-color: rgba(0, 0, 0, 0.15) !important;
}
.btn-check-req:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px);
}
[data-theme="light"] .btn-check-req:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* MODALS & COMMON HELPERS */
.hidden { display: none !important; }

.welcome-overlay, .my-requests-overlay, .cancel-confirm-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); 
    display: none; align-items: center; justify-content: center; z-index: 10000; 
}
.welcome-card, .my-requests-card, .cancel-confirm-card { 
    background: var(--panel, #192030); 
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.1)); 
    border-radius: 35px; padding: 40px; max-width: 580px; width: 92%; text-align: center; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-height: 88vh; overflow-y: auto; box-sizing: border-box;
    position: relative;
    color: var(--text);
}

[data-theme="light"] .welcome-card, 
[data-theme="light"] .my-requests-card, 
[data-theme="light"] .cancel-confirm-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.walkthrough-list { text-align: left; margin: 25px 0; padding: 0; list-style: none; }
.walkthrough-list li { margin-bottom: 15px; display: flex; gap: 12px; font-size: 0.95rem; line-height: 1.4; }
.step-num { 
    background: var(--accent); color: #fff; width: 24px; height: 24px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    flex-shrink: 0; font-weight: 800; font-size: 0.75rem; 
}

/* THEMED USER REQUEST CARD */
.user-req-card {
    background: var(--panel, #192030);
    border: 1px solid var(--panel-border, rgba(255,255,255,0.08));
    border-radius: 22px;
    padding: 16px 18px;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .user-req-card {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.user-req-card:hover {
    border-color: var(--accent);
}
.user-req-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}
.user-req-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}
.user-req-art {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: #000;
    border: 1px solid rgba(255,255,255,0.12);
}
[data-theme="light"] .user-req-art {
    border-color: rgba(0, 0, 0, 0.1);
}

.user-req-meta {
    min-width: 0;
    flex: 1;
}
.user-req-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-req-artist {
    opacity: 0.65;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

/* DEDICATED BOTTOM SUB-ROW FOR STATUS PILL */
.user-req-bottom {
    display: flex;
    align-items: center;
    padding-top: 4px;
}
.user-req-wait {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

/* State 1: Up next */
.wait-badge-next {
    background: #064e3b !important;
    color: #34d399 !important;
    border: 1px solid #059669 !important;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.25);
}
[data-theme="light"] .wait-badge-next {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #34d399 !important;
}

/* State 2: Waiting in line */
.wait-badge-waiting {
    background: #1e1b4b !important;
    color: #c7d2fe !important;
    border: 1px solid #4f46e5 !important;
}
[data-theme="light"] .wait-badge-waiting {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    border-color: #6366f1 !important;
}

/* State 3: Cancelled */
.wait-badge-cancelled {
    background: #7f1d1d !important;
    color: #fecaca !important;
    border: 1px solid #dc2626 !important;
    font-weight: 900;
}
[data-theme="light"] .wait-badge-cancelled {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #f87171 !important;
}

/* CANCELLED ROW CARD VISUAL EMPHASIS */
.user-req-card.cancelled {
    opacity: 0.8;
    background: rgba(239, 68, 68, 0.08) !important;
    border: 2px dashed rgba(239, 68, 68, 0.5) !important;
}
[data-theme="light"] .user-req-card.cancelled {
    background: #fff5f5 !important;
    border: 2px dashed #f87171 !important;
}
.user-req-card.cancelled .user-req-title,
.user-req-card.cancelled .user-req-artist {
    text-decoration: line-through;
    opacity: 0.75;
}

.btn-modal-cancel {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-modal-cancel:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-1px);
}

/* THEMED EMAIL INPUT FOR SELF-SERVICE LOOKUP MODAL */
.modal-email-input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 52px !important;
    background: var(--input-bg, rgba(255,255,255,0.06)) !important;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.15)) !important;
    color: var(--text, #ffffff) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    display: block !important;
}

[data-theme="light"] .modal-email-input {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.modal-email-input:focus {
    border-color: var(--accent, #6366f1) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

.modal-email-input::placeholder {
    color: var(--text);
    opacity: 0.4 !important;
}

/* THEMED CHANGE EMAIL BUTTON */
#btnBackToEmailPrompt {
    background: none;
    border: none;
    color: var(--text);
    opacity: 0.75;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}
#btnBackToEmailPrompt:hover {
    opacity: 1;
}

/* MOBILE VIEW */
@media (max-width: 600px) {
    .page-wrap { padding: 10px 15px 80px !important; }
    .top-dashboard-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 15px; }
    .search-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; padding: 15px !important; margin-bottom: 20px; border-radius: 24px; }
    .search-input { grid-column: span 2 !important; order: 1; width: 100% !important; }
    .search-select { grid-column: span 2 !important; order: 2; width: 100% !important; }
    #btnSearch { grid-column: span 1 !important; order: 3; width: 100% !important; }
    #btnReset  { grid-column: span 1 !important; order: 4; width: 100% !important; }
    .header-title { font-size: 1.5rem !important; }
    .sub { font-size: 0.95rem; padding: 0 10px; margin-bottom: 15px; }
    .welcome-card, .my-requests-card, .cancel-confirm-card { padding: 30px 18px; }
    .user-req-art { width: 50px; height: 50px; }
    .user-req-wait { font-size: 0.78rem; padding: 4px 10px; }
}