/* ═══════════════════════════════════════════════════════════════════════════
   SPHERE THEME - AQUA METAL GREEN
   File separato - non tocca gli altri stili
   ═══════════════════════════════════════════════════════════════════════════ */

body.theme-sphere-green {
    --sphere-bg: #021a0d;
    --sphere-bg-dark: #010d06;
    --sphere-bg-card: rgba(0, 60, 30, 0.5);
    --sphere-border: rgba(0, 255, 136, 0.25);
    --sphere-border-light: rgba(0, 255, 136, 0.15);
    --sphere-text: #e0ffe8;
    --sphere-text-secondary: rgba(200, 255, 220, 0.7);
    --sphere-text-muted: rgba(0, 255, 136, 0.5);
    --sphere-accent: #00ff88;
    --sphere-shadow: rgba(0, 255, 136, 0.15);
}

body.theme-sphere-green,
body.theme-sphere-green #app {
    background: linear-gradient(145deg, #010d06 0%, #021a0d 50%, #031a10 100%) !important;
}

/* Sfondo con glow verde */
body.theme-sphere-green::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 255, 136, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 200, 100, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .sidebar,
body.theme-sphere-green #sidebar {
    background: linear-gradient(180deg, rgba(0, 40, 20, 0.95) 0%, rgba(0, 30, 15, 0.98) 100%) !important;
    border-right: 1px solid rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .sidebar-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%) !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .sidebar-title {
    color: #00ff88 !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

body.theme-sphere-green .sidebar-footer {
    background: rgba(0, 30, 15, 0.9) !important;
    border-top: 1px solid rgba(0, 255, 136, 0.2) !important;
}

/* Contatti */
body.theme-sphere-green .contact-item {
    border-bottom: 1px solid rgba(0, 255, 136, 0.1) !important;
}

body.theme-sphere-green .contact-item:hover {
    background: rgba(0, 255, 136, 0.1) !important;
}

body.theme-sphere-green .contact-item.active {
    background: rgba(0, 255, 136, 0.15) !important;
    border-left: 3px solid #00ff88 !important;
}

body.theme-sphere-green .contact-name {
    color: #e0ffe8 !important;
}

body.theme-sphere-green .contact-status {
    color: rgba(0, 255, 136, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT SIDEBAR (destra)
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .chat-sidebar {
    background: linear-gradient(180deg, rgba(0, 40, 20, 0.95) 0%, rgba(0, 30, 15, 0.98) 100%) !important;
    border-left: 1px solid rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .chat-sidebar .sidebar-header,
body.theme-sphere-green .chat-sidebar .chat-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%) !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .chat-sidebar h3,
body.theme-sphere-green .chat-sidebar .sidebar-title {
    color: #00ff88 !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT HEADER
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .chat-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 100, 50, 0.05) 100%) !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .peer-name {
    color: #00ff88 !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

body.theme-sphere-green .peer-status {
    color: rgba(0, 255, 136, 0.7) !important;
}

body.theme-sphere-green .status-dot.online {
    background: #00ff88 !important;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT MESSAGES
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .chat-messages {
    background: transparent !important;
}

body.theme-sphere-green .message.sent .message-bubble {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 100, 0.1) 100%) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1) !important;
}

body.theme-sphere-green .message.received .message-bubble {
    background: rgba(0, 60, 30, 0.5) !important;
    border: 1px solid rgba(0, 255, 136, 0.15) !important;
}

body.theme-sphere-green .message-text {
    color: #e0ffe8 !important;
}

body.theme-sphere-green .message-time {
    color: rgba(0, 255, 136, 0.5) !important;
}

/* Read receipt checkmark */
body.theme-sphere-green .read-receipt {
    margin-left: 6px;
    font-size: 0.9em;
    font-weight: bold;
    opacity: 0.4;
    color: rgba(0, 255, 136, 0.5);
    transition: all 0.3s ease;
}

body.theme-sphere-green .read-receipt.read {
    opacity: 1;
    color: #ffffff;
    font-weight: bold;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 15px rgba(0, 255, 136, 0.8),
        0 0 25px rgba(0, 255, 136, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   INPUT AREA
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .chat-input-area,
body.theme-sphere-green .message-input-area {
    background: linear-gradient(0deg, rgba(0, 40, 20, 0.9) 0%, rgba(0, 30, 15, 0.8) 100%) !important;
    border-top: 1px solid rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .input-container,
body.theme-sphere-green .message-input-container {
    background: rgba(0, 20, 10, 0.8) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
}

body.theme-sphere-green .input-container:focus-within,
body.theme-sphere-green .message-input-container:focus-within {
    border-color: #00ff88 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .message-input,
body.theme-sphere-green #messageInput {
    color: #e0ffe8 !important;
    background: transparent !important;
}

body.theme-sphere-green .message-input::placeholder,
body.theme-sphere-green #messageInput::placeholder {
    color: rgba(0, 255, 136, 0.4) !important;
}

/* Bottoni input */
body.theme-sphere-green .btn-attach,
body.theme-sphere-green .btn-emoji,
body.theme-sphere-green .btn-geo {
    background: transparent !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    color: #00ff88 !important;
}

body.theme-sphere-green .btn-attach:hover,
body.theme-sphere-green .btn-emoji:hover,
body.theme-sphere-green .btn-geo:hover {
    background: rgba(0, 255, 136, 0.15) !important;
    border-color: rgba(0, 255, 136, 0.4) !important;
}

body.theme-sphere-green .btn-send {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3) !important;
}

body.theme-sphere-green .btn-send:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5) !important;
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   BOTTONI GENERALI
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .btn-icon-glass,
body.theme-sphere-green .btn-sidebar-toggle,
body.theme-sphere-green .btn-chat-sidebar-toggle {
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    color: #00ff88 !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1) !important;
}

body.theme-sphere-green .btn-icon-glass:hover,
body.theme-sphere-green .btn-sidebar-toggle:hover,
body.theme-sphere-green .btn-chat-sidebar-toggle:hover {
    background: rgba(0, 255, 136, 0.2) !important;
    border-color: rgba(0, 255, 136, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3) !important;
}

body.theme-sphere-green .btn-icon-glass svg,
body.theme-sphere-green .btn-sidebar-toggle svg,
body.theme-sphere-green .btn-chat-sidebar-toggle svg {
    color: #00ff88 !important;
}

/* Nascondi pulsante tema nella sfera */
body.theme-sphere-green #btnThemeToggle,
body.theme-sphere-green .btn-theme-toggle {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green ::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3) !important;
}

