/* assets/style.css */
:root {
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --primary-color: #0d6efd;
    --accent-color: #00f2fe;
    --accent-color-2: #4facfe;
    --danger-color: #ff4b4b;
    --success-color: #00e676;
    --warning-color: #ffea00;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Tótem Styles */
.totem-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.totem-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--accent-color-2) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.btn-totem {
    width: 100%;
    max-width: 600px;
    margin-bottom: 15px;
    padding: 25px 30px;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 16px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-totem i {
    font-size: 2.2rem;
    opacity: 0.8;
}

.btn-totem:hover, .btn-totem:active {
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 242, 254, 0.2);
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    color: #fff;
}

.btn-totem.btn-s { border-left: 6px solid var(--primary-color); }
.btn-totem.btn-r { border-left: 6px solid var(--danger-color); }
.btn-totem.btn-rr { border-left: 6px solid var(--success-color); }
.btn-totem.btn-a { border-left: 6px solid var(--warning-color); }
.btn-totem.btn-o { border-left: 6px solid var(--accent-color); }

/* Pantalla Pública Styles */
.pantalla-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

.turno-actual-label {
    font-size: 3rem;
    color: var(--text-secondary);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in;
}

.turno-actual-codigo {
    font-size: 15vw;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 40px rgba(0, 242, 254, 0.5), 0 0 80px rgba(79, 172, 254, 0.3);
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.turno-actual-codigo.pop {
    transform: scale(1.2);
    color: #fff;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.8), 0 0 100px rgba(0, 242, 254, 0.6);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* Admin Styles */
.admin-header {
    background-color: var(--card-bg);
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.table-dark {
    background-color: var(--card-bg);
    border-color: #333;
}

.table-dark th {
    background-color: #2a2a2a;
    color: var(--text-secondary);
    border-color: #333;
    font-weight: 600;
}

.table-dark td {
    vertical-align: middle;
}

.badge-tipo {
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.active-turn-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
    text-align: center;
}

.active-turn-code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 15px 0;
}

/* Light Theme for Totem (Clínica del Mòbil Vibe) */
.totem-body {
    background-color: #ffffff;
    color: #333333;
    font-family: 'Inter', sans-serif;
}

.totem-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.totem-body .totem-title {
    color: #1a1a1a;
    background: none;
    -webkit-text-fill-color: #1a1a1a;
    font-size: 2.8rem;
    font-weight: 800;
}

.totem-body .totem-buttons-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.totem-body .btn-square {
    flex: 1 1 0;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #39a935;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 15px rgba(57, 169, 53, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: none;
}

.totem-body .btn-square i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 1;
}

.totem-body .btn-square span {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.totem-body .btn-square:hover, .totem-body .btn-square:active {
    background: #2b8428;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(57, 169, 53, 0.5);
    color: #ffffff;
}

.totem-body .totem-container {
    min-height: 100vh;
}
