@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --bg-color: #0b0e14;
    --card-bg: #161b22;
    --primary: #5865f2;
    --success: #23a55a;
    --danger: #f23f43;
    --warning: #f0b232;
    --text-main: #f2f3f5;
    --text-muted: #b5bac1;
    --border: #30363d;
}

/* --- Reset e Base --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* --- Caixas de Status Internas --- */
.status-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.status-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.status-value { font-size: 1rem; }

/* Estados */
.cons-aberto { background: rgba(35, 165, 90, 0.1); color: var(--success); border: 1px solid var(--success); }
.cons-iniciado { background: rgba(242, 63, 67, 0.1); color: var(--danger); border: 1px solid var(--danger); }
.cons-bloqueado { background: rgba(181, 186, 193, 0.1); color: var(--text-muted); border: 1px solid var(--border); }

/* --- Slider Mobile / Grid PC --- */
.mobile-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.lists-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1100px;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
    align-items: start;
}

.lists-wrapper::-webkit-scrollbar { display: none; }

.list-container {
    flex: 0 0 92%;
    scroll-snap-align: center;
    background: var(--card-bg);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    box-sizing: border-box;
}

.list-container h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Cards de Pagamento (Primeiro Slide) --- */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: #0d1117;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-card ul li { padding-left: 5px; }

/* --- Vagas --- */
.lista-vagas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vaga {
    background: #21262d;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}

.vaga:hover {
    border-color: var(--primary);
    background: #282e38;
}

.vaga-livre { border: 1px dashed #484f58; opacity: 0.7; }

/* Tags */
.tag { font-size: 0.65rem; padding: 4px 8px; border-radius: 4px; font-weight: 800; }
.tag-verde { background: var(--success); }
.tag-amarela { background: var(--warning); color: #000; }
.tag-vermelha { background: var(--danger); }
.tag-azul { background: var(--primary); }

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
    animation: slideUp 0.3s ease-out;
    box-sizing: border-box;
}

@keyframes slideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px 0;
    background: #0d1117;
    border: 1px solid var(--border);
    color: white;
    border-radius: 8px;
    box-sizing: border-box;
}

.modal-footer { display: flex; gap: 10px; margin-top: 15px; }
.btn-confirm { background: var(--primary); color: white; flex: 2; border: none; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; }
.btn-cancel { background: #30363d; color: white; flex: 1; border: none; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; }

#container-qrcode {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    display: none;
}

/* --- Media Query: Computador --- */
@media (min-width: 800px) {
    .mobile-hint { display: none; }
    .lists-wrapper {
        display: grid;
        grid-template-columns: 300px 1fr 1fr;
        overflow-x: visible;
        gap: 20px;
    }
    .list-container { flex: 0 0 100%; }
}

/* --- Media Query: Mobile --- */
@media (max-width: 600px) {
    body { padding: 12px; }
    .status-value { font-size: 0.85rem; }
    .vaga { padding: 10px 12px; font-size: 0.8rem; }
    .list-container h3 { font-size: 1rem; }
    .tag { font-size: 0.58rem; padding: 3px 6px; }
    .modal-content { padding: 20px; }
}