body.theme-sphere-green ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5) !important;
}

body.theme-sphere-green ::-webkit-scrollbar-track {
    background: rgba(0, 255, 136, 0.05) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CRYPTO STATUS
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .crypto-status {
    color: rgba(0, 255, 136, 0.7) !important;
}

body.theme-sphere-green .crypto-status svg {
    color: #00ff88 !important;
}

/* ═══════════════════════════════════════════════════════════════
   WATERMARK
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .taboo-watermark {
    color: rgba(0, 255, 136, 0.15) !important;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}
/* ═══════════════════════════════════════════════════════════════
   AQUA METAL GREEN - Modal & Button Styles
   ═══════════════════════════════════════════════════════════════ */

/* Modal overlay */
#createSphereModal,
#sphereInviteReceivedModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 5, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal card - Aqua Metal Green */
#createSphereModal .modal-card,
#sphereInviteReceivedModal .modal-card {
    background: linear-gradient(145deg, #051a0f 0%, #0a2818 50%, #031208 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 255, 136, 0.1);
    overflow: hidden;
}

/* Modal header */
#createSphereModal .modal-header,
#sphereInviteReceivedModal .modal-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

#createSphereModal .modal-header h3,
#sphereInviteReceivedModal .modal-header h3 {
    color: #00ff88;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

#createSphereModal .modal-icon,
#sphereInviteReceivedModal .modal-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

#createSphereModal .modal-icon svg,
#sphereInviteReceivedModal .modal-icon svg {
    width: 20px;
    height: 20px;
    color: #00ff88;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.5));
}

/* Modal body */
#createSphereModal .modal-body,
#sphereInviteReceivedModal .modal-body {
    padding: 20px;
    background: rgba(0, 20, 10, 0.3);
}

