/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tema Escuro (padrão) */
:root,
[data-theme="dark"] {
    /* Ocean Theme Colors - Dark Mode */
    --bg-primary: #0a1628;
    --bg-secondary: #1e2a3a;
    --bg-sidebar: #1a2332;
    --bg-card: #1e2a3a;
    --bg-hover: #2d3748;

    --text-primary: #e8eaed;
    --text-secondary: #8b92a0;
    --text-muted: #6b7280;

    --accent-primary: #4a90e2;
    --accent-hover: #5ba3f5;
    --accent-light: rgba(74, 144, 226, 0.1);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);

    --border-color: #2d3748;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 60;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

.mobile-menu-btn svg {
    color: var(--text-primary);
}

.mobile-menu-btn .hidden {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    z-index: 40;
    transform: translateX(-100%);
    transition: var(--transition);
    overflow-y: auto;
}

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

.sidebar-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-image {
    width: 200px;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    transition: var(--transition);
    display: block;
}

.logo-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
}

.nav-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.nav-item.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.nav-item svg {
    flex-shrink: 0;
}

/* Profile Selector */
.profile-selector-container {
    margin: 0.5rem 0;
    position: relative;
}

.profile-selector-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.profile-selector-header:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.profile-selector-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.profile-selector-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-selector-name {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-selector-arrow {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-secondary);
}

.profile-selector-container.active .profile-selector-arrow {
    transform: rotate(180deg);
}

.profile-selector-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.profile-selector-list {
    padding: 0.5rem;
}

.profile-selector-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.profile-selector-item:hover {
    background: var(--bg-hover);
}

.profile-selector-item.active {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.profile-selector-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.profile-selector-item.active .profile-selector-item-icon {
    background: var(--accent-primary);
    color: white;
}

.profile-selector-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.profile-selector-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-selector-item.active .profile-selector-item-name {
    color: var(--accent-primary);
}

.profile-selector-item-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-selector-item-badge {
    padding: 0.25rem 0.5rem;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 12px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.profile-selector-item.active .profile-selector-item-badge {
    background: var(--accent-primary);
    color: white;
}

.profile-selector-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.profile-selector-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    border-radius: 12px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
    gap: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    min-width: 150px;
    transition: var(--transition);
}

.language-select:hover,
.language-select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.header-upgrade-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border: none;
    transition: var(--transition);
}

.header-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.welcome-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* Summary Card */
.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.summary-card:hover::before {
    opacity: 1;
}

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

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    color: var(--text-muted);
    opacity: 0.6;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-bar-large {
    height: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-success {
    background: var(--success);
}

.progress-warning {
    background: var(--warning);
}

/* Tabs Section */
.tabs-section {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.tabs-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.tab-btn::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 999px;
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--accent-light);
}

.tab-btn.active {
    color: var(--accent-primary);
    background: var(--accent-light);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab Content */
.tab-content {
    margin-top: 2rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
    display: block;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.task-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

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

.task-indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-primary);
    flex-shrink: 0;
}

.task-indicator-success {
    background: var(--success);
}

