/* ============================================
   INTELECTUS CHAT - Design Premium TDAH-Friendly
   ============================================ */

:root {
    /* Paleta Principal - Vermelho Suave/Coral */
    --primary-50: #FEF5F5;
    --primary-100: #FDE8E8;
    --primary-200: #FBD5D5;
    --primary-300: #F8B4B4;
    --primary-400: #F08A8A;
    --primary-500: #E07070;
    --primary-600: #C85C5C;
    --primary-700: #B04D4D;
    --primary-800: #8E3E3E;
    --primary-900: #7A3535;

    /* Verde Calmo - Sucesso/Progresso */
    --success-50: #ECFDF3;
    --success-100: #D1FADF;
    --success-200: #A6F4C5;
    --success-500: #12B76A;
    --success-600: #039855;
    --success-700: #027A48;

    /* Neutros */
    --gray-25: #FCFCFD;
    --gray-50: #F9FAFB;
    --gray-100: #F2F4F7;
    --gray-200: #EAECF0;
    --gray-300: #D0D5DD;
    --gray-400: #98A2B3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1D2939;
    --gray-900: #101828;

    /* Accent */
    --orange-50: #FFFAEB;
    --orange-500: #F79009;
    --purple-50: #FEF5F5;
    --purple-500: #B04D4D;
    --purple-600: #8E3E3E;
    --rose-500: #F63D68;

    /* Shadows */
    --shadow-xs: 0px 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
    --shadow-xl: 0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px rgba(16, 24, 40, 0.03);
    --shadow-2xl: 0px 24px 48px -12px rgba(16, 24, 40, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   SIDEBAR ESQUERDA
   ============================================ */

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-item.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-item-badge {
    margin-left: auto;
    background: var(--success-100);
    color: var(--success-700);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
}

/* Metodos com tooltip */
.nav-item-method {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item-method:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-item-method.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

.nav-item-method .method-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-item-method .method-name {
    flex: 1;
}

.nav-item-method .method-help {
    width: 22px;
    height: 22px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    opacity: 0.6;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.nav-item-method:hover .method-help {
    opacity: 1;
}

.nav-item-method .method-help:hover {
    background: var(--primary-500);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary-300);
    box-shadow: 0 2px 8px rgba(200, 92, 92, 0.3);
}


/* Badge de metodo ativo */
.method-active-badge {
    background: var(--success-500);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Esconder ? quando badge ativo estiver visível */
.nav-item-method.active .method-help {
    display: none;
}

/* ============================================
   MODAL DE EXPLICACAO DO METODO
   ============================================ */

.method-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.method-modal.active {
    opacity: 1;
    visibility: visible;
}

.method-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: methodModalIn 0.3s ease-out;
}

@keyframes methodModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.method-modal-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.method-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.method-modal-close:hover {
    background: var(--rose-500);
}

.method-modal-close:hover svg {
    fill: white;
}

.method-modal-close svg {
    width: 18px;
    height: 18px;
    fill: var(--gray-500);
    transition: fill 0.2s ease;
}

.method-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(200, 92, 92, 0.2);
}

.method-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.method-modal-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
}

.method-modal-body {
    padding: 0 2rem 1.5rem;
}

.method-modal-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.method-modal-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.method-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.method-feature:hover {
    background: var(--primary-50);
    transform: translateX(4px);
}

.method-feature-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.method-feature-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.method-modal-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 0.75rem;
}

.method-modal-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.method-modal-btn-secondary {
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
}

.method-modal-btn-secondary:hover {
    background: var(--gray-200);
}

.method-modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(200, 92, 92, 0.3);
}

.method-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 92, 92, 0.4);
}

.method-modal-btn-primary svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Indicador de ideal para */
.method-ideal-for {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--success-50) 0%, var(--primary-50) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--success-500);
}

.method-ideal-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.method-ideal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.method-ideal-tag {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--gray-700);
    box-shadow: var(--shadow-xs);
}

