:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --gradient-start: #4f46e5;
    --gradient-end: #9333ea;
    --background-color: #f3f4f6;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--background-color);
    color: #1f2937;
    min-height: 100vh;
}

.app-body {
    min-height: 100vh;
    background: var(--background-color);
}

.auth-body {
    min-height: 100vh;
    background: var(--background-color);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/*.login-section {
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 45%),
                radial-gradient(circle at bottom right, rgba(147, 51, 234, 0.15), transparent 40%);
    padding: 2rem 0;
}*/

.login-card {
    border-radius: 1.5rem;
}

.login-logo {
    max-height: 48px;
    object-fit: contain;
}

.login-card {
    border-radius: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.login-logo {
    max-width: 180px;
    max-height: 72px;
    object-fit: contain;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.form-control {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 0.9rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.card {
    border-radius: 1.5rem;
}

label.form-label {
    color: #4b5563;
}

.text-muted {
    color: #6b7280 !important;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
}

.brand-logo {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 1.125rem;
    font-weight: 600;
}

.app-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.app-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.app-nav .nav-link.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--background-color);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}

.menu-icon span {
    width: 22px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 999px;
    display: block;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #eef2ff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.user-chip .avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-chip .details {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-chip .name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
}

.user-chip .role {
    font-size: 0.75rem;
    color: #6b7280;
}

.app-main {
    flex: 1;
    overflow-y: auto;
}

.app-footer {
    padding: 1rem 2rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

.dashboard-section {
    display: block;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-card .card-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 600;
}

.dashboard-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-card.profit-positive {
    border-left: 4px solid #16a34a;
}

.dashboard-card.profit-negative {
    border-left: 4px solid #dc2626;
}

.progress-stats .progress {
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
}

.progress-stats .progress-bar {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 999px;
}

.empty-state {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.settings-section {
    display: block;
}

.login-preview {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid #e2e8f0;
}

.preview-brand {
    text-align: center;
}

.preview-logo {
    max-height: 64px;
    object-fit: contain;
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
}

.preview-content {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1199.98px) {
    .app-sidebar {
        width: 240px;
    }
}

@media (max-width: 991.98px) {
    .gradient-bg {
        text-align: center;
    }

    .app-nav .nav-link {
        color: #1f2937;
        background: rgba(79, 70, 229, 0.08);
    }

    .app-nav .nav-link.active {
        background: var(--primary-color);
        color: #ffffff;
    }

    .app-header {
        padding: 1rem 1.5rem;
    }

    .dashboard-card {
        padding: 1.25rem;
    }

    .login-card {
        border-radius: 1.5rem;
    }

    .login-preview {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .user-chip {
        display: none;
    }
}
