* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5B3A8C;
    --primary-dark: #4A2D73;
    --primary-light: #8B6BBF;
    --secondary: #2E8B57;
    --secondary-light: #3CB371;
    --accent: #FF6B6B;
    --accent-light: #FF8E8E;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.user-icon-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: white !important;
}

.user-icon-link::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent-light);
}

.hero-img i {
    font-size: 12rem;
    color: white;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-primary {
    background: white;
    color: var(--primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Seções gerais */
.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
}

.section h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    word-break: break-word;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sobre-grid, .recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sobre-card, .recurso-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.sobre-card:hover, .recurso-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sobre-card i, .recurso-item i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

/* ================= REGISTRO EMOCIONAL RESPONSIVO ================= */
.emocional-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    margin: 2rem auto;
    max-width: 1280px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding: 3rem;
}

.emocional-header {
    text-align: center;
    margin-bottom: 3rem;
}

.emocional-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.emocional-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.emocional-card-modern {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.mood-selector {
    margin-bottom: 2rem;
}

.mood-label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.mood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mood-option i {
    font-size: 2rem;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.mood-option span {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 500;
}

.mood-option:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.mood-option.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
}

.mood-option.active i,
.mood-option.active span {
    color: white;
}

.sentimento-container {
    margin-bottom: 2rem;
}

.sentimento-label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sentimento-label i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(91, 58, 140, 0.1);
}

.textarea-char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.emocional-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-save-emocao {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-save-emocao:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 58, 140, 0.3);
}

.btn-clear-emocao {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-clear-emocao:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
}

.historico-modern {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.historico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.historico-header h3 {
    font-size: 1.3rem;
    color: var(--gray-800);
}

.historico-header h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.btn-export {
    background: var(--gray-100);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: var(--primary);
    color: white;
}

.historico-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-200);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.historico-lista-container {
    max-height: 400px;
    overflow-y: auto;
}