/* Modal do metodo - Mobile */
@media (max-width: 480px) {
    .method-modal {
        padding: 0;
        align-items: flex-end;
    }

    .method-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        animation: methodModalSlideUp 0.3s ease-out;
    }

    @keyframes methodModalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .method-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .method-modal-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
        border-radius: 20px;
    }

    .method-modal-title {
        font-size: 1.25rem;
    }

    .method-modal-body {
        padding: 0 1.5rem 1rem;
        max-height: 50vh;
        overflow-y: auto;
    }

    .method-modal-description {
        font-size: 0.9rem;
    }

    .method-feature {
        padding: 0.75rem;
    }

    .method-feature-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .method-feature-text {
        font-size: 0.85rem;
    }

    .method-modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }

    .method-modal-btn {
        padding: 1rem;
    }
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-user:hover {
    background: var(--gray-50);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.sidebar-user-status {
    font-size: 0.75rem;
    color: var(--success-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success-500);
    border-radius: 50%;
}

/* ============================================
   AREA PRINCIPAL DO CHAT
   ============================================ */

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
    min-width: 0;
}

/* Chat Header */
.chat-header {
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
}

.chat-header-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-header-toggle:hover {
    background: var(--gray-200);
}

.chat-header-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--gray-600);
}

.chat-header-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500), var(--success-500));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.chat-header-avatar svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.chat-header-info {
    flex: 1;
}

.chat-header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.chat-header-status {
    font-size: 0.8rem;
    color: var(--success-600);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--gray-500);
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: none;
}

.progress-container.active {
    display: block;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
}

.progress-percent {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-600);
}

.progress-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--success-500));
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.message {
    display: flex;
    gap: 0.875rem;
    max-width: 75%;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.bot .message-avatar {
    background: linear-gradient(135deg, var(--primary-500), var(--success-500));
}

.message.user .message-avatar {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
}

.message-avatar svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.message-content {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.message.bot .message-content {
    border-bottom-left-radius: 4px;
}

.message.user .message-content {
    background: var(--primary-600);
    color: white;
    border-bottom-right-radius: 4px;
    border-color: var(--primary-600);
}

.message-content p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.message-content .highlight {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.message.user .message-content .highlight {
    background: rgba(255,255,255,0.2);
    color: white;
}

.message-content strong {
    font-weight: 600;
}

.message-content em {
    color: var(--gray-500);
}

.message.user .message-content em {
    color: rgba(255,255,255,0.8);
}

/* Mermaid Mindmap Styles */
.mermaid-container {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--success-50) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid var(--primary-100);
    overflow-x: auto;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mermaid-container:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
    transform: scale(1.01);
}

.mermaid-container::after {
    content: '🔍 Clique para expandir';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--primary-500);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mermaid-container:hover::after {
    opacity: 1;
}

.mermaid-container svg {
    max-width: 100%;
    height: auto;
}

.mermaid-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mermaid-label svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-500);
}

/* Modal do Mapa Mental */
.mindmap-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mindmap-modal.active {
    opacity: 1;
    visibility: visible;
}

.mindmap-modal-content {
    background: white;
    border-radius: 24px;
    width: 95vw;
    height: 90vh;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: modalZoomIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mindmap-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: white;
    flex-shrink: 0;
}

.mindmap-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-600);
}

.mindmap-modal-title svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-500);
}

.mindmap-modal-close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mindmap-modal-close:hover {
    background: var(--rose-500);
}

.mindmap-modal-close:hover svg {
    fill: white;
}

.mindmap-modal-close svg {
    width: 24px;
    height: 24px;
    fill: var(--gray-600);
    transition: fill 0.2s ease;
}

.mindmap-modal-body {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--success-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: relative;
}

.mindmap-modal-body svg {
    transition: transform 0.15s ease-out;
    touch-action: none; /* Permite controle total do zoom via JS */
}

