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

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

/* Professional Landing Navbar */
.landing-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e40af;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.landing-brand i {
    font-size: 1.75rem;
    color: #2563eb;
}

.landing-nav-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.landing-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.landing-nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.landing-nav-link:hover {
    color: #2563eb;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav-login {
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9375rem;
}

.landing-nav-cta {
    padding: 0.625rem 1.25rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
}

@media (max-width: 992px) {
    .landing-nav-content {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        border-bottom: 1px solid #e2e8f0;
        display: none;
    }

    .landing-nav-content.active {
        display: flex;
    }

    .landing-nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .landing-nav-actions {
        flex-direction: column;
        width: 100%;
    }

    .landing-nav-cta {
        width: 100%;
        text-align: center;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.modal-overlay.is-open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal {
    animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: #fff;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}

.modal-body {
    padding: 2rem;
}

.modal-info-text {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.modal-form-group {
    margin-bottom: 1.25rem;
}

.modal-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
}

.modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
}

.modal-input-wrapper input,
.modal-input-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.modal-input-wrapper textarea {
    padding-left: 1rem; /* Textarea sem ícone fixo lateral para mais espaço */
    min-height: 120px;
    resize: vertical;
}

.modal-input-wrapper input:focus,
.modal-input-wrapper textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions .btn {
    flex: 1;
    padding: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
}

.modal-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.modal-feedback.active {
    display: block;
}

.modal-feedback.modal-success {
    background: #dcfce4;
    color: #166534;
}

.modal-feedback.modal-error {
    background: #fee2e2;
    color: #991b1b;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar h1 i {
    margin-right: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-block {
    width: 100%;
}

/* Landing Page Enhancements */
.landing-hero {
    padding: 8rem 0 6rem;
    background: radial-gradient(circle at top right, #eff6ff 0%, #fff 50%);
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-actions .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 14px;
}

.hero-actions .btn-outline-light {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    color: #1e293b;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid #f1f5f9;
}

.hero-stat strong {
    display: block;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.hero-stat div {
    color: #64748b;
    font-size: 0.875rem;
}

.hero-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.hero-card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #475569;
}

.hero-list i {
    color: #10b981;
}

.section {
    padding: 3.5rem 0;
}

.section-muted {
    background: #f1f5f9;
}

/* Feature Cards Modernization */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1.5px solid #f1f5f9;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.steps {
    display: grid;
    gap: 1rem;
}

.step-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cta {
    background: #0f172a;
    color: #fff;
    padding: 3rem 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Chat widget */
.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.chat-button {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.5);
}

.chat-button-icon {
    position: relative;
    font-size: 1.25rem;
}

.chat-notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #4f46e5;
}

.chat-panel {
    width: 360px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    display: none;
    max-height: 80vh;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.chat-widget.open .chat-panel {
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #1e40af;
    color: #fff;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
}

.chat-online-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #1e40af;
}

.chat-header-info strong {
    display: block;
    font-size: 1rem;
}

.chat-header-info p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    padding: 1.25rem;
    background: #f8fafc;
    max-height: 400px;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 85%;
    position: relative;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-message-bot .chat-bubble,
.chat-message-admin .chat-bubble {
    background: #fff;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    border: 1px solid #e2e8f0;
}

.chat-message-user .chat-bubble,
.chat-message-guest .chat-bubble {
    background: #4f46e5;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message-user,
.chat-message-guest {
    align-self: flex-end;
}

.chat-role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
    display: block;
}

.chat-message-user .chat-role,
.chat-message-guest .chat-role {
    text-align: right;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.typing-indicator {
    display: flex;
    gap: 3px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-footer {
    padding: 1.25rem;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.chat-input-group i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.chat-input-group input {
    width: 100%;
    padding: 0.6rem 0.6rem 0.6rem 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.chat-input-group input:focus {
    outline: none;
    border-color: #4f46e5;
}

.chat-message-input-container {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 15px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.4rem;
    font-size: 0.95rem;
    max-height: 100px;
    outline: none;
}

.chat-input-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-attach, .chat-send {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-attach {
    color: #64748b;
}

.chat-attach input {
    display: none;
}

.chat-attach:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.chat-send {
    background: #4f46e5;
    color: #fff;
    border: none;
}

.chat-send:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.chat-send:not(:disabled):hover {
    background: #3730a3;
    transform: scale(1.05);
}

.chat-footer-links {
    text-align: center;
}

.chat-footer-links .btn-link {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: none;
}

.chat-footer-links .btn-link:hover {
    color: #4f46e5;
}

.chat-protocol {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 4px;
}

.chat-protocol-code {
    color: #4f46e5;
    font-weight: 700;
}

.chat-recover-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.chat-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 10px;
    margin-top: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 0.85rem;
}

.chat-message-user .chat-attachment,
.chat-message-guest .chat-attachment {
    background: rgba(255, 255, 255, 0.2);
}

.chat-status {
    color: #64748b;
    font-size: 0.8rem;
}

/* Admin chat */
.admin-chat {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

.admin-chat-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-chat-metrics .card {
    margin-bottom: 0;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0.5rem 0;
}

.metric-list {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 0.9rem;
}

/* Assistant Widget */
.bot-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
}

.bot-card h2, .bot-card p { color: #fff; }

.bot-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.bot-form input {
    flex: 1;
    min-width: 240px;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.bot-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.bot-response {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* Notificações */
.notificacao-lista {
    display: grid;
    gap: 0.75rem;
}

.notificacao-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.notificacao-item.nao-lida {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
}

.notificacao-item small {
    color: #64748b;
}

.notif-badge {
    margin-left: 0.4rem;
}

.admin-chat-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.admin-chat-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.admin-chat-item a {
    display: block;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-chat-badge {
    margin-left: 0.4rem;
}

.admin-chat-item.active a {
    border-color: #2563eb;
    background: #e0e7ff;
}

.admin-chat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.admin-chat-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
}

.admin-chat-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.admin-chat-panel {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.admin-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.admin-chat-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-chat-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.admin-chat-messages {
    flex: 1;
    margin: 1rem 0;
    overflow-y: auto;
    display: grid;
    gap: 0.75rem;
}

.admin-chat-message {
    display: flex;
}

.admin-chat-message.admin {
    justify-content: flex-end;
}

.admin-chat-message .bubble {
    max-width: 70%;
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.admin-chat-message.admin .bubble {
    background: #dbeafe;
}

.admin-chat-message small {
    display: block;
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.75rem;
}

.admin-chat-form {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.admin-chat-filters {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-chat-filters input,
.admin-chat-filters select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.admin-quick-replies {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.admin-quick-replies h4 {
    margin-bottom: 0.5rem;
}

.admin-quick-replies-list {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-quick-reply-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-quick-replies-form {
    display: grid;
    gap: 0.5rem;
}

.admin-quick-replies-form input,
.admin-quick-replies-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.admin-chat-meta-actions {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.admin-chat-meta-actions form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-chat-meta-actions input,
.admin-chat-meta-actions select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
}

.admin-chat-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    resize: vertical;
}

@media (max-width: 900px) {
    .admin-chat {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .chat-widget {
        right: 16px;
        bottom: 16px;
    }

    .chat-panel {
        width: 280px;
    }
}

/* Auth Pages Modernization */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.auth-shell {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-left {
        display: none;
    }
}

.auth-left {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: #fff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-bottom: 3rem;
}

.auth-left h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.auth-left p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.auth-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.auth-highlight-item i {
    color: #60a5fa;
    font-size: 1.25rem;
}

.auth-right {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-logo {
    margin-bottom: 2.5rem;
    text-align: left;
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-logo p {
    color: #64748b;
    font-size: 1.125rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.auth-form input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-form .btn-primary {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    background: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    margin-top: 1rem;
}

.auth-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9375rem;
    color: #64748b;
}

.auth-links a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.form-hint {
    color: #64748b;
    font-size: 0.85rem;
}

/* Improved Cards */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Dashboard Enhancements */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
}

.action-card i {
    font-size: 1.5rem;
    color: #3b82f6;
    background: #eff6ff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.action-card span {
    font-size: 0.875rem;
    font-weight: 600;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #3b82f6;
}

/* Status Badges */
.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill.success { background: #dcfce7; color: #166534; }
.status-pill.warning { background: #fef3c7; color: #92400e; }
.status-pill.danger { background: #fee2e2; color: #991b1b; }
.status-pill.info { background: #e0f2fe; color: #075985; }

/* Obligation Items */
.obrigacao-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.obrigacao-card:hover {
    border-color: #e2e8f0;
}

.obrigacao-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.obrigacao-icon.das { background: #fff7ed; color: #ea580c; }
.obrigacao-icon.dasn { background: #f0fdf4; color: #16a34a; }

.obrigacao-details {
    flex: 1;
    margin-left: 1rem;
}

.obrigacao-details h4 {
    font-size: 0.9375rem;
    margin: 0;
    color: #1e293b;
}

.obrigacao-details p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

/* Table Design */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.modern-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover td {
    background: #fcfdfe;
}

.amount-positive { color: #10b981; font-weight: 600; }
.amount-negative { color: #ef4444; font-weight: 600; }

/* Custom Scrollbar for Chat Body */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.summary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.summary-card.revenue::after { background: #10b981; }
.summary-card.expense::after { background: #ef4444; }
.summary-card.balance::after { background: #3b82f6; }

.summary-card h3 {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.summary-growth {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.growth-up { color: #10b981; }
.growth-down { color: #ef4444; }

.termometro-section {
    margin-bottom: 2rem;
}

.termometro-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.termometro-valor {
    display: flex;
    flex-direction: column;
}

.termometro-valor .valor {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.termometro-valor .limite {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.termometro-percentual {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Progress Bars */
.progress-bar {
    height: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease-out;
}

/* Grid systems */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.saldo-card {
    text-align: center;
}

.saldo-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1rem;
}

.saldo-valor {
    font-size: 2rem;
    font-weight: bold;
}

.saldo-valor.positivo {
    color: var(--success-color);
}

.saldo-valor.negativo {
    color: var(--danger-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    background: none;
    padding: 0.5rem 0;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.action-section {
    text-align: center;
    margin: 2rem 0;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table thead {
    background-color: var(--bg-color);
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.table tbody tr:hover {
    background-color: var(--bg-color);
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
}

.form-row a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-row a:hover {
    text-decoration: underline;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-inline {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-inline .form-group {
    margin-bottom: 0;
}

.form-inline label {
    display: block;
    margin-bottom: 0.5rem;
}

/* Obrigações */
.obrigacoes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.obrigacao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 6px;
    border-left: 4px solid var(--info-color);
}

.obrigacao-item.urgente {
    border-left-color: var(--danger-color);
    background-color: #fee2e2;
}

.obrigacao-info h4 {
    margin-bottom: 0.5rem;
}

.obrigacao-info p {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Relatórios */
.relatorios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.empty-state i {
    margin-bottom: 1rem;
    color: var(--border-color);
}

.empty-state p {
    margin-bottom: 1rem;
}

.error-state {
    text-align: center;
    padding: 3rem 1rem;
}

.error-state i {
    margin-bottom: 1rem;
    color: var(--danger-color);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

.page-actions {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    font-size: 0.875rem;
}

/* Utilities */
.positivo {
    color: var(--success-color);
    font-weight: 600;
}

.negativo {
    color: var(--danger-color);
    font-weight: 600;
}

.text-warning {
    color: var(--warning-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .table {
        font-size: 0.875rem;
    }

    .obrigacao-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
