﻿:root {
    --sidebar-bg: #1a3c34; /* Verde Escuro Profissional */
    --sidebar-accent: #ffcc00; /* Amarelo Gema Vibrante */
    --body-bg: #fdfcf0; /* Creme Suave Acolhedor */
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    --success-soft: #e8f5e9;
    --danger-soft: #ffebee;
    --warning-soft: #fffde7;
    --gold-primary: #d4af37; /* Dourado Qualidade */
}

body {
    background: linear-gradient(180deg, #fdfcf0 0%, #ffffff 100%);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    color: #2d3436;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #19342b 0%, #1f4739 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(242, 169, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-wrapper::after {
    content: "";
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    z-index: 1;
}

.auth-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-header {
    padding: 3rem 2rem 1.5rem;
    text-align: center;
}

.auth-logo-container {
    display: flex;
    justify-content: center;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-body {
    padding: 0 2.5rem 2.5rem;
}

.auth-footer {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

.custom-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.custom-input:focus {
    border-color: #19342b;
    box-shadow: 0 0 0 4px rgba(25, 52, 43, 0.1);
}

.btn-success {
    background-color: #2d5a4e;
    border-color: #2d5a4e;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #142a22;
    border-color: #142a22;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.demo-accounts {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1 !important;
}

.demo-item {
    transition: all 0.2s ease;
}

.demo-item:hover {
    transform: scale(1.02);
    border-color: #19342b !important;
}

.trial-mobile-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f9f8e6 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
}

.trial-mobile-tag {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(25, 52, 43, 0.08);
    color: #19342b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trial-mobile-actions {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .trial-mobile-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .trial-mobile-actions {
        width: 100%;
    }

    .trial-mobile-actions .btn {
        width: 100%;
    }
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a3c34 0%, #2d5a4e 100%);
    color: #fff;
    position: relative;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar .brand {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sidebar .brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.35rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 204, 0, 0.15);
    color: var(--sidebar-accent);
    transform: translateX(6px);
    font-weight: 600;
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logout {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.14);
}

.sidebar-user {
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.sidebar-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 0.85rem 0;
}

.content-wrapper {
    flex: 1;
    padding: 1.5rem;
}

.topbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--card-shadow);
    border-radius: 1.2rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card,
.panel-card {
    border: 0;
    border-radius: 1.2rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.stat-card .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.bg-soft-success {
    background: var(--success-soft);
}

.bg-soft-danger {
    background: var(--danger-soft);
}

.bg-soft-warning {
    background: var(--warning-soft);
}

.table thead th {
    border-bottom-width: 1px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.badge-soft-success {
    background: #d8f5df;
    color: #135b25;
}

.badge-soft-danger {
    background: #fde2e5;
    color: #8b1f2c;
}

.badge-soft-warning {
    background: #fff0cc;
    color: #8a5a00;
}

.chart-card {
    min-height: 360px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidebar-main {
        min-height: auto;
    }

    .content-wrapper {
        padding: 1rem;
    }
}