.mindmap-svg-container {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Controles de zoom - flutuante */
.mindmap-zoom-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.mindmap-zoom-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.mindmap-zoom-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
    color: var(--primary-600);
    transform: scale(1.05);
}

.mindmap-zoom-btn:active {
    transform: scale(0.95);
}

/* Botao fechar flutuante nos controles */
.mindmap-close-float {
    background: var(--rose-500) !important;
    color: white !important;
    border-color: var(--rose-400) !important;
    font-weight: 700;
}

.mindmap-close-float:hover {
    background: var(--rose-600) !important;
    border-color: var(--rose-500) !important;
    color: white !important;
}

.mindmap-zoom-level {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

@media (max-width: 768px) {
    .mindmap-modal {
        padding: 0;
    }

    .mindmap-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }

    .mindmap-modal-header {
        padding: 0.75rem 1rem;
        position: relative;
        z-index: 20;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .mindmap-modal-title {
        font-size: 0.9rem;
    }

    .mindmap-modal-title svg {
        width: 20px;
        height: 20px;
    }

    /* Botao fechar maior e mais visivel no mobile */
    .mindmap-modal-close {
        width: 52px;
        height: 52px;
        background: var(--rose-500);
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
        animation: pulseClose 2s ease-in-out infinite;
    }

    @keyframes pulseClose {
        0%, 100% {
            box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
        }
        50% {
            box-shadow: 0 4px 25px rgba(244, 63, 94, 0.6);
        }
    }

    .mindmap-modal-close svg {
        width: 26px;
        height: 26px;
        fill: white;
    }

    .mindmap-modal-close:hover,
    .mindmap-modal-close:active {
        background: var(--rose-600);
        transform: scale(1.05);
    }

    .mindmap-modal-body {
        touch-action: none; /* Controle total via JS para pinch zoom */
        -webkit-overflow-scrolling: touch;
        overflow: hidden;
    }

    .mindmap-zoom-controls {
        bottom: 2rem;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .mindmap-zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    /* Botao fechar destacado no mobile */
    .mindmap-close-float {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        margin-right: 0.75rem;
        box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
        animation: pulseCloseBtn 2s ease-in-out infinite;
    }

    @keyframes pulseCloseBtn {
        0%, 100% {
            box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
        }
        50% {
            box-shadow: 0 4px 25px rgba(244, 63, 94, 0.6);
        }
    }

    .mindmap-zoom-level {
        font-size: 0.9rem;
        min-width: 60px;
    }

    /* Dica de gestos no mobile */
    .mindmap-modal-body::before {
        content: '✕ Fechar embaixo • 👆 Arraste • ✌️ Pinça zoom';
        position: absolute;
        top: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        background: var(--gray-900);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 100px;
        font-size: 0.65rem;
        opacity: 0.95;
        z-index: 5;
        white-space: nowrap;
        animation: fadeOutTip 5s forwards;
        animation-delay: 4s;
    }

    @keyframes fadeOutTip {
        to {
            opacity: 0;
            visibility: hidden;
        }
    }
}

/* ============================================
   MODAL DE SUPORTE
   ============================================ */

.support-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.support-modal.active {
    opacity: 1;
    visibility: visible;
}

.support-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: supportModalIn 0.3s ease-out;
    position: relative;
}

@keyframes supportModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.support-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.support-modal-close:hover {
    background: var(--rose-500);
}

.support-modal-close:hover svg {
    fill: white;
}

.support-modal-close svg {
    width: 18px;
    height: 18px;
    fill: var(--gray-500);
    transition: fill 0.2s ease;
}

.support-modal-header {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.support-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.support-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.support-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.support-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.support-modal-body {
    padding: 1.5rem 2rem;
}

.support-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    text-align: center;
}

.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.support-contact-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    transform: translateX(4px);
}

.support-contact-item.whatsapp:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.support-contact-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.support-contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-500);
}

.support-contact-item.whatsapp .support-contact-icon svg {
    fill: #25d366;
}

.support-contact-info {
    flex: 1;
}

