/* Contenitore principale allineato al design del sito */
.sm90-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #110d1a;
    color: #e2dcf0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
    text-align: center;
}

.sm90-container h2 {
    color: #ffd700;
    margin-bottom: 20px;
}

/* Selettore dei rulli superiore */
.sm90-controls-top {
    margin-bottom: 25px;
    font-size: 14px;
    color: #bfaecf;
}

.sm90-controls-top select {
    margin-left: 10px;
    padding: 8px 12px;
    background: #1c142a;
    color: #fff;
    border: 1px solid #4a3b63;
    border-radius: 6px;
    font-size: 14px;
}

/* Griglia dei rulli */
.sm90-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

/* Singola cella rullo della slot */
.slot-cell {
    background: #1c142a;
    border: 2px solid #4a3b63;
    border-radius: 12px;
    padding: 12px;
    width: 85px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    
    /* Forza l'allineamento verticale centrato di tutti gli elementi interni */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Il display del numero dentro il rullo */
.slot-number {
    min-width: 50px;
    font-size: 2.2rem;
    font-weight: bold;
    font-family: monospace;
    background: #0b0714;
    margin-bottom: 12px;
    padding: 8px 0;
    border-radius: 8px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    border: 1px solid #312244;
}

/* Pulsante HOLD per bloccare il rullo */
.hold-btn {
    background: #231934;
    border: 1px solid #4a3b63;
    color: #bfaecf;
    font-size: 10px;    /* Testo leggermente più piccolo e discreto */
    font-weight: bold;
    padding: 4px 10px;             /* Padding ridotto per non farlo sembrare enorme */
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    
    width: auto;                   /* Rimosso il 100% per evitare l'allargamento eccessivo */
    min-width: 60px;               /* Dimensione minima controllata */
    margin: 0 auto;                /* Centratura orizzontale assoluta */
    display: block;
}

.hold-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
    background: #110d1a;
}

.hold-btn.held {
    background: #8a5cf5;
    color: white;
    border-color: #d1bfff;
    box-shadow: 0 0 8px #8a5cf5;
}

/* Bottoni di controllo principali */
.sm90-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sm90-actions button {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#startBtn {
    background: #8a5cf5;
    color: white;
}

#startBtn:hover:not(:disabled) {
    background: #a17fff;
}

#stopBtn {
    background: #e67e22;
    color: white;
}

#stopBtn:hover:not(:disabled) {
    background: #f39c12;
}

#stopBtn:disabled {
    background: #3b2d54;
    color: #796a91;
    cursor: not-allowed;
}

#resetBtn {
    background: #2b223a;
    color: #bfa3ff;
    border: 1px solid #4a3b63;
}

#resetBtn:hover {
    background: #1c142a;
}

/* Box per messaggi di stato */
.sm90-message-box {
    margin-top: 25px;
    padding: 12px;
    background: #231934;
    border: 1px solid #4a3b63;
    border-radius: 6px;
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: bold;
}

/* Ottimizzazione Mobile */
@media (max-width: 480px) {
    .slot-cell { width: 68px; padding: 8px; }
    .slot-number { font-size: 1.6rem; }
    .sm90-actions button { padding: 10px 20px; font-size: 0.95rem; }
}

/* MODIFICHE PER GLI STILI DA PROVARE CON ALTRI TEMI */
/* Sovrascrivi e azzera le impostazioni del tema Hello per i bottoni della Slot */
.sm90-container button,
.sm90-actions button,
.sm90-container .hold-btn {
    /* Reset degli stili nativi del tema */
    display: inline-block !important;
    width: auto !important;
    min-width: unset !important;
    max-width: unset !important;
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    border-radius: 0;
    
    /* Applica le tue spaziature corrette */
    padding: 12px 30px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Applica le specifiche esatte per il tasto START */
.sm90-container #startBtn {
    background: #8a5cf5 !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
}
.sm90-container #startBtn:hover:not(:disabled) {
    background: #a17fff !important;
}

/* Applica le specifiche esatte per il tasto STOP */
.sm90-container #stopBtn {
    background: #e67e22 !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
}
.sm90-container #stopBtn:hover:not(:disabled) {
    background: #f39c12 !important;
}
.sm90-container #stopBtn:disabled {
    background: #3b2d54 !important;
    color: #796a91 !important;
    cursor: not-allowed !important;
}

/* Applica le specifiche esatte per il tasto RESET */
.sm90-container #resetBtn {
    background: #2b223a !important;
    color: #bfa3ff !important;
    border: 1px solid #4a3b63 !important;
    border-radius: 30px !important;
}
.sm90-container #resetBtn:hover {
    background: #1c142a !important;
}

/* Applica le specifiche esatte e ridotte per il tasto HOLD */
.sm90-container .hold-btn {
    background: #231934 !important;
    border: 1px solid #4a3b63 !important;
    color: #bfaecf !important;
    font-size: 10px !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    min-width: 60px !important;
    margin: 0 auto !important;
    display: block !important;
}
.sm90-container .hold-btn:hover {
    border-color: #ffd700 !important;
    color: #ffd700 !important;
    background: #110d1a !important;
}
.sm90-container .hold-btn.held {
    background: #8a5cf5 !important;
    color: white !important;
    border-color: #d1bfff !important;
    box-shadow: 0 0 8px #8a5cf5 !important;
}