.task-name {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.task-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.badge-completed {
    background: var(--success-light);
    color: var(--success);
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
}

.goal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

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

.goal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.goal-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.goal-description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Finance Grid */
.finance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.finance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.finance-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.finance-income::before {
    background: var(--success);
}

.finance-expense::before {
    background: var(--danger);
}

.finance-balance::before {
    background: var(--accent-primary);
}

.finance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.finance-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finance-value {
    font-size: 2rem;
    font-weight: 700;
}

.finance-income .finance-value {
    color: var(--success);
}

.finance-expense .finance-value {
    color: var(--danger);
}

.finance-balance .finance-value {
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .finance-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }

    .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 280px;
        padding: 3rem 2rem;
    }

    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .goals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-title {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .main-content {
        padding: 3rem 3rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Add page section styles */
.page-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.page-section.active {
    display: block;
}

/* Add section header styles */
.section-header {
    margin-bottom: 2rem;
}

.section-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.section-header-actions .btn {
    min-width: auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.section-header-actions .btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.section-header-actions .btn span {
    display: inline-block;
    margin-left: 0.25rem;
}

@media (max-width: 640px) {
    .section-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .section-header-actions .btn {
        width: 100%;
    }
}

.filter-select {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--accent-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Add settings styles */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-info {
    flex: 1;
}

.settings-item-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.settings-item-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-hover);
    transition: var(--transition);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Add profile styles */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-header {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.profile-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.premium-user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

.premium-user-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.profile-email {
    font-size: 1rem;
    color: var(--text-secondary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.profile-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.profile-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.profile-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.profile-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.profile-premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
}

.profile-premium-card.premium-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: var(--warning);
}

.premium-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.premium-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.premium-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.premium-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.premium-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.premium-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.premium-feature svg {
    color: var(--success);
    flex-shrink: 0;
}

.premium-upgrade-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border: none;
    transition: var(--transition);
}

.premium-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.profile-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

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

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

/* Add help styles */
.help-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.help-search {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.help-categories {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question svg {
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-contact {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.help-contact-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.empty-state p {
    font-size: 0.875rem;
    max-width: 24rem;
    margin: 0 auto;
}

/* Report Modal Styles */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.report-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.report-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.report-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.report-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.report-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.report-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

.report-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.report-summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.report-summary-card .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.report-summary-card .value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.report-chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.report-premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.report-upgrade-banner {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.report-upgrade-banner h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.report-upgrade-banner p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .report-modal {
        padding: 1rem;
    }
    
    .report-modal-content {
        max-height: 95vh;
    }
    
    .report-modal-body {
        padding: 1rem;
    }
    
    .report-chart-container {
        height: 250px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-upgrade-btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-name-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Transaction Modal Styles - Centralized */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    animation: fadeIn 0.2s ease-out;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
    margin: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

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

@media (max-width: 640px) {
    .modal {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        max-height: 95vh;
    }
    
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
}

/* Products Section Styles */
.products-container {
    margin-top: 2rem;
}

.products-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.products-filters .filter-select,
.products-filters .search-input {
    flex: 1;
    min-width: 200px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.product-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-active {
    background: var(--success-light);
    color: var(--success);
}

.status-inactive {
    background: var(--warning-light);
    color: var(--warning);
}

.status-out-of-stock {
    background: var(--danger-light);
    color: var(--danger);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.price {
    color: var(--success);
    font-weight: 600;
    font-size: 1rem;
}

.detail-value.low-stock {
    color: var(--warning);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Dashboard Products Grid */
.products-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-card-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

/* Multiple Profiles Styles (Premium) */
.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-card-item {
    transition: var(--transition);
}

.profile-card-item:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-card-item {
        padding: 1rem !important;
    }
    
    .profile-card-item > div:first-child {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }
    
    .profile-card-item > div:first-child > div:last-child {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Sales Report Styles */
.sales-report-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.sales-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.sales-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.sales-stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.sales-stat-value {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.sales-list-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.sales-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sale-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: var(--transition);
}

.sale-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.sale-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sale-card-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.sale-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.sale-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sale-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sale-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.sale-item-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.sale-item-qty {
    color: var(--text-secondary);
    margin: 0 1rem;
}

.sale-item-price {
    color: var(--success);
    font-weight: 600;
}

.sale-total {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
    color: var(--text-primary);
    font-size: 1rem;
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid-dashboard {
        grid-template-columns: 1fr;
    }
    
    .products-filters {
        flex-direction: column;
    }
    
    .products-filters .filter-select,
    .products-filters .search-input {
        width: 100%;
    }

    .sales-summary {
        grid-template-columns: 1fr;
    }

    .sale-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .sale-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ============================================
   CHAT DE SUPORTE
   ============================================ */

.support-chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: inherit;
}

/* Botão flutuante do chat */
.support-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.support-chat-button:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.support-chat-button .chat-icon,
.support-chat-button .close-icon {
    position: absolute;
    transition: var(--transition);
}

.support-chat-button.active .chat-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.support-chat-button.active .close-icon {
    display: block;
    opacity: 1;
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

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

/* Janela do chat */
.support-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.support-chat-window.active {
    display: flex;
}

/* Header do chat */
.chat-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
}

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

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-text {
    flex: 1;
    min-width: 0;
}

.chat-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    animation: pulse 2s infinite;
}

.chat-minimize-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-minimize-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Área de mensagens */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-primary);
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease-out;
}

.chat-message-user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.chat-message-user .message-avatar {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.message-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-message-user .message-content {
    align-items: flex-end;
}

.message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message-user .message-bubble {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.chat-message-bot .message-bubble {
    background: var(--bg-card);
    color: var(--text-primary);
}

.message-bubble p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

/* Sugestões de mensagens */
.chat-suggestions {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--bg-card);
}

.suggestion-btn {
    padding: 0.5rem 0.75rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Input do chat */
.chat-input-container {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: var(--bg-card);
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

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

/* Responsive */
@media (max-width: 640px) {
    .support-chat-container {
        bottom: 1rem;
        right: 1rem;
    }

    .support-chat-window {
        width: calc(100vw - 2rem);
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
        bottom: 80px;
        right: 0;
    }

    .support-chat-button {
        width: 56px;
        height: 56px;
    }
}