* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #3B82F6;
    --secondary-color: #FF6600;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --accent-color: #8B5CF6;
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Auth Screen */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #0066CC 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    padding: 48px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header img {
    max-width: 200px !important;
    min-width: 150px;
    height: auto;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.logo {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.auth-form h2 {
    margin-bottom: 28px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--card-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 14px 0 rgba(0, 102, 204, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(0, 102, 204, 0.5);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-google {
    background: white;
    color: #4285F4;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 16px;
}

.btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

/* Dashboard */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    text-align: center;
}

.sidebar-header img {
    max-width: 120px !important;
    min-width: 80px;
    height: auto;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.sidebar-header .logo {
    font-size: 28px;
    margin: 0;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.nav-item:hover {
    background: rgba(0, 102, 204, 0.08);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item:hover::before {
    height: 60%;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active::before {
    height: 100%;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

/* Garantir que botão Sair tenha cor correta */
.sidebar-footer .btn-secondary.btn-small {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 100%;
    font-weight: 600;
}

.sidebar-footer .btn-secondary.btn-small:hover {
    background: #E55A00;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.user-email {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
    background: var(--bg-color);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

.main-header img {
    max-width: 100px !important;
    min-width: 70px;
    height: auto;
    object-fit: contain;
}

.main-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card-primary {
    border-left: 4px solid var(--primary-color);
}

.stat-card-success {
    border-left: 4px solid var(--success-color);
}

.stat-card-info {
    border-left: 4px solid var(--primary-light);
}

.stat-card-warning {
    border-left: 4px solid var(--warning-color);
}

.stat-icon-wrapper {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-card-primary .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
}

.stat-card-success .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
}

.stat-card-info .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
}

.stat-card-warning .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.change-icon {
    font-size: 14px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: 48px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Status Chart */
.status-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(0, 102, 204, 0.05);
    transform: translateX(4px);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.email-verification-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

/* Banner de Dados Incompletos - Design Moderno */
.incomplete-data-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fb923c;
    border-left: 5px solid #f97316;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15), 0 2px 8px rgba(249, 115, 22, 0.1);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
}

.incomplete-data-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    position: relative;
}

.banner-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.banner-icon-wrapper i[data-lucide] {
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2.5;
}

.banner-text {
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #9a3412;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.banner-description {
    font-size: 14px;
    line-height: 1.5;
    color: #7c2d12;
    margin: 0;
}

.banner-description strong {
    color: #9a3412;
    font-weight: 600;
}

.banner-link {
    color: #ea580c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: inline-block;
}

.banner-link:hover {
    color: #c2410c;
    border-bottom-color: #c2410c;
}

.banner-close-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #9a3412;
}

.banner-close-btn:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    transform: scale(1.05);
}

.banner-close-btn:active {
    transform: scale(0.95);
}

.banner-close-btn i[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Responsividade para o banner */
@media (max-width: 768px) {
    .banner-content {
        flex-wrap: wrap;
        gap: 16px;
        padding: 18px 20px;
    }
    
    .banner-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .banner-icon-wrapper i[data-lucide] {
        width: 20px;
        height: 20px;
    }
    
    .banner-title {
        font-size: 15px;
    }
    
    .banner-description {
        font-size: 13px;
    }
    
    .banner-close-btn {
        position: absolute;
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .incomplete-data-banner {
        border-radius: 12px;
        margin-bottom: 24px;
    }
    
    .banner-content {
        padding: 16px;
    }
    
    .banner-text {
        padding-right: 44px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-verification-banner strong {
    color: #856404;
    display: block;
    margin-bottom: 4px;
}

.email-verification-banner p {
    color: #856404;
    margin: 0;
}

.email-verification-banner button {
    white-space: nowrap;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.status-badge.confirmed {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.status-badge.in_transit {
    background: rgba(0, 102, 204, 0.15);
    color: var(--primary-color);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

/* Recent List */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.receipt-item:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.receipt-info {
    flex: 1;
}

.receipt-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.receipt-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.receipt-actions {
    display: flex;
    gap: 8px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    font-size: 32px;
}

.action-label {
    font-size: 14px;
    font-weight: 600;
}

.solicitacoes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.solicitacao-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.solicitacao-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.partner-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-stat-item {
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.partner-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.partner-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.dashboard-card {
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

.card-action-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.card-action-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.card-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Settings Page */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card {
    animation: fadeIn 0.4s ease;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.setting-info {
    flex: 1;
}

.setting-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.setting-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.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: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.recent-item {
    padding: 18px;
    background: var(--bg-color);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.recent-item:hover {
    background: rgba(0, 102, 204, 0.05);
    transform: translateX(4px);
}

/* Fretes List */
.fretes-list {
    display: grid;
    gap: 20px;
}

.frete-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.frete-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.frete-card:hover::before {
    transform: scaleY(1);
}

.frete-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.frete-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.frete-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.frete-info p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.frete-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Filters */
.filters {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-select,
.search-input {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.search-input {
    flex: 1;
    max-width: 400px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.modal-header h2 {
    font-size: 26px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-content form {
    padding: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 28px;
}

.modal-actions .btn {
    width: auto;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Sections */
.form-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid var(--border-color);
}

.form-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Chat Styles */
.chat-modal {
    max-width: 600px;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.message.sent {
    align-items: flex-end;
}

.message.received {
    align-items: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.8;
    font-weight: 500;
}

.message-text {
    word-wrap: break-word;
    line-height: 1.5;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.chat-input-container input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.conversation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.conversation-item:hover {
    background: var(--bg-color);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.conversation-info strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.conversation-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* Formulário Dinâmico */
.form-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.form-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.calculated-info {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.info-card h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-row strong {
    color: var(--primary-color);
    font-size: 16px;
}

/* Responsive */
/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .partner-header {
        flex-direction: column;
        text-align: center;
    }

    .partner-actions {
        flex-direction: column;
    }

    .partner-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 12px;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle i[data-lucide] {
        width: 24px;
        height: 24px;
        color: white;
        stroke-width: 2.5;
    }

    .mobile-menu-toggle:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
        box-shadow: var(--shadow-xl);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    /* Botão de fechar do sidebar - apenas no mobile */
    .sidebar-close-btn {
        display: flex !important;
    }
    
    /* Garantir que botão Sair tenha cor correta no mobile */
    .sidebar-footer .btn-secondary,
    .sidebar-footer .btn-secondary.btn-small {
        background: var(--secondary-color) !important;
        color: white !important;
        border: none !important;
        font-weight: 600;
    }
    
    .sidebar-footer .btn-secondary:hover,
    .sidebar-footer .btn-secondary.btn-small:hover {
        background: #E55A00 !important;
        color: white !important;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }
    
    /* Garantir overlay funcione */
    .sidebar-overlay {
        display: block !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    /* Garantir que botão Sair tenha cor correta no mobile */
    .sidebar-footer .btn-secondary.btn-small {
        background: var(--secondary-color) !important;
        color: white !important;
        border: none !important;
    }
    
    .sidebar-footer .btn-secondary.btn-small:hover {
        background: #E55A00 !important;
        color: white !important;
    }
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.05);
        border: 2px solid var(--border-color);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 101;
    }
    
    .sidebar-close-btn:hover {
        background: var(--danger-color);
        border-color: var(--danger-color);
        transform: scale(1.05);
    }
    
    .sidebar-close-btn:active {
        transform: scale(0.95);
    }
    
    .sidebar-close-btn i[data-lucide] {
        width: 20px;
        height: 20px;
        color: var(--text-primary);
        stroke-width: 2.5;
        transition: color 0.2s ease;
    }
    
    .sidebar-close-btn:hover i[data-lucide] {
        color: white;
    }

    /* Sidebar Mobile */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-xl);
        z-index: 100;
    }

    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Mostrar botão de fechar no mobile */
    .sidebar-close-btn {
        display: flex !important;
    }
    
    /* Garantir que botão Sair tenha cor correta no mobile */
    .sidebar-footer .btn-secondary.btn-small {
        background: var(--secondary-color) !important;
        color: white !important;
        border: none !important;
    }
    
    .sidebar-footer .btn-secondary.btn-small:hover {
        background: #E55A00 !important;
        color: white !important;
    }
    
    /* Garantir que menu toggle tenha cor correta no mobile */
    .mobile-menu-toggle {
        background: var(--primary-color) !important;
    }
    
    .mobile-menu-toggle i[data-lucide] {
        color: white !important;
    }

    /* Overlay para fechar menu mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        backdrop-filter: blur(2px);
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px;
        padding-top: 80px;
    }

    /* Auth Mobile */
    .auth-box {
        padding: 32px 24px;
        margin: 20px;
    }

    .auth-header .logo {
        font-size: 32px;
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 36px;
    }

    .stat-value {
        font-size: 24px;
    }

    /* Cards Mobile */
    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Forms Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .filters {
        flex-direction: column;
        gap: 12px;
    }

    .filter-select,
    .search-input {
        width: 100%;
        max-width: 100%;
    }

    /* Fretes Mobile */
    .frete-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .frete-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* Modal Mobile */
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-content form {
        padding: 20px;
    }

    .chat-modal {
        width: 100%;
        height: 100vh;
        max-width: none;
        border-radius: 0;
    }

    /* Main Header Mobile */
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .main-header h1 {
        font-size: 24px;
    }

    /* Sidebar Mobile Adjustments */
    .sidebar-header {
        padding: 20px 16px;
    }

    .sidebar-header .logo {
        font-size: 24px;
    }

    .nav-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .sidebar-footer {
        padding: 16px;
    }

    .user-info {
        padding: 10px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Buttons Mobile */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

    /* Status Badges Mobile */
    .status-badge {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 16px 12px;
        padding-top: 70px;
    }

    .auth-box {
        padding: 24px 20px;
    }

    .hero-title,
    .section-title {
        font-size: 24px;
    }

    .hero-subtitle,
    .section-subtitle {
        font-size: 14px;
    }

    .stat-card {
        padding: 16px;
    }

    .card {
        padding: 16px;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-header,
    .modal-content form {
        padding: 16px;
    }
}

/* Autocomplete de Endereços */
.address-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.address-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
    list-style: none;
    padding: 0;
}

.address-autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    font-size: 14px;
    color: var(--text-primary);
}

.address-autocomplete-item:last-child {
    border-bottom: none;
}

.address-autocomplete-item:hover,
.address-autocomplete-item.selected {
    background-color: #f0f9ff;
    color: var(--primary-color);
}

.address-autocomplete-item:active {
    background-color: #e0f2fe;
}

/* Botão de Geolocalização */
.geolocation-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
    z-index: 10;
}

.geolocation-btn:hover {
    background: var(--primary-dark);
}

.geolocation-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group:has(input[id*="Origin"]),
.form-group:has(input[id*="Destination"]) {
    position: relative;
}

/* Rascunho Salvo */
.draft-saved-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.draft-saved-indicator.show {
    display: flex;
}

/* Validação Visual em Tempo Real */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.field-error-message {
    display: block;
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 4px;
    padding-left: 4px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preview de Mapa */
.map-preview {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 12px;
    display: none;
    overflow: hidden;
}

.map-preview.show {
    display: block;
}

.map-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Tooltips Contextuais */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 6px;
    z-index: 1000;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
}

.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
}

/* Histórico de Endereços no Autocomplete */
.address-autocomplete-item small {
    display: block;
    margin-top: 2px;
}

/* ============================================
   MODO ESCURO
   ============================================ */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.dark-mode {
    --bg-color: #0F172A;
    --card-bg: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --border-color: #334155;
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --accent-color: #8B5CF6;
}

.dark-mode body {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.dark-mode .card,
.dark-mode .stat-card,
.dark-mode .modal-content,
.dark-mode .auth-box {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode input:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--card-bg);
}

.dark-mode .btn-primary {
    background: var(--primary-color);
    color: white;
}

.dark-mode .btn-primary:hover {
    background: var(--primary-dark);
}

.dark-mode .btn-secondary {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .btn-secondary:hover {
    background: var(--border-color);
}

.dark-mode .sidebar {
    background-color: var(--card-bg);
    border-right-color: var(--border-color);
}

.dark-mode .nav-item {
    color: var(--text-primary);
}

.dark-mode .nav-item:hover,
.dark-mode .nav-item.active {
    background-color: var(--border-color);
    color: var(--primary-color);
}

.dark-mode .address-autocomplete-list {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-mode .address-autocomplete-item {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

.dark-mode .address-autocomplete-item:hover,
.dark-mode .address-autocomplete-item.selected {
    background-color: var(--border-color);
    color: var(--primary-color);
}

.dark-mode .form-hint {
    color: var(--text-secondary);
}

.dark-mode .stat-card {
    background: var(--card-bg);
}

.dark-mode .stat-value {
    color: var(--text-primary);
}

.dark-mode .stat-label {
    color: var(--text-secondary);
}

.dark-mode .modal {
    background-color: rgba(0, 0, 0, 0.8);
}

.dark-mode .dark-mode-toggle {
    background: var(--card-bg);
    color: var(--text-primary);
}
