/* Sfondo Apple */
        body.theme-apple::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -2;
            background-color: #4a4f54;
            background-image: linear-gradient(rgba(255, 255, 255, .05) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .05) 2px, transparent 2px), linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
            background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
            background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
            opacity: 1;
            transition: opacity 0.5s;
        }

body.theme-aero::before,
        body.theme-minimal::before,
        body.theme-futuristic::before,
        body.theme-discord::before {
            opacity: 0;
            pointer-events: none;
        }

/* Sfondo Windows Aero */
        body.theme-aero::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            background: radial-gradient(ellipse at 30% 120%, #1579b2 0%, transparent 60%), radial-gradient(ellipse at 80% -10%, #2f8ecd 0%, transparent 50%), linear-gradient(135deg, #092e54 0%, #175487 50%, #031526 100%);
            opacity: 1;
            transition: opacity 0.5s;
        }

body.theme-apple::after,
        body.theme-minimal::after,
        body.theme-futuristic::after,
        body.theme-discord::after {
            opacity: 0;
            pointer-events: none;
        }

body.theme-aero {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

/* =========================================================
           2. LAYOUT DOPPIO MOTORE (Classic vs Futuristic vs Discord)
           ========================================================= */
        #classic-ui {
            display: flex;
            flex-direction: column;
            height: 100%;
            width: 100%;
        }

body.theme-futuristic #classic-ui,
        body.theme-discord #classic-ui {
            display: none !important;
        }