.support-contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.125rem;
}

.support-contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.support-modal-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--gray-100);
}

.support-footer-text {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Modal de suporte - Mobile */
@media (max-width: 480px) {
    .support-modal {
        padding: 0;
        align-items: flex-end;
    }

    .support-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        animation: supportModalSlideUp 0.3s ease-out;
    }

    @keyframes supportModalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .support-modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .support-avatar {
        width: 80px;
        height: 80px;
    }

    .support-name {
        font-size: 1.25rem;
    }

    .support-modal-body {
        padding: 1.25rem 1.5rem;
    }

    .support-intro {
        font-size: 0.9rem;
    }

    .support-contact-item {
        padding: 0.875rem 1rem;
    }

    .support-contact-icon {
        width: 44px;
        height: 44px;
    }

    .support-contact-icon svg {
        width: 22px;
        height: 22px;
    }

    .support-contact-value {
        font-size: 0.95rem;
    }
}

/* Quick Options */
.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-option {
    background: var(--primary-50);
    border: 2px solid var(--primary-100);
    padding: 0.625rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-option:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Method Cards */
.method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.method-card {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    padding: 1rem;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-card:hover {
    background: white;
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.method-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.method-card:hover .method-card-icon {
    background: var(--primary-50);
}

.method-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.method-card p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-self: flex-start;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.typing-indicator.active {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 60%, 100% {
        transform: translateY(0);
        background: var(--gray-300);
    }
    30% {
        transform: translateY(-4px);
        background: var(--primary-400);
    }
}

/* Input Area */
.chat-input-area {
    background: white;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary-300);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-50);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.625rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    color: var(--gray-900);
}

.chat-input:focus {
    outline: none;
}

.chat-input::placeholder {
    color: var(--gray-400);
}

.btn-send {
    width: 44px;
    height: 44px;
    background: var(--primary-600);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-send:hover {
    background: var(--primary-700);
    transform: scale(1.05);
}

.btn-send:active {
    transform: scale(0.98);
}

.btn-send:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.btn-send svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* ============================================
   SIDEBAR DIREITA (PERFIL)
   ============================================ */

.profile-panel {
    width: 320px;
    background: white;
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.profile-panel.hidden {
    transform: translateX(100%);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    padding: 2rem 1.5rem;
    color: white;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.profile-content {
    flex: 1;
    overflow-y: auto;
}

.profile-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.profile-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.profile-stat-item {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.25rem;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-tag {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-tag.success {
    background: var(--success-50);
    color: var(--success-700);
}

/* ============================================
   OVERLAY MOBILE
   ============================================ */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   WELCOME MODAL
   ============================================ */

.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.welcome-modal.hidden {
    display: none;
}

.welcome-content {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-500), var(--success-500));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.welcome-icon svg {
    width: 44px;
    height: 44px;
    fill: white;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.welcome-tagline {
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.welcome-tagline-main {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-700);
    margin-bottom: 0.5rem;
}

.welcome-tagline-sub {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-600);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
    .profile-panel {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(100%);
    }

    .profile-panel.active {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .chat-header-toggle {
        display: flex;
    }

    .message {
        max-width: 90%;
    }

    .method-cards {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        width: 100%;
    }

    .welcome-content {
        padding: 2rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   MODO FOCO - BOTAO
   ============================================ */

.btn-focus-lock {
    position: relative;
    transition: all 0.3s ease;
}

.btn-focus-lock:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

.btn-focus-lock:hover svg {
    fill: var(--primary-600);
}

.btn-focus-lock.active {
    background: var(--primary-500);
    border-color: var(--primary-500);
    animation: focusPulse 2s ease-in-out infinite;
}

.btn-focus-lock.active svg {
    fill: white;
}

@keyframes focusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 92, 92, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(200, 92, 92, 0); }
}

/* ============================================
   MODAL MODO FOCO
   ============================================ */

.focus-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.focus-modal.active {
    opacity: 1;
    visibility: visible;
}

.focus-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: focusModalIn 0.3s ease-out;
    position: relative;
}

@keyframes focusModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.focus-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.focus-modal-close:hover {
    background: var(--rose-500);
}

.focus-modal-close:hover svg {
    fill: white;
}

.focus-modal-close svg {
    width: 18px;
    height: 18px;
    fill: var(--gray-500);
    transition: fill 0.2s ease;
}

.focus-modal-header {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.focus-modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.focus-modal-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.focus-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.focus-modal-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.focus-modal-body {
    padding: 1.5rem 2rem;
}

.focus-modal-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    text-align: center;
}

.focus-time-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.focus-time-btn {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.focus-time-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 92, 92, 0.15);
}

.focus-time-btn:active {
    transform: translateY(0);
}

.focus-time-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-600);
    line-height: 1;
}

.focus-time-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.focus-time-tag {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.focus-time-btn:nth-child(2) .focus-time-tag {
    background: var(--success-100);
    color: var(--success-700);
}

.focus-custom-time {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1rem;
}

.focus-custom-time label {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: block;
    margin-bottom: 0.75rem;
}

.focus-custom-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.focus-custom-input input {
    width: 80px;
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    transition: all 0.2s ease;
}

.focus-custom-input input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.focus-custom-input span {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.focus-custom-btn {
    margin-left: auto;
    background: var(--primary-600);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.focus-custom-btn:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.focus-modal-footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.focus-modal-tip {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.focus-modal-tip::before {
    content: '💡';
}

/* ============================================
   BARRA FLUTUANTE MODO FOCO
   ============================================ */

.focus-bar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: 100px;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(200, 92, 92, 0.35);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.focus-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.focus-bar-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: focusIconPulse 2s ease-in-out infinite;
}

@keyframes focusIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.focus-bar-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.focus-bar-info {
    display: flex;
    flex-direction: column;
    color: white;
}

.focus-bar-label {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.focus-bar-timer {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.focus-bar-progress {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.focus-bar-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: white;
    border-radius: 2px;
    transition: width 1s linear;
}

.focus-bar-exit {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.focus-bar-exit:hover {
    background: rgba(255, 255, 255, 0.3);
}

.focus-bar-exit svg {
    width: 14px;
    height: 14px;
    fill: white;
}

/* Fullscreen mode styles */
body.focus-fullscreen {
    overflow: hidden;
}

body.focus-fullscreen .sidebar {
    display: none !important;
}

body.focus-fullscreen .profile-panel {
    display: none !important;
}

body.focus-fullscreen .chat-header-toggle {
    display: none !important;
}

body.focus-fullscreen .chat-main {
    max-width: 900px;
    margin: 0 auto;
}

body.focus-fullscreen .chat-messages {
    padding-top: 4rem;
}

/* Mobile adjustments for focus bar */
@media (max-width: 480px) {
    .focus-bar {
        top: auto;
        bottom: 5rem;
        padding: 0.4rem 0.5rem 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .focus-bar-icon {
        width: 32px;
        height: 32px;
    }

    .focus-bar-icon svg {
        width: 16px;
        height: 16px;
    }

    .focus-bar-timer {
        font-size: 1.1rem;
    }

    .focus-bar-progress {
        width: 40px;
    }

    .focus-bar-exit {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .focus-bar-exit span {
        display: none;
    }
}

/* Mobile adjustments for focus modal */
@media (max-width: 480px) {
    .focus-modal {
        padding: 0;
        align-items: flex-end;
    }

    .focus-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
    }

    .focus-modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .focus-modal-icon {
        width: 64px;
        height: 64px;
    }

    .focus-modal-icon svg {
        width: 32px;
        height: 32px;
    }

    .focus-modal-body {
        padding: 1.25rem 1.5rem;
    }

    .focus-time-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .focus-time-btn {
        padding: 1rem 0.75rem;
    }

    .focus-time-value {
        font-size: 1.5rem;
    }
}
