:root {
    /* Tema Escuro - Cores Principais */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --secondary-dark: #0284c7;
    --accent-color: #10b981;
    --accent-dark: #059669;

    /* Tema Escuro - Backgrounds */
    --bg-primary: #0f172a;      /* Slate-900 */
    --bg-secondary: #1e293b;    /* Slate-800 */
    --bg-tertiary: #334155;     /* Slate-700 */
    --bg-card: #1e293b;         /* Slate-800 */
    --bg-hover: #334155;        /* Slate-700 */
    --bg-input: #334155;        /* Slate-700 */

    /* Tema Escuro - Textos */
    --text-primary: #f8fafc;     /* Slate-50 */
    --text-secondary: #cbd5e1;   /* Slate-300 */
    --text-muted: #94a3b8;       /* Slate-400 */
    --text-accent: #60a5fa;      /* Blue-400 */

    /* Tema Escuro - Bordas */
    --border-color: #475569;    /* Slate-600 */
    --border-light: #64748b;    /* Slate-500 */

    /* Tema Escuro - Estados */
    --success-color: #10b981;   /* Emerald-500 */
    --warning-color: #f59e0b;   /* Amber-500 */
    --error-color: #ef4444;     /* Red-500 */
    --info-color: #3b82f6;      /* Blue-500 */

    /* Tema Escuro - Gradientes */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    /* Tema Escuro - Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);

    /* Tema Escuro - Espaçamentos */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Reset e Base */
html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* Links */
a, .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, .btn-link:hover {
    color: var(--primary-light);
}

/* Botões */
.btn-primary {
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-secondary);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--primary-color), 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Layout Principal */
.page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.content {
    padding-top: 1.1rem;
    background: var(--bg-primary);
}

/* Navbar */
.navbar-toggler {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.nav-scrollable {
    background: var(--bg-secondary);
}

.nav-link {
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    margin: 0.25rem 0.5rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

/* ========================================
   LANDING PAGE NAVIGATION
   ======================================== */

/* Main Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.landing-nav.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.landing-nav.scrolled .nav-brand {
    color: var(--primary-color);
}

.landing-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.landing-nav.scrolled .nav-link {
    color: var(--text-primary);
}

/* ========================================
   LANDING PAGE STYLES - TEMA ESCURO
   ======================================== */

/* Hero Section */
.hero-section {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Espaço para o navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 6V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image .bg-white {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

/* Section Styles */
.section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

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

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Cards */
.pricing-section {
    background: var(--gradient-bg);
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured::before {
    content: 'Mais Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check-icon {
    color: var(--accent-color);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    color: var(--text-muted);
}

/* Stats Section */
.stats-section {
    background: var(--bg-primary);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Registration Form */
.registration-container {
    background: var(--gradient-bg);
    min-height: 100vh;
    padding: 2rem 0;
}

.registration-card {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.registration-header {
    background: var(--gradient-primary);
    padding: 2rem;
    color: white;
    text-align: center;
}

.registration-body {
    padding: 2rem;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.step.completed {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured::before {
        font-size: 0.75rem;
    }
}

/* Plan badge */
.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-badge.starter { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.plan-badge.business { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.plan-badge.enterprise { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.plan-badge.unlimited { background: rgba(16, 185, 129, 0.1); color: #34d399;}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Loading states */
.spinner-border {
    border-color: var(--primary-color);
    border-right-color: transparent;
}

/* Focus states melhorados */
.btn:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Table styles */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

.table tbody td {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

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

/* Modal styles */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Dropdown styles */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Badge styles */
.badge {
    font-weight: 600;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-danger {
    background: var(--error-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
}

/* Progress bars */
.progress {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.progress-bar {
    background: var(--gradient-primary);
}

/* Tooltips */
.tooltip-inner {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.tooltip .arrow::before {
    border-top-color: var(--bg-secondary);
}

/* Hero Mini Cards */
.hero-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.hero-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.hero-mini-card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.hero-mini-card .title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

/* Icon colors for hero cards */
.hero-mini-card .icon-dashboard { color: var(--primary-color); }
.hero-mini-card .icon-estoque { color: var(--accent-color); }
.hero-mini-card .icon-notas { color: var(--warning-color); }
.hero-mini-card .icon-financeiro { color: var(--secondary-color); }

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-container {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 6V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-header {
    background: var(--gradient-primary);
    padding: 2.5rem 2rem;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.login-body {
    padding: 2rem;
}

.login-body .form-floating {
    margin-bottom: 1rem;
}

.login-body .form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 0.75rem;
    height: auto;
}

.login-body .form-control:focus {
    background: var(--bg-input);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.login-body .form-floating label {
    color: var(--text-muted);
}

.login-body .form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-color);
}

.login-body .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-body .form-check-label {
    color: var(--text-secondary);
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--primary-light);
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--text-muted);
    position: relative;
    font-size: 0.9rem;
}

.login-footer {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.security-info {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.security-info i {
    color: var(--accent-color);
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */

.dashboard-container {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.dashboard-brand i {
    color: var(--primary-color);
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
    display: none;
}

@media (min-width: 768px) {
    .user-info {
        display: block;
    }
}

.user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-email {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.dashboard-user .dropdown-toggle {
    color: var(--text-secondary);
    padding: 0.25rem;
}

.dashboard-user .dropdown-toggle:hover {
    color: var(--text-primary);
}

.dashboard-user .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.dashboard-user .dropdown-item {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
}

.dashboard-user .dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dashboard-user .dropdown-divider {
    border-color: var(--border-color);
}

.dashboard-main {
    flex: 1;
    padding: 3rem 0;
}

.dashboard-title-section {
    text-align: center;
    margin-bottom: 3rem;
}

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

.dashboard-title i {
    color: var(--primary-color);
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 5rem 0;
}

/* No Companies State */
.no-companies-container {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.no-companies-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--text-muted);
}

.no-companies-container h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Company Cards */
.company-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.company-card-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.owner-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.company-card-body {
    padding: 1.5rem;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.company-razao {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--primary-color);
}

.company-card-footer {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.access-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.access-btn {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.company-card:hover .access-btn {
    color: var(--primary-light);
}

.company-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
}

/* Dashboard Footer */
.dashboard-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.75rem;
    }
    
    .dashboard-title i {
        display: none;
    }
    
    .company-card-body {
        padding: 1rem;
    }
    
    .company-card-footer {
        padding: 0.75rem 1rem;
    }
}