/* ---------------- TEMA APPLE ---------------- */
        body.theme-apple .device-shell {
            background: #d4d4d4;
            border-radius: 12px;
            border: 1px solid #444;
            overflow: hidden;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

body.theme-apple .header-area {
            background: linear-gradient(180deg, #f2f4f5 0%, #d1d6da 49%, #c3c9cf 50%, #b2b8bf 100%);
            border-bottom: 1px solid #666;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 1px 3px rgba(0, 0, 0, 0.3);
        }

body.theme-apple .window-titlebar {
            padding: 8px 16px 0 16px;
        }

body.theme-apple .app-toolbar {
            justify-content: center;
            padding: 4px 16px 12px 16px;
        }

body.theme-apple .mac-window-controls {
            display: flex;
            gap: 8px;
            width: 33%;
        }

body.theme-apple .mac-dot {
            width: 13px;
            height: 13px;
            border-radius: 50%;
            border: 1px solid rgba(0, 0, 0, 0.6);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -2px 3px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(255, 255, 255, 0.4);
        }

body.theme-apple .mac-dot.close {
            background: radial-gradient(circle at 30% 30%, #ff8585, #ff4a4a, #d40000);
            border-color: #a00;
        }

body.theme-apple .mac-dot.min {
            background: radial-gradient(circle at 30% 30%, #ffd05c, #ffb429, #d98a00);
            border-color: #b8860b;
        }

body.theme-apple .mac-dot.max {
            background: radial-gradient(circle at 30% 30%, #74e354, #44cc29, #1c9900);
            border-color: #1e7a0b;
        }

body.theme-apple .win-window-controls {
            display: none;
        }

body.theme-apple .room-title {
            font-size: 15px;
            font-weight: bold;
            color: #444;
            letter-spacing: 1px;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
            text-align: center;
            width: 34%;
        }

body.theme-apple .title-spacer {
            width: 33%;
        }

body.theme-apple .nav-btn,
        body.theme-apple .preset-btn {
            background: linear-gradient(180deg, #f8f8f8 0%, #d8d8d8 49%, #cecece 50%, #bcbcbc 100%);
            border: 1px solid #777;
            border-radius: 6px;
            box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.2);
            padding: 6px 14px;
            font-size: 12px;
            font-weight: bold;
            color: #333;
            text-shadow: 0 1px 0 #fff;
            cursor: pointer;
            transition: all 0.2s;
        }

body.theme-apple .preset-btn.active,
        body.theme-apple .nav-btn:active {
            background: linear-gradient(180deg, #888 0%, #666 100%);
            border-color: #444;
            color: #fff;
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
            box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6);
        }

body.theme-apple .modules-container {
            background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.15) 1px, transparent 1px, transparent 3px), linear-gradient(180deg, #e4e4e4, #bebebe);
        }

body.theme-apple .timer-col {
            border-right: 1px solid #888;
            background: rgba(0, 0, 0, 0.03);
            box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
        }

body.theme-apple .session-counter-display {
            color: #555;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
        }

body.theme-apple .segmented-control {
            border: 1px solid #666;
            border-radius: 6px;
            background: linear-gradient(to bottom, #e2e2e2, #b8b8b8);
            box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0, 0, 0, 0.2);
        }

body.theme-apple .segment-btn {
            background: transparent;
            border-right: 1px solid #999;
            border-left: 1px solid #eee;
            font-size: 12px;
            font-weight: bold;
            color: #444;
            text-shadow: 0 1px 0 #fff;
            transition: all 0.2s;
        }

body.theme-apple .segment-btn:first-child {
            border-left: none;
        }

body.theme-apple .segment-btn:last-child {
            border-right: none;
        }

body.theme-apple .segment-btn.active {
            background: linear-gradient(180deg, #999 0%, #777 100%);
            box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
            color: #fff;
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
        }

body.theme-apple .bezel {
            background: linear-gradient(135deg, #f9f9f9, #a0a0a0);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 2px 5px #fff, inset 0 -2px 5px rgba(0, 0, 0, 0.2);
            transition: all 0.6s ease;
        }

body.theme-apple .dial-glass {
            background: radial-gradient(circle at center, #1b211a, #090b08);
            box-shadow: inset 0 8px 20px rgba(0, 0, 0, 1), inset 0 0 0 2px #444;
            transition: all 0.6s ease;
        }

body.theme-apple .dial-glass::after {
            content: "";
            position: absolute;
            top: 2%;
            left: 10%;
            width: 80%;
            height: 45%;
            pointer-events: none;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%);
            border-radius: 50% 50% 10% 10% / 100% 100% 0 0;
            z-index: 5;
            transition: all 0.6s ease;
        }

body.theme-apple .dial-track {
            stroke: rgba(255, 255, 255, 0.1);
        }

body.theme-apple .dial-progress {}

body.theme-apple .dial-progress.work {
            stroke: #f77e7e;
        }

body.theme-apple .dial-progress.short {
            stroke: #8ede5f;
        }

/* FONT CUSTOM APPLICATO QUI CON DIMENSIONI CORRETTE */
        body.theme-apple .digits {
            font-family: 'LED Counter 7', 'Courier New', monospace;
            font-size: 48px;
            font-weight: normal;
            color: #fff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
            transition: color 0.6s;
            margin-top: 0px;
            letter-spacing: 0px;
        }

body.theme-apple .dashboard-col {
            border-right: 1px solid #888;
            background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.05));
            box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
            gap: 14px;
            padding: 20px;
        }

body.theme-apple .dash-section {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid #999;
            border-radius: 10px;
            padding: 14px 16px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 0;
        }

body.theme-apple .dash-title {
            font-size: 11px;
            font-weight: bold;
            text-transform: uppercase;
            color: #555;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
            margin-bottom: 12px;
        }

body.theme-apple .preset-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

body.theme-apple .preset-btn span {
            display: block;
            font-size: 10px;
            font-weight: normal;
            color: #666;
            margin-top: 4px;
        }

body.theme-apple .lcd-screen {
            flex: 1;
            border-radius: 6px;
            padding: 10px;
            text-align: center;
            position: relative;
            background: #9daea2;
            border: 2px solid #555;
            box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.8);
        }

body.theme-apple .lcd-screen::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
            pointer-events: none;
        }

body.theme-apple .user-pill {
            border-radius: 20px;
            background: linear-gradient(180deg, #f8f8f8, #d8d8d8);
            border: 1px solid #777;
            box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.2);
            color: #333;
            text-shadow: 0 1px 0 #fff;
            padding: 4px 10px;
        }

body.theme-apple .user-pill.me {
            background: linear-gradient(180deg, #e0f0ff, #b0d0ff);
            border-color: #1455a2;
            color: #000;
        }

body.theme-apple .audio-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

body.theme-apple .mute-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(180deg, #eee, #ccc);
            border: 1px solid #777;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }

body.theme-apple .mute-btn.muted {
            color: #d00;
        }

body.theme-apple input[type=range] {
            -webkit-appearance: none;
            flex: 1;
            width: auto;
            background: transparent;
        }

body.theme-apple input[type=range]:focus {
            outline: none;
        }

body.theme-apple input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 8px;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.3s;
            background: linear-gradient(180deg, #555, #888);
            border: 1px solid #333;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.6);
        }

body.theme-apple input[type=range]::-webkit-slider-thumb {
            height: 20px;
            width: 20px;
            border-radius: 50%;
            cursor: pointer;
            -webkit-appearance: none;
            margin-top: -7px;
            transition: all 0.3s;
            background: radial-gradient(circle at center, #f4f4f4 0%, #a0a0a0 100%);
            border: 1px solid #555;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 2px #fff;
        }

body.theme-apple .switch-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            font-weight: bold;
            color: #444;
            text-shadow: 0 1px 0 #fff;
        }

body.theme-apple .ios-switch {
            position: relative;
            width: 54px;
            height: 28px;
            background: #cfcfcf;
            border-radius: 14px;
            border: 1px solid #999;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            transition: background 0.3s;
        }

body.theme-apple .ios-switch.on {
            background: #4cd964;
            border-color: #3aa64c;
        }

body.theme-apple .ios-switch::after {
            content: "";
            position: absolute;
            top: 1px;
            left: 1px;
            width: 24px;
            height: 24px;
            background: linear-gradient(180deg, #fff, #e0e0e0);
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            border: 1px solid #888;
            transition: transform 0.3s;
        }

body.theme-apple .ios-switch.on::after {
            transform: translateX(26px);
        }

body.theme-apple .chat-col {
            background: #cbd2d8;
            box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.1);
        }

body.theme-apple .chat-messages {
            background: repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(0, 0, 0, 0.03) 38px, rgba(0, 0, 0, 0.03) 40px);
        }

body.theme-apple .msg-bubble {
            padding: 12px 18px;
            font-size: 15px;
            line-height: 1.4;
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
            word-wrap: break-word;
            overflow-wrap: anywhere;
            word-break: break-word;
            white-space: pre-wrap; /* NUOVO: preserva spazi e a capo */
        }

body.theme-apple .msg.mine .msg-bubble {
            background: linear-gradient(180deg, #74cbf6 0%, #1588d9 100%);
            border: 1px solid #1455a2;
            border-radius: 18px 18px 6px 18px;
            color: white;
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
        }

body.theme-apple .msg.theirs .msg-bubble {
            background: linear-gradient(180deg, #ffffff 0%, #e5e5ea 100%);
            border: 1px solid #b5b5b5;
            border-radius: 18px 18px 18px 6px;
            color: #000;
            text-shadow: 0 1px 0 #fff;
        }

body.theme-apple .msg-name {
            font-size: 12px;
            color: #666;
            text-shadow: 0 1px 0 #fff;
            font-weight: bold;
        }

body.theme-apple .msg-time {
            font-size: 11px;
            color: #777;
            text-shadow: 0 1px 0 #fff;
        }

body.theme-apple .chat-input-wrapper {
            background: linear-gradient(180deg, #f2f4f5 0%, #b2b8bf 100%);
            border-top: 1px solid #888;
            box-shadow: inset 0 1px 0 #fff;
        }

body.theme-apple .chat-textarea {
            border: 1px solid #666;
            border-radius: 20px;
            padding: 10px 16px;
            font-family: inherit;
            font-size: 15px;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.8);
            background: #fff;
            color: #000;
        }

body.theme-apple .btn-gloss,
        body.theme-apple .send-btn,
        body.theme-apple .alert-btn {
            border-radius: 20px;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            border: 1px solid;
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
            color: #fff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.4);
        }

body.theme-apple .btn-gloss:active,
        body.theme-apple .send-btn:active,
        body.theme-apple .alert-btn:active {
            box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5);
            transform: translateY(1px);
        }

body.theme-apple .btn-play {
            background: linear-gradient(180deg, var(--green-gloss-top) 0%, var(--green-gloss-mid) 49%, var(--green-gloss-bottom) 50%, #4c9912 100%);
            border-color: #2d6b04;
            padding: 14px 34px;
            font-size: 16px;
        }

body.theme-apple .btn-play.paused {
            background: linear-gradient(180deg, var(--blue-gloss-top) 0%, var(--blue-gloss-mid) 49%, var(--blue-gloss-bottom) 50%, #1588d9 100%);
            border-color: #1455a2;
        }

body.theme-apple .btn-secondary {
            background: linear-gradient(180deg, #a0a0a0 0%, #777 49%, #666 50%, #555 100%);
            border-color: #333;
        }

body.theme-apple .send-btn,
        body.theme-apple .alert-btn {
            background: linear-gradient(180deg, var(--blue-gloss-top) 0%, var(--blue-gloss-mid) 49%, var(--blue-gloss-bottom) 50%, #0d79cc 100%);
            border-color: #1455a2;
        }

body.theme-apple .cycle-led {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #444, #111);
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 1px 1px rgba(255, 255, 255, 0.5);
            border: 1px solid #222;
        }

body.theme-apple .cycle-led.on {
            background: radial-gradient(circle at 30% 30%, #f77e7e, #b31212);
            box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 0 8px #e03838, 0 1px 1px rgba(255, 255, 255, 0.5);
            border-color: #5a0707;
        }

/* ---------------- TEMA WINDOWS AERO ---------------- */
        body.theme-aero .device-shell {
            background: rgba(210, 235, 255, 0.4);
            backdrop-filter: blur(15px) saturate(150%);
            border: 1px solid rgba(255, 255, 255, 0.85);
            border-radius: 8px;
            padding: 0 8px 8px 8px;
            box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.2), 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.2);
        }

body.theme-aero .device-shell::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-radius: 8px;
            background: linear-gradient(105deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0.1) 100%);
        }

body.theme-aero .window-titlebar {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 49%, rgba(255, 255, 255, 0.0) 50%, rgba(255, 255, 255, 0.25) 100%);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
            margin: 0 -8px;
            padding: 0 8px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            position: relative;
        }

body.theme-aero .room-title {
            color: #000;
            font-weight: 600;
            font-size: 13px;
            text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff;
        }

body.theme-aero .mac-window-controls {
            display: none;
        }

body.theme-aero .win-window-controls {
            display: flex;
            position: absolute;
            top: -1px;
            right: 8px;
            align-items: flex-start;
            gap: 2px;
        }

body.theme-aero .app-toolbar {
            background: #f0f0f0;
            border: 1px solid #707070;
            border-bottom: none;
            padding: 8px 12px;
            justify-content: flex-start;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

body.theme-aero .modules-container {
            background: #f0f0f0;
            border: 1px solid #707070;
            border-top: 1px solid #d4d4d4;
            border-radius: 0 0 3px 3px;
        }

body.theme-aero .timer-col {
            background: linear-gradient(180deg, #ffffff, #eaf0f5);
            border-right: 1px solid #a0a0a0;
            box-shadow: none;
        }

body.theme-aero .session-counter-display {
            color: #1e395b;
        }

body.theme-aero .dashboard-col {
            background: linear-gradient(180deg, #f0f4f7, #dce4eb);
            border-right: 1px solid #a0a0a0;
            box-shadow: none;
            gap: 14px;
            padding: 20px;
        }

body.theme-aero .dash-section {
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid #b5b5b5;
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
            border-radius: 3px;
            padding: 14px 16px;
            margin-bottom: 0;
        }

body.theme-aero .dash-title {
            color: #003399;
            text-shadow: none;
            font-size: 11px;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

body.theme-aero .preset-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

body.theme-aero .preset-btn span {
            display: block;
            font-size: 10px;
            font-weight: normal;
            color: #666;
            margin-top: 4px;
        }

body.theme-aero .nav-btn,
        body.theme-aero .preset-btn,
        body.theme-aero .btn-gloss,
        body.theme-aero .send-btn,
        body.theme-aero .alert-btn {
            border: 1px solid #707070;
            border-radius: 3px;
            color: #1e395b;
            text-shadow: none;
            font-weight: 600;
            background: linear-gradient(180deg, #f2f2f2 0%, #ebebeb 45%, #dddddd 50%, #cfcfcf 100%);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
            transition: all 0.15s;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
        }

body.theme-aero .btn-gloss,
        body.theme-aero .alert-btn {
            padding: 8px 16px;
            font-size: 13px;
        }

body.theme-aero .nav-btn:hover,
        body.theme-aero .preset-btn:hover,
        body.theme-aero .btn-gloss:hover,
        body.theme-aero .send-btn:hover,
        body.theme-aero .alert-btn:hover {
            border-color: #3c7fb1;
            background: linear-gradient(180deg, #eaf6fd 0%, #d9f0fc 45%, #bee6fd 50%, #a7d9f5 100%);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 3px rgba(60, 127, 177, 0.4);
        }

body.theme-aero .preset-btn.active,
        body.theme-aero .nav-btn:active,
        body.theme-aero .btn-gloss:active,
        body.theme-aero .send-btn:active,
        body.theme-aero .alert-btn:active {
            background: linear-gradient(180deg, #e5f4fc, #c4e5f6 45%, #98d1ef 50%, #68b3db);
            border-color: #185c8a;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 4px rgba(100, 200, 255, 0.3);
            color: #000;
        }

body.theme-aero .btn-play {
            border-color: #2b5e1b;
            background: linear-gradient(180deg, #e5f5e5 0%, #d0edd0 45%, #b1dfb1 50%, #99d699 100%);
            color: #0b2605;
            padding: 10px 24px;
            font-size: 14px;
        }

body.theme-aero .btn-play:hover {
            background: linear-gradient(180deg, #f0fbf0 0%, #dff5df 45%, #c8edc8 50%, #b8e6b8 100%);
            border-color: #3aa827;
            box-shadow: inset 0 1px 0 #fff, 0 0 5px rgba(58, 168, 39, 0.5);
        }

body.theme-aero .btn-play.paused {
            background: linear-gradient(180deg, #fff2e5, #ffe0c2 45%, #ffc899 50%, #ffb87a);
            border-color: #d17b24;
            color: #4a2704;
        }

body.theme-aero .segmented-control {
            background: transparent;
            border: none;
            box-shadow: none;
            border-bottom: 1px solid #8e8f8f;
            border-radius: 0;
            gap: 2px;
            padding: 0 10px;
        }

body.theme-aero .segment-btn {
            border: 1px solid transparent;
            border-bottom: none;
            border-top-left-radius: 3px;
            border-top-right-radius: 3px;
            background: rgba(255, 255, 255, 0.3);
            color: #1e395b;
            margin-bottom: -1px;
            text-shadow: none;
            font-weight: normal;
            transition: 0.2s;
        }

body.theme-aero .segment-btn:hover {
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid #c5c5c5;
            border-bottom: none;
        }

body.theme-aero .segment-btn.active {
            background: #ffffff;
            border: 1px solid #8e8f8f;
            border-bottom: 1px solid #ffffff;
            color: #000;
            box-shadow: none;
        }

body.theme-aero .bezel {
            background: rgba(255, 255, 255, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 5px 15px rgba(0, 0, 0, 0.1);
        }

body.theme-aero .dial-glass {
            background: #ffffff;
            border: 1px solid #abadb3;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
        }

body.theme-aero .dial-glass::after {
            display: none;
        }

body.theme-aero .digits {
            color: #1e395b;
            text-shadow: none;
            font-family: 'Segoe UI', sans-serif;
            font-weight: 600;
        }

body.theme-aero .dial-track {
            stroke: #e0e0e0;
        }

body.theme-aero .lcd-screen {
            background: #ffffff;
            border: 1px solid #8e8f8f;
            border-radius: 2px;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
            padding: 8px;
            text-align: center;
            flex: 1;
        }

body.theme-aero .lcd-screen::after {
            display: none;
        }

body.theme-aero .lcd-val {
            font-family: 'Segoe UI', sans-serif;
            font-size: 26px;
            color: #1e395b;
            font-weight: bold;
        }

body.theme-aero .lcd-lbl {
            color: #666;
            font-weight: normal;
            font-size: 10px;
            margin-top: 4px;
            text-transform: uppercase;
        }

body.theme-aero .user-pill {
            border-radius: 3px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
            border: 1px solid #abadb3;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
            color: #1e395b;
            padding: 4px 10px;
        }

body.theme-aero .user-pill.me {
            background: linear-gradient(180deg, #eaf6fd, #a7d9f5);
            border-color: #3c7fb1;
            font-weight: 700;
        }

body.theme-aero .audio-row {
            display: flex;
            gap: 12px;
            align-items: center;
            margin-bottom: 16px;
        }

body.theme-aero .mute-btn {
            width: 32px;
            height: 32px;
            border-radius: 3px;
            background: linear-gradient(180deg, #f2f2f2, #cfcfcf);
            border: 1px solid #707070;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: #1e395b;
            transition: all 0.15s;
        }

body.theme-aero .mute-btn:hover {
            border-color: #3c7fb1;
            background: linear-gradient(180deg, #eaf6fd, #a7d9f5);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 3px rgba(60, 127, 177, 0.4);
        }

body.theme-aero .mute-btn.muted {
            color: #d00;
        }

body.theme-aero input[type=range] {
            -webkit-appearance: none;
            flex: 1;
            width: auto;
            background: transparent;
        }

body.theme-aero input[type=range]::-webkit-slider-runnable-track {
            background: #e0e0e0;
            border: 1px solid #abadb3;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
            border-radius: 2px;
            height: 6px;
        }

body.theme-aero input[type=range]::-webkit-slider-thumb {
            border-radius: 2px;
            background: linear-gradient(180deg, #fdfdfd, #cdcdcd);
            border: 1px solid #707070;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            width: 11px;
            height: 20px;
            margin-top: -8px;
        }

body.theme-aero .switch-row {
            color: #1e395b;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            font-weight: 600;
        }

body.theme-aero .ios-switch {
            border-radius: 3px;
            background: #fff;
            border: 1px solid #abadb3;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
            width: 54px;
            height: 26px;
            position: relative;
            cursor: pointer;
        }

body.theme-aero .ios-switch::after {
            border-radius: 2px;
            background: linear-gradient(180deg, #f2f2f2, #ccc);
            border: 1px solid #707070;
            box-shadow: none;
            width: 22px;
            height: 22px;
            position: absolute;
            top: 1px;
            left: 1px;
            transition: 0.3s;
            content: "";
        }

body.theme-aero .ios-switch.on {
            background: #cce8ff;
            border-color: #99ccee;
        }

body.theme-aero .ios-switch.on::after {
            transform: translateX(28px);
        }

body.theme-aero .cycle-led {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #e0e0e0, #a0a0a0);
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.8);
            border: 1px solid #888;
        }

body.theme-aero .cycle-led.on {
            background: radial-gradient(circle at 30% 30%, #74cbf6, #0d79cc);
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 6px rgba(46, 160, 235, 0.8), 0 1px 0 rgba(255, 255, 255, 0.8);
            border-color: #1455a2;
        }

body.theme-aero .chat-messages {
            background: #fff;
        }

body.theme-aero .chat-messages::-webkit-scrollbar {
            width: 8px;
        }

body.theme-aero .chat-messages::-webkit-scrollbar-track {
            background: #f0f0f0;
            border-left: 1px solid #e3e3e3;
        }

body.theme-aero .chat-messages::-webkit-scrollbar-thumb {
            background: linear-gradient(90deg, #e8e8e8, #c2c2c2);
            border: 1px solid #a6a6a6;
            border-radius: 8px;
            box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.8);
        }

body.theme-aero .chat-messages::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(90deg, #eef7ff, #b8e0f5);
            border-color: #7bafce;
        }

body.theme-aero .msg-bubble {
            border-radius: 5px;
            font-size: 14px;
            padding: 10px 14px;
            box-shadow: none;
            text-shadow: none;
            word-wrap: break-word;
            overflow-wrap: anywhere;
            word-break: break-word;
            white-space: pre-wrap; /* NUOVO: preserva spazi e a capo */
        }

body.theme-aero .msg.mine .msg-bubble {
            background: #e1f0fb;
            border: 1px solid #a1c8e8;
            color: #000;
            text-shadow: none;
        }

body.theme-aero .msg.theirs .msg-bubble {
            background: #f4f4f4;
            border: 1px solid #cccccc;
            color: #000;
            text-shadow: none;
        }

body.theme-aero .msg-time {
            color: #888;
            text-shadow: none;
            font-size: 11px;
        }

body.theme-aero .msg-name {
            color: #1e395b;
            text-shadow: none;
            font-weight: 600;
            font-size: 12px;
        }

body.theme-aero .chat-input-wrapper {
            background: #f0f4f9;
            border-top: 1px solid #b5b5b5;
            box-shadow: none;
            padding-bottom: 8px;
        }

body.theme-aero .chat-textarea,
        body.theme-aero .alert-input {
            border: 1px solid #abadb3;
            border-radius: 2px;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
            font-size: 14px;
            color: #000;
            font-family: 'Segoe UI', sans-serif;
            padding: 8px;
        }

body.theme-aero .chat-textarea:focus,
        body.theme-aero .alert-input:focus {
            border-color: #3da1eb;
            box-shadow: 0 0 5px rgba(61, 161, 235, 0.5), inset 0 1px 3px rgba(0, 0, 0, 0.08);
            outline: none;
        }

/* ---------------- TEMA MINIMAL ---------------- */
        body.theme-minimal {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #ba4949;
            transition: background-color 0.4s ease;
        }

body.theme-minimal[data-pomostate="breve"] {
            background-color: #38858a;
        }

body.theme-minimal[data-pomostate="lungo"] {
            background-color: #397097;
        }

body.theme-minimal .device-shell {
            background: transparent;
            border: none;
            box-shadow: none;
            border-radius: 0;
            padding: 0;
        }

body.theme-minimal .header-area {
            background: transparent;
            border: none;
            box-shadow: none;
        }

body.theme-minimal .window-titlebar {
            background: transparent;
            border: none;
            box-shadow: none;
            justify-content: center;
            padding-top: 15px;
            height: auto;
            margin: 0;
        }

body.theme-minimal .mac-window-controls,
        body.theme-minimal .win-window-controls,
        body.theme-minimal .title-spacer {
            display: none !important;
        }

body.theme-minimal .room-title {
            color: white;
            text-shadow: none;
            font-size: 20px;
            width: auto;
            font-weight: bold;
            opacity: 0.9;
        }

body.theme-minimal .app-toolbar {
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 10px 0;
            justify-content: center;
        }

body.theme-minimal .nav-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            box-shadow: none;
            border-radius: 4px;
            padding: 6px 12px;
            font-weight: 500;
            font-size: 13px;
            text-shadow: none;
            transition: background 0.2s;
        }

body.theme-minimal .nav-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

body.theme-minimal .modules-container {
            padding: 20px;
            gap: 0;
        }

body.theme-minimal .timer-col {
            margin: 0;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 30px;
            height: 100%;
            border: none;
            box-shadow: none;
        }

body.theme-minimal .session-counter-display {
            color: white;
            opacity: 0.85;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
            padding-bottom: 12px;
            font-size: 15px;
        }

body.theme-minimal .segmented-control {
            background: transparent;
            border: none;
            box-shadow: none;
        }

body.theme-minimal .segment-btn {
            background: transparent;
            border: none;
            color: white;
            opacity: 0.8;
            font-size: 15px;
            padding: 8px 12px;
            border-radius: 4px;
            text-shadow: none;
            font-weight: bold;
        }

body.theme-minimal .segment-btn.active {
            background: rgba(0, 0, 0, 0.15);
            opacity: 1;
        }

body.theme-minimal .bezel {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    height: auto;
    padding: 30px 0;
    border-radius: 0 !important; /* Uccide il cerchio fantasma */
    contain: none !important; /* Disabilita il taglio hardware */
}

body.theme-minimal .dial-glass {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    border-radius: 0 !important;
    contain: none !important;
}

body.theme-minimal .dial-glass::after {
            display: none;
        }

body.theme-minimal .svg-dial {
            display: none;
        }

body.theme-minimal .digits {
            font-size: 110px;
            color: white;
            text-shadow: none;
            font-weight: bold;
            margin-top: 0;
            letter-spacing: 2px;
        }

body.theme-minimal .btn-play {
            background: white;
            color: #ba4949;
            border: none;
            border-radius: 4px;
            box-shadow: 0 6px 0 #ebebeb;
            font-size: 24px;
            font-weight: bold;
            padding: 14px 40px;
            text-transform: uppercase;
            transition: transform 0.1s, box-shadow 0.1s;
            text-shadow: none;
        }

body.theme-minimal[data-pomostate="breve"] .btn-play {
            color: #38858a;
        }

body.theme-minimal[data-pomostate="lungo"] .btn-play {
            color: #397097;
        }

body.theme-minimal .btn-play.paused,
        body.theme-minimal .btn-play:active {
            transform: translateY(4px);
            box-shadow: 0 2px 0 #ebebeb;
        }

body.theme-minimal .btn-secondary {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            box-shadow: none;
            text-shadow: none;
            border-radius: 4px;
        }

body.theme-minimal .cycle-led {
            background: rgba(255, 255, 255, 0.3);
            border: none;
            box-shadow: none;
            width: 12px;
            height: 12px;
        }

body.theme-minimal .cycle-led.on {
            background: white;
            box-shadow: none;
        }

body.theme-minimal .dashboard-col {
            margin-left: 20px;
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0;
            height: 100%;
        }

body.theme-minimal .dash-section {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            box-shadow: none;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

body.theme-minimal .dash-title {
            color: white;
            text-shadow: none;
            opacity: 1;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
            padding-bottom: 8px;
            margin-bottom: 16px;
            font-size: 14px;
            font-weight: bold;
            letter-spacing: 0.5px;
        }

body.theme-minimal .user-pill {
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: none;
            font-weight: normal;
        }

body.theme-minimal .user-pill.me {
            background: rgba(255, 255, 255, 0.3);
            font-weight: bold;
        }

body.theme-minimal .preset-grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

body.theme-minimal .preset-btn {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: none;
            text-shadow: none;
            box-shadow: none;
            border-radius: 8px;
            transition: background 0.2s;
            padding: 12px 14px;
            font-size: 14px;
            text-align: left;
        }

body.theme-minimal .preset-btn span {
            color: rgba(255, 255, 255, 0.8);
            font-size: 12px;
            font-weight: normal;
            margin: 0;
        }

body.theme-minimal .preset-btn.active,
        body.theme-minimal .preset-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            color: white;
        }

body.theme-minimal .lcd-screen {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            box-shadow: none;
            border-radius: 8px;
            padding: 15px 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

body.theme-minimal .lcd-val {
            color: white;
            text-shadow: none;
            font-family: inherit;
            font-size: 32px;
            font-weight: 800;
            line-height: 1;
        }

body.theme-minimal .lcd-lbl {
            color: rgba(255, 255, 255, 0.8);
            text-shadow: none;
            font-weight: 600;
            font-size: 11px;
            margin-top: 6px;
            letter-spacing: 1px;
        }

/* Fix: Struttura base per bottoni e switch mancanti nel layout principale */
body.theme-minimal .audio-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: white; /* FIX: Rende bianco il testo delle etichette UI/Chat e Timer */
}

body.theme-minimal .mute-btn {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            box-shadow: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: background 0.2s;
        }

body.theme-minimal .mute-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

body.theme-minimal .mute-btn.muted {
            color: #ffb3b3;
        }

body.theme-minimal input[type=range] {
            -webkit-appearance: none;
            flex: 1;
            width: auto;
            background: transparent;
        }

body.theme-minimal input[type=range]:focus {
            outline: none;
        }

body.theme-minimal input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 6px;
            cursor: pointer;
            border-radius: 3px;
            background: rgba(0, 0, 0, 0.2);
            border: none;
        }

body.theme-minimal input[type=range]::-webkit-slider-thumb {
            height: 16px;
            width: 16px;
            border-radius: 50%;
            cursor: pointer;
            -webkit-appearance: none;
            margin-top: -5px;
            background: white;
            border: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

body.theme-minimal .switch-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            font-weight: 500;
            color: white;
        }

body.theme-minimal .ios-switch {
            position: relative;
            width: 48px;
            height: 24px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12px;
            border: none;
            cursor: pointer;
            transition: background 0.3s;
        }

body.theme-minimal .ios-switch.on {
            background: rgba(255, 255, 255, 0.4);
        }

body.theme-minimal .ios-switch::after {
            content: "";
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s;
            border: none;
        }

body.theme-minimal .ios-switch.on::after {
            transform: translateX(24px);
        }

body.theme-minimal .chat-col {
            margin-left: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            box-shadow: none;
            height: 100%;
            overflow: hidden;
        }

body.theme-minimal .chat-messages {
            background: transparent;
            border: none;
        }

body.theme-minimal .typing-row {
            color: rgba(255, 255, 255, 0.9) !important;
        }

body.theme-minimal .msg-bubble {
            padding: 10px 14px;
            font-size: 15px;
            box-shadow: none;
            border: none;
            border-radius: 8px;
            word-wrap: break-word;
            overflow-wrap: anywhere;
            word-break: break-word;
            white-space: pre-wrap; /* NUOVO: preserva spazi e a capo */
        }

body.theme-minimal .msg.mine .msg-bubble {
            background: rgba(255, 255, 255, 0.25);
            color: white;
            text-shadow: none;
            transition: background 0.4s ease;
        }

body.theme-minimal[data-pomostate="breve"] .msg.mine .msg-bubble {
            background: #38858a;
        }

body.theme-minimal[data-pomostate="lungo"] .msg.mine .msg-bubble {
            background: #397097;
        }

body.theme-minimal .msg.theirs .msg-bubble {
            background: rgba(0, 0, 0, 0.2);
            color: white;
            text-shadow: none;
        }

body.theme-minimal .msg-name {
            color: rgba(255, 255, 255, 0.7);
            text-shadow: none;
            font-weight: normal;
            font-size: 12px;
        }

body.theme-minimal .msg-time {
            color: rgba(255, 255, 255, 0.5);
            text-shadow: none;
            font-size: 11px;
        }

body.theme-minimal .chat-input-wrapper {
            background: transparent;
            border-top: 1px dashed rgba(255, 255, 255, 0.2);
            box-shadow: none;
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
        }

body.theme-minimal .chat-textarea {
            background: rgba(0, 0, 0, 0.15);
            border: none;
            border-radius: 6px;
            padding: 10px 14px;
            font-size: 14px;
            box-shadow: none;
            color: white;
            transition: background 0.3s ease;
        }

body.theme-minimal .chat-textarea::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

body.theme-minimal .chat-textarea:focus {
            background: rgba(0, 0, 0, 0.25);
            outline: none;
        }

body.theme-minimal .send-btn {
            border-radius: 6px;
            padding: 10px 18px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.25);
            border: none;
            color: white;
            box-shadow: none;
            text-shadow: none;
            transition: background 0.2s ease, transform 0.1s;
        }

body.theme-minimal .send-btn:hover {
            background: rgba(255, 255, 255, 0.4);
        }

body.theme-minimal .send-btn:active {
            transform: translateY(2px);
        }

/* OVERRIDE GLOBALE MODALE PER TEMA APPLE */
        body.theme-apple .alert-box {
            background: #f0f0f0;
            border: 1px solid #444;
            color: #333;
        }

body.theme-apple .alert-header {
            background: linear-gradient(180deg, #f2f4f5 0%, #d1d6da 49%, #c3c9cf 50%, #b2b8bf 100%);
            color: #444;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
            border-bottom: 1px solid #666;
        }

body.theme-apple .alert-body {
            background: #e8e8e8;
        }

body.theme-apple .alert-input {
            background: #fff;
            border: 1px solid #999;
            color: #000;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

/* OVERRIDE GLOBALE MODALE PER TEMA AERO */
        body.theme-aero .alert-box {
            background: #fff;
            border: 1px solid #abadb3;
            border-radius: 6px;
            color: #1e395b;
        }

body.theme-aero .alert-header {
            background: linear-gradient(180deg, #f2f2f2 0%, #ebebeb 45%, #dddddd 50%, #cfcfcf 100%);
            color: #1e395b;
            text-shadow: none;
            border-bottom: 1px solid #abadb3;
        }

body.theme-aero .alert-body {
            background: #f0f4f9;
        }

body.theme-aero .alert-input {
            background: #fff;
            border: 1px solid #abadb3;
            color: #000;
            border-radius: 2px;
        }

/* OVERRIDE GLOBALE MODALE PER TEMA MINIMAL */
        body.theme-minimal .alert-box {
            background: #fff;
            border: none;
            color: #333;
            border-radius: 12px;
        }

body.theme-minimal .alert-header {
            background: #f5f5f5;
            color: #333;
            text-shadow: none;
            border-bottom: 1px solid #ddd;
        }

body.theme-minimal .alert-body {
            background: #fff;
        }

body.theme-minimal .alert-input {
            background: #f0f0f0;
            border: 1px solid #ddd;
            color: #333;
            border-radius: 6px;
            box-shadow: none;
        }

/* Modifiche Menu Impostazioni Globale per Tema Minimal */
        body.theme-minimal .alert-box .dash-title {
            color: #333;
            border-bottom: 1px dashed #ccc;
        }

body.theme-minimal .alert-box .preset-btn {
            background: #f9f9f9;
            border: 1px solid #ddd;
            color: #333;
        }

body.theme-minimal .alert-box .preset-btn span {
            color: #888;
        }

body.theme-minimal .alert-box .preset-btn.active {
            background: #eee;
            border-color: #ba4949;
        }

body.theme-minimal .alert-box .lcd-screen {
            background: #f9f9f9;
            border: 1px solid #ddd;
        }

body.theme-minimal .alert-box .lcd-val {
            color: #ba4949;
        }

body.theme-minimal .alert-box .lcd-lbl {
            color: #666;
        }

body.theme-minimal .alert-box .theme-opt {
            color: #333;
            border-color: #ccc;
        }

body.theme-minimal .alert-box .theme-opt.active {
            background: #eee;
            border-color: #ba4949;
        }

body.theme-minimal .alert-box .mute-btn {
            background: #f9f9f9;
            border: 1px solid #ddd;
            color: #333;
        }

body.theme-minimal .alert-box .ios-switch {
            background: #eee;
            border: 1px solid #ccc;
        }

body.theme-minimal .alert-box .ios-switch::after {
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

body.theme-minimal .alert-box .ios-switch.on {
            background: #ba4949;
            border-color: #ba4949;
        }

body.theme-minimal .alert-box .ios-switch.on::after {
            background: white;
        }

body.theme-minimal .alert-box input[type=range]::-webkit-slider-runnable-track {
            background: #eee;
            border: 1px solid #ddd;
        }

body.theme-minimal .alert-box input[type=range]::-webkit-slider-thumb {
            background: #ba4949;
        }

/* Alza il pulsante per staccarlo dal bordo inferiore dell'input bar nei temi classici */
        #classic-ui .scroll-bottom-btn {
            bottom: 90px; 
        }

/* Adattamento Tema Apple */
        body.theme-apple .scroll-bottom-btn {
            background: linear-gradient(180deg, #ffffff 0%, #e5e5ea 100%);
            border: 1px solid #b5b5b5;
            color: #444;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

/* Adattamento Tema Windows Aero */
        body.theme-aero .scroll-bottom-btn {
            background: rgba(255,255,255,0.8);
            border: 1px solid #abadb3;
            color: #1e395b;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

/* Adattamento Tema Minimalista */
        body.theme-minimal .scroll-bottom-btn {
            background: rgba(0, 0, 0, 0.4);
            border: none;
            color: #fff;
        }