/* Input fields */
#createSphereModal .sphere-input,
#createSphereModal .sphere-slot input {
    width: 100%;
    background: rgba(0, 30, 15, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: #e0ffe8;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#createSphereModal .sphere-input:focus,
#createSphereModal .sphere-slot input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

#createSphereModal .sphere-input::placeholder,
#createSphereModal .sphere-slot input::placeholder {
    color: rgba(0, 255, 136, 0.4);
}

/* Sphere slots */
#createSphereModal .sphere-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

#createSphereModal .sphere-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 10px;
}

#createSphereModal .sphere-slot .slot-num {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

#createSphereModal .slot-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

#createSphereModal .slot-badge.opt {
    background: transparent;
    color: rgba(0, 255, 136, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Modal actions */
#createSphereModal .modal-actions,
#sphereInviteReceivedModal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(0deg, rgba(0, 40, 20, 0.9) 0%, rgba(0, 30, 15, 0.7) 100%);
    border-top: 1px solid rgba(0, 255, 136, 0.15);
}

/* Primary button - Aqua Metal Green */
#createSphereModal .btn-primary,
#sphereInviteReceivedModal .btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transition: all 0.2s ease;
}

#createSphereModal .btn-primary:hover,
#sphereInviteReceivedModal .btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-1px);
}

/* Ghost button */
#createSphereModal .btn-ghost,
#sphereInviteReceivedModal .btn-ghost {
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#createSphereModal .btn-ghost:hover,
#sphereInviteReceivedModal .btn-ghost:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
}

/* Danger button for reject */
#sphereInviteReceivedModal .btn-ghost.danger {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

#sphereInviteReceivedModal .btn-ghost.danger:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
}

/* Warning box */
#createSphereModal .sphere-warning,
#sphereInviteReceivedModal .sphere-warning {
    font-size: 0.8rem;
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 16px;
    text-align: center;
}

/* Invite modal specifics */
#sphereInviteReceivedModal .invite-text {
    font-size: 1rem;
    color: #e0ffe8;
    margin-bottom: 8px;
    text-align: center;
}

#sphereInviteReceivedModal .invite-text strong {
    color: #00ff88;
}

#sphereInviteReceivedModal .invite-id {
    font-size: 0.8rem;
    color: rgba(0, 255, 136, 0.5);
    text-align: center;
    margin-bottom: 16px;
}

#sphereInviteReceivedModal .invite-id code {
    background: rgba(0, 255, 136, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #00ff88;
}

/* ═══════════════════════════════════════════════════════════════
   CREA SFERA BUTTON - Aqua Metal Green
   ═══════════════════════════════════════════════════════════════ */

#btnNewSphere {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 200, 100, 0.1) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 10px;
    color: #00ff88 !important;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

#btnNewSphere:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25) 0%, rgba(0, 200, 100, 0.15) 100%);
    border-color: rgba(0, 255, 136, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

#btnNewSphere svg {
    width: 18px;
    height: 18px;
    color: #00ff88;
    filter: drop-shadow(0 0 3px rgba(0, 255, 136, 0.5));
}

/* ═══════════════════════════════════════════════════════════════
   PULSANTI SIDEBAR AGGIUNTIVI
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green .btn-new-chat {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 200, 100, 0.1) 100%) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    color: #00ff88 !important;
}

body.theme-sphere-green .btn-new-chat:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25) 0%, rgba(0, 200, 100, 0.15) 100%) !important;
    border-color: rgba(0, 255, 136, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .btn-new-chat svg {
    color: #00ff88 !important;
}

/* Tutti i pulsanti nella sidebar */
body.theme-sphere-green .sidebar button,
body.theme-sphere-green #sidebar button {
    color: #00ff88 !important;
}

body.theme-sphere-green .sidebar button:hover,
body.theme-sphere-green #sidebar button:hover {
    background: rgba(0, 255, 136, 0.15) !important;
}

/* Active chats nella sidebar */
body.theme-sphere-green .active-chat-item {
    background: rgba(0, 40, 20, 0.5) !important;
    border: 1px solid rgba(0, 255, 136, 0.15) !important;
}

body.theme-sphere-green .active-chat-item:hover,
body.theme-sphere-green .active-chat-item.active {
    background: rgba(0, 255, 136, 0.1) !important;
    border-color: rgba(0, 255, 136, 0.3) !important;
}

body.theme-sphere-green .active-chat-item .chat-name {
    color: #e0ffe8 !important;
}