.historico-lista-modern {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.historico-lista-modern li {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.historico-lista-modern li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.historico-lista-modern li strong {
    color: var(--primary);
    font-size: 0.85rem;
}

.historico-lista-modern li .historico-humor {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: white;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Scrollbar personalizada */
.historico-lista-container::-webkit-scrollbar {
    width: 6px;
}

.historico-lista-container::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.historico-lista-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Profissionais */
.profissionais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.prof-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.prof-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.prof-foto {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Chat */
.chat-container-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.chat-box {
    background: var(--gray-100);
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message.bot .chat-name {
    color: var(--primary);
    font-weight: bold;
}

.chat-message.user {
    text-align: right;
}

.chat-message.user p {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    max-width: 80%;
}

.chat-message.bot p {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    max-width: 80%;
    box-shadow: var(--shadow-sm);
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    font-family: inherit;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input-area button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.chat-input-area button:hover {
    transform: translateY(-2px);
}

.chat-note {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    text-align: center;
}

/* ================= FOOTER MELHORADO ================= */
.footer-modern {
    background: #1a1a2e;
    position: relative;
    margin-top: 4rem;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.footer-content-modern {
    position: relative;
    z-index: 1;
}

.footer-container-modern {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    color: #fff;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.7rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.sac-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-modern {
    position: relative;
}

.form-group-modern i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
    z-index: 1;
}

.form-group-modern textarea + i {
    top: 1rem;
    transform: none;
}

.form-group-modern input,
.form-group-modern textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group-modern textarea {
    padding-top: 1rem;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.form-group-modern input::placeholder,
.form-group-modern textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-item span {
    font-size: 0.9rem;
}

.newsletter-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newsletter-text i {
    font-size: 2rem;
    color: var(--primary-light);
}

.newsletter-text h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    width: 250px;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

.footer-bottom-modern {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
}

.footer-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-modern p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: var(--radius-xl);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--danger);
}

.perfil-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.tab-btn i {
    margin-right: 0.5rem;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

.perfil-info-container {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.perfil-avatar i {
    font-size: 100px;
    color: var(--primary);
}

.perfil-dados-completos {
    flex: 1;
}

.info-row {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    word-break: break-word;
}

.info-label {
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
    width: 140px;
}

.info-value {
    color: var(--gray-700);
}

.btn-logout {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--danger) 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-2px);
}

.btn-secundary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-secundary:hover {
    transform: translateY(-2px);
}

.page-content.hidden {
    display: none;
}

.page-content:not(.hidden) {
    display: block;
    padding: 3rem 0;
}

.hidden {
    display: none;
}

/* ================= RESPONSIVIDADE COMPLETA ================= */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-img i {
        font-size: 8rem;
    }
    
    .emocional-wrapper {
        margin: 1.5rem;
        padding: 2rem;
        border-radius: 24px;
    }
    
    .emocional-header h2 {
        font-size: 2rem;
    }
    
    .mood-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
    
    .footer-container-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Celulares (até 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-img i {
        font-size: 6rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .emocional-wrapper {
        margin: 1rem;
        padding: 1rem;
        border-radius: 20px;
    }
    
    .emocional-header {
        margin-bottom: 1.5rem;
    }
    
    .emocional-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .emocional-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .emocional-card-modern {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .mood-selector {
        margin-bottom: 1.5rem;
    }
    
    .mood-label {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .mood-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .mood-option {
        padding: 0.6rem;
    }
    
    .mood-option i {
        font-size: 1.5rem;
    }
    
    .mood-option span {
        font-size: 0.7rem;
    }
    
    .sentimento-container {
        margin-bottom: 1.5rem;
    }
    
    .sentimento-label {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .textarea-wrapper textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .textarea-char-count {
        font-size: 0.7rem;
    }
    
    .emocional-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-save-emocao, .btn-clear-emocao {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .historico-modern {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .historico-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    
    .historico-header h3 {
        font-size: 1.1rem;
    }
    
    .btn-export {
        width: 100%;
        justify-content: center;
        padding: 0.6rem;
    }
    
    .historico-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .historico-lista-container {
        max-height: 350px;
    }
    
    .historico-lista-modern li {
        padding: 0.8rem;
    }
    
    .historico-lista-modern li strong {
        font-size: 0.75rem;
    }
    
    .historico-lista-modern li .historico-humor {
        font-size: 0.7rem;
        margin-left: 0.3rem;
    }
    
    .historico-lista-modern li p {
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }
    
    .perfil-tabs {
        flex-direction: column;
    }
    
    .perfil-info-container {
        flex-direction: column;
        text-align: center;
    }
    
    .info-label {
        display: block;
        width: auto;
        margin-bottom: 5px;
    }
    
    .footer-container-modern {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .social-links-modern {
        justify-content: center;
    }
    
    .chat-message.user p,
    .chat-message.bot p {
        max-width: 95%;
    }
    
    .chat-input-area {
        flex-direction: column;
    }
    
    .chat-input-area button {
        width: 100%;
    }
}

/* Celulares pequenos (até 480px) */
@media (max-width: 480px) {
    .container {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .emocional-wrapper {
        margin: 0.5rem;
        padding: 0.8rem;
    }
    
    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .mood-option {
        padding: 0.5rem;
    }
    
    .mood-option i {
        font-size: 1.2rem;
    }
    
    .mood-option span {
        font-size: 0.65rem;
    }
    
    .textarea-wrapper textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .historico-lista-modern li {
        padding: 0.6rem;
    }
    
    .historico-lista-modern li strong {
        display: block;
        margin-bottom: 0.3rem;
    }
    
    .historico-lista-modern li .historico-humor {
        display: inline-block;
        margin-left: 0;
        margin-top: 0.2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .perfil-avatar i {
        font-size: 60px;
    }
}

/* Para orientação landscape em celulares */
@media (max-width: 768px) and (orientation: landscape) {
    .emocional-wrapper {
        padding: 1rem;
    }
    
    .mood-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .historico-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-content {
        max-height: 85vh;
    }
}

/* Telas muito grandes */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .emocional-wrapper {
        max-width: 1400px;
    }
    
    .mood-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
}

/* Ajustes de acessibilidade e toque */
@media (max-width: 768px) {
    button, 
    .mood-option,
    .btn-save-emocao,
    .btn-clear-emocao,
    .btn-export,
    .tab-btn,
    .social-link,
    .footer-links a,
    .contact-item {
        cursor: pointer;
        min-height: 44px;
    }
    
    input, textarea, select {
        font-size: 16px !important;
    }
    
    .historico-lista-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .emocional-wrapper {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .emocional-card-modern,
    .historico-modern {
        background: #1f1f2f;
    }
    
    .historico-lista-modern li {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .historico-lista-modern li p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .mood-option {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .mood-option span {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .stat-card {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Melhorias de impressão */
@media print {
    .navbar,
    .footer-modern,
    .btn-primary,
    .btn-save-emocao,
    .btn-clear-emocao,
    .btn-export,
    .chat-input-area {
        display: none;
    }
    
    .emocional-wrapper,
    .historico-modern {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}