input, textarea {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: #334155;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}
body {
    background: #0f172a;
    font-family: Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 20px;
    transition: padding 0.3s ease;
}
.container {
    max-width: 900px;
    margin: auto;
}
.card {
    background: #1e293b;
    padding: 25px;
    border-radius: 18px;
}
.answer {
    background: #334155;
    padding: 16px;
    margin-top: 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.answer:hover {
    transform: scale(1.01);
}
.selected {
    border: 3px solid #60a5fa;
}
button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-block {
    width: 100%;
    height: 60px;
    font-size: 18px;
    font-weight: 600;
}
.top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
}
.timer {
    color: #60a5fa;
}
.status-panel {
    padding: 15px;
    border-radius: 14px;
    background: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-sync {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: pulse 1.5s infinite ease-in-out;
}
.dot-ready {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==================== SIDEBAR & MENU A TENDINA ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #0f172a;
    border-right: 1px solid #1e293b;
    box-shadow: 4px 0 15px rgba(0,0,0,0.5);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}
.sidebar.active {
    left: 0;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-item {
    background: transparent;
    color: #94a3b8;
    justify-content: flex-start;
    padding: 12px 15px;
    margin: 0;
    font-size: 16px;
    border-radius: 10px;
    transition: all 0.2s;
}
.sidebar-item:hover {
    background: #1e293b;
    color: white;
}
.menu-trigger {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #1e293b;
    padding: 12px;
    border-radius: 12px;
    z-index: 999;
}

/* Finestre Modali Interne */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #1e293b;
    padding: 30px;
    border-radius: 18px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: none; padding: 0; margin: 0;
    color: #64748b;
}