body.theme-sphere-green .active-chat-item .chat-preview {
    color: rgba(0, 255, 136, 0.5) !important;
}

/* Badge notifiche */
body.theme-sphere-green .unread-badge {
    background: #00ff88 !important;
    color: #000 !important;
}

/* Bottom bar / footer buttons */
body.theme-sphere-green .bottom-bar,
body.theme-sphere-green .app-footer {
    background: rgba(0, 30, 15, 0.95) !important;
    border-top: 1px solid rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .bottom-bar button,
body.theme-sphere-green .app-footer button {
    color: #00ff88 !important;
    background: transparent !important;
}

body.theme-sphere-green .bottom-bar button:hover,
body.theme-sphere-green .app-footer button:hover {
    background: rgba(0, 255, 136, 0.15) !important;
}

body.theme-sphere-green .bottom-bar button.active,
body.theme-sphere-green .app-footer button.active {
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.2) !important;
}

/* Tutte le icone SVG */
body.theme-sphere-green .sidebar svg,
body.theme-sphere-green #sidebar svg {
    color: #00ff88 !important;
}

/* Testo generico nella sidebar */
body.theme-sphere-green .sidebar span,
body.theme-sphere-green .sidebar p,
body.theme-sphere-green #sidebar span,
body.theme-sphere-green #sidebar p {
    color: #e0ffe8 !important;
}

body.theme-sphere-green .sidebar .text-muted,
body.theme-sphere-green #sidebar .text-muted {
    color: rgba(0, 255, 136, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FIX COLORI SFERA - Sidebar sinistra e sfondo
   ═══════════════════════════════════════════════════════════════ */

/* SIDEBAR SINISTRA - FORZA VERDE */
body.theme-sphere-green aside.sidebar,
body.theme-sphere-green .sidebar,
body.theme-sphere-green #sidebar,
body.theme-sphere-green [class*='sidebar'] {
    background: linear-gradient(180deg, rgba(0, 40, 20, 0.98) 0%, rgba(0, 25, 12, 0.99) 100%) !important;
    border-color: rgba(0, 255, 136, 0.2) !important;
}

/* Header sidebar */
body.theme-sphere-green .sidebar-header,
body.theme-sphere-green .sidebar > header,
body.theme-sphere-green #sidebar > header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(0, 100, 50, 0.08) 100%) !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.25) !important;
}

/* Footer sidebar (parte sotto) */
body.theme-sphere-green .sidebar-footer,
body.theme-sphere-green .sidebar > footer,
body.theme-sphere-green #sidebar > footer,
body.theme-sphere-green aside > footer {
    background: linear-gradient(0deg, rgba(0, 35, 18, 0.98) 0%, rgba(0, 40, 20, 0.95) 100%) !important;
    border-top: 1px solid rgba(0, 255, 136, 0.2) !important;
}

/* SFONDO MESSAGGI / CHAT AREA */
body.theme-sphere-green .chat-area,
body.theme-sphere-green .chat-main,
body.theme-sphere-green .chat-container,
body.theme-sphere-green .messages-area,
body.theme-sphere-green #chatMessages,
body.theme-sphere-green .chat-messages {
    background: linear-gradient(180deg, rgba(0, 20, 10, 0.5) 0%, rgba(0, 15, 8, 0.6) 100%) !important;
}

/* SCREEN CHAT */
body.theme-sphere-green #screenChat,
body.theme-sphere-green .screen.chat {
    background: linear-gradient(145deg, #010d06 0%, #021a0d 50%, #031a10 100%) !important;
}

/* App layout */
body.theme-sphere-green .app-layout {
    background: transparent !important;
}

/* Tutti i div dentro sidebar */
body.theme-sphere-green .sidebar div,
body.theme-sphere-green #sidebar div {
    background-color: transparent;
}

/* Lista contatti */
body.theme-sphere-green .contacts-list,
body.theme-sphere-green .contact-list,
body.theme-sphere-green #contactsList {
    background: transparent !important;
}

/* Sfondo per testo/messaggi */
body.theme-sphere-green .message-bubble {
    backdrop-filter: blur(10px);
}

body.theme-sphere-green .message.sent .message-bubble {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 100, 0.12) 100%) !important;
    border: 1px solid rgba(0, 255, 136, 0.35) !important;
}

body.theme-sphere-green .message.received .message-bubble {
    background: linear-gradient(135deg, rgba(0, 80, 40, 0.6) 0%, rgba(0, 60, 30, 0.5) 100%) !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
}

/* Input text sfondo */
body.theme-sphere-green input,
body.theme-sphere-green textarea {
    background: rgba(0, 30, 15, 0.9) !important;
    border-color: rgba(0, 255, 136, 0.3) !important;
    color: #e0ffe8 !important;
}

body.theme-sphere-green input:focus,
body.theme-sphere-green textarea:focus {
    border-color: #00ff88 !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green input::placeholder,
body.theme-sphere-green textarea::placeholder {
    color: rgba(0, 255, 136, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR SINISTRA - FORZA VERDE (alta specificità)
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green #screenMain .sidebar,
body.theme-sphere-green #screenMain #sidebar,
body.theme-sphere-green #screenMain aside.sidebar,
body.theme-sphere-green #screenChat .sidebar,
body.theme-sphere-green #screenChat #sidebar,
body.theme-sphere-green .app-layout > .sidebar,
body.theme-sphere-green .app-layout > aside {
    background: linear-gradient(180deg, #021a0d 0%, #010d06 100%) !important;
    border-right: 1px solid rgba(0, 255, 136, 0.25) !important;
    border-color: rgba(0, 255, 136, 0.25) !important;
}

body.theme-sphere-green #screenMain .sidebar *,
body.theme-sphere-green #screenChat .sidebar * {
    border-color: rgba(0, 255, 136, 0.15) !important;
}

body.theme-sphere-green #screenMain .sidebar-header,
body.theme-sphere-green #screenChat .sidebar-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 60, 30, 0.1) 100%) !important;
}

body.theme-sphere-green #screenMain .sidebar h3,
body.theme-sphere-green #screenMain .sidebar .sidebar-title,
body.theme-sphere-green #screenChat .sidebar h3 {
    color: #00ff88 !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT SIDEBAR (screenChat) - VERDE
   ═══════════════════════════════════════════════════════════════ */

body.theme-sphere-green #screenChat .chat-sidebar,
body.theme-sphere-green #screenChat #chatSidebar,
body.theme-sphere-green .chat-layout > .chat-sidebar,
body.theme-sphere-green aside.chat-sidebar {
    background: linear-gradient(180deg, #021a0d 0%, #010d06 100%) !important;
    border-right: 1px solid rgba(0, 255, 136, 0.25) !important;
}

body.theme-sphere-green #screenChat .chat-sidebar .sidebar-header,
body.theme-sphere-green #chatSidebar .sidebar-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 60, 30, 0.1) 100%) !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green #screenChat .chat-sidebar .sidebar-title,
body.theme-sphere-green #chatSidebar .sidebar-title,
body.theme-sphere-green #chatSidebar h3 {
    color: #00ff88 !important;
}

body.theme-sphere-green #screenChat .chat-sidebar .sidebar-icon,
body.theme-sphere-green #chatSidebar .sidebar-icon {
    color: #00ff88 !important;
}

body.theme-sphere-green #screenChat .chat-sidebar .active-chats-list,
body.theme-sphere-green #chatSidebar .active-chats-list {
    background: transparent !important;
}

body.theme-sphere-green #screenChat .chat-sidebar .btn-sidebar-toggle,
body.theme-sphere-green #chatSidebar .btn-sidebar-toggle {
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    color: #00ff88 !important;
}

body.theme-sphere-green #screenChat .chat-sidebar .btn-sidebar-toggle:hover,
body.theme-sphere-green #chatSidebar .btn-sidebar-toggle:hover {
    background: rgba(0, 255, 136, 0.2) !important;
}

body.theme-sphere-green .chat-sidebar .taboo-watermark {
    color: rgba(0, 255, 136, 0.15) !important;
}

body.theme-sphere-green .chat-sidebar .btn-new-chat,
body.theme-sphere-green .chat-sidebar .btn-new-sphere {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 60, 30, 0.15) 100%) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    color: #00ff88 !important;
}

body.theme-sphere-green .chat-sidebar .btn-new-chat:hover,
body.theme-sphere-green .chat-sidebar .btn-new-sphere:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 60, 30, 0.2) 100%) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3) !important;
}
