﻿/* === PALETA DE CORES UNIFICADA === */
:root {
    /* Cores da paleta principal */
    --primary-color: #4E7CD2;
    --primary-hover: #359AD1;
    --secondary-color: #665ED2;
    --accent-color: #843AD3;
/*    --dark-accent: #001A63;*/
    --gradient-start: #359AD1;
    --gradient-end: #843AD3;
    /* Cores de background e texto */
    --background-light: #f5f7fa;
    --background-white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    /* Cores de estado */
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    /* Efeitos visuais */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
    --focus-shadow: 0 0 0 0.25rem rgba(78, 124, 210, 0.25);
    /* Fontes */
    --main-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --code-font-family: 'Courier New', Monaco, 'Cascadia Code', monospace;
    /* Breakpoints */
    --mobile-breakpoint: 767px;
    --tablet-breakpoint: 991px;
}

/* === MODO ESCURO === */
/*@media (prefers-color-scheme: dark) {
    :root {
        --background-light: #1a202c;
        --background-white: #2d3748;
        --text-primary: #f7fafc;
        --text-secondary: #a0aec0;
        --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}*/

/* === ESTILOS BASE === */
html, body {
    font-family: var(--main-font-family);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

body {
    background-color: var(--background-light);
    color: var(--text-primary);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--primary-color);
    transition: color var(--transition-speed);
    text-decoration: none;
}

    a:hover, .btn-link:hover {
        color: var(--primary-hover);
    }

code {
    color: #c02d76;
    font-family: var(--code-font-family);
    padding: 0.125rem 0.25rem;
    background-color: rgba(199, 37, 118, 0.1);
    border-radius: 3px;
    font-size: 0.875em;
}

.usuario-info {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-top: 2px;
}

/* === LAYOUT PRINCIPAL === */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%) !important;
    background-color: rgb(5, 39, 103) !important;
}

    /* === CORREÇÃO PARA TEXTOS DO MENU VISÍVEIS === */
    .sidebar .top-row {
        background: linear-gradient(135deg, #001A63 0%, #4E7CD2 100%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        height: 4rem !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 1rem !important;
    }

    .sidebar .navbar-brand {
        color: white !important;
        font-weight: bold !important;
        font-size: 1.2rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        text-decoration: none !important;
    }

    .sidebar .brand-icon {
        width: 32px !important;
        height: 32px !important;
        filter: brightness(1.2) !important;
    }

    .sidebar .nav-scrollable {
        height: calc(100vh - 4rem) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 1rem 0 2rem 0 !important;
        display: block !important;
        background: transparent !important;
    }

    .sidebar .nav-section {
        margin-bottom: 2rem !important;
    }

    .sidebar .section-title {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        opacity: 0.8 !important;
    }

    .sidebar .nav-item {
        margin-bottom: 0.25rem !important;
    }

    .sidebar .nav-link,
    .sidebar .modern-nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 0 25px 25px 0 !important;
        height: 3rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding: 0 1rem 0 1.5rem !important;
        margin-right: 1rem !important;
        text-decoration: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        background: transparent !important;
    }

        .sidebar .nav-link:hover,
        .sidebar .modern-nav-link:hover {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
            color: white !important;
            transform: translateX(4px) !important;
        }

        .sidebar .nav-link.active,
        .sidebar .modern-nav-link.active {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
            color: white !important;
            font-weight: 600 !important;
            transform: translateX(4px) !important;
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15) !important;
        }

    .sidebar .nav-icon {
        font-size: 1.1rem !important;
        width: 1.5rem !important;
        text-align: center !important;
        transition: transform 0.3s ease !important;
        color: inherit !important;
    }

    .sidebar .nav-text {
        font-size: 0.6rem !important;
        font-weight: 300 !important;
        flex: 1 !important;
        color: inherit !important;
    }

    .sidebar .nav-user-section {
        position: absolute !important;
        bottom: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
    }

    .sidebar .user-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .sidebar .user-avatar {
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.2rem !important;
        color: white !important;
    }

    .sidebar .user-name,
    .sidebar .user-role {
        color: white !important;
    }

    .sidebar .user-name {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        margin-bottom: 2px !important;
    }

    .sidebar .user-role {
        font-size: 0.75rem !important;
        opacity: 0.8 !important;
    }

    /* === FORÇA VISIBILIDADE COMPLETA DO MENU === */
    .sidebar .nav-scrollable,
    .sidebar nav,
    .sidebar .nav-section,
    .sidebar .nav-item,
    .sidebar .nav-link,
    .sidebar .section-title,
    .sidebar .navbar-brand,
    .sidebar .user-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sidebar .nav-link {
        display: flex !important;
    }

/* === DESKTOP APENAS === */
@media (min-width: 769px) {
    .sidebar {
        background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%) !important;
        background-color: rgb(5, 39, 103) !important;
    }
}

/* === GARANTE QUE O CONTEÚDO PRINCIPAL FUNCIONE === */
.main-content,
.content,
.app-container,
.modern-dashboard {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modern-stats-grid,
.actions-grid,
.metrics-grid,
.recent-leads-modern {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modern-stat-card,
.action-card,
.metric-card,
.modern-lead-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* === FORÇA VISIBILIDADE COMPLETA DO MENU === */
.sidebar .nav-scrollable,
.sidebar nav,
.sidebar .nav-section,
.sidebar .nav-item,
.sidebar .nav-link,
.sidebar .section-title,
.sidebar .navbar-brand,
.sidebar .user-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sidebar .nav-text,
.sidebar span,
.sidebar a {
    color: white !important;
    font-size: 12px !important;
    font-weight: normal !important;
}

/* === CORREÇÃO PARA TEXTOS DO MENU VISÍVEIS === */
.sidebar * {
    color: white !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
}

    .sidebar .nav-link:hover {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    .sidebar .nav-link.active {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
    }

.sidebar .navbar-brand {
    color: white !important;
    font-weight: bold !important;
}

.sidebar .section-title {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
}

.sidebar .user-name,
.sidebar .user-role {
    color: white !important;
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
            text-decoration: underline;
        }

        .top-row ::deep a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

        .top-row ::deep a, .top-row ::deep .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth ::deep a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* === BOTÕES E CONTROLES === */
.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    height: 36px;
    transition: all 0.2s ease;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(78, 124, 210, 0.25);
    }

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: var(--focus-shadow);
    border-color: var(--primary-color);
}

/* === DASHBOARD MODERNO === */
.modern-dashboard {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.dashboard-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 0 0 24px 24px;
    padding: 2rem;
    margin: -2px -2px 2rem -2px;
    color: white;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dashboard-hero {
        margin: -1rem -1rem 2rem -1rem;
        padding: 3rem 2rem;
    }
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-opacity=".3"/><stop offset="100%" stop-opacity="0"/></radialGradient></defs><circle cx="10" cy="10" r="10" fill="url(%23a)"/><circle cx="30" cy="5" r="8" fill="url(%23a)"/><circle cx="60" cy="15" r="6" fill="url(%23a)"/><circle cx="80" cy="8" r="9" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 767px) {
    .hero-actions {
        align-self: stretch;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

    .hero-stat:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.15);
    }

    .hero-stat .stat-number {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .hero-stat .stat-label {
        font-size: 0.9rem;
        opacity: 0.8;
    }

/* === CARDS DE STATUS MODERNOS === */
.modern-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.modern-stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

    .modern-stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .modern-stat-card:hover::before {
        transform: scaleX(1);
    }

    .modern-stat-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    }

    .modern-stat-card.novo::before {
        background: linear-gradient(90deg, var(--primary-color), #359AD1);
    }

    .modern-stat-card.qualificado::before {
        background: linear-gradient(90deg, var(--warning-color), #f39c12);
    }

    .modern-stat-card.proposta::before {
        background: linear-gradient(90deg, var(--accent-color), #665ED2);
    }

    .modern-stat-card.fechado::before {
        background: linear-gradient(90deg, var(--success-color), #27ae60);
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(78, 124, 210, 0.1), rgba(78, 124, 210, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content {
    margin-bottom: 1.5rem;
}

.main-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

    .card-trend.positive {
        color: var(--success-color);
    }

    .card-trend.success {
        color: var(--success-color);
    }

    .card-trend.value {
        color: var(--accent-color);
        font-weight: 600;
    }

.trend-icon {
    font-size: 1rem;
}

.card-action {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.card-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .card-btn:hover {
        color: var(--primary-hover);
    }

        .card-btn:hover .btn-arrow {
            transform: translateX(4px);
        }

.btn-arrow {
    transition: transform 0.3s ease;
}

/* === MÉTRICAS AVANÇADAS === */
.modern-metrics-section,
.modern-actions-section,
.modern-recent-section {
    margin-bottom: 3rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.section-icon {
    font-size: 1.8rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .metric-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

.metric-visual {
    flex-shrink: 0;
}

.progress-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, var(--primary-color) calc(var(--progress, 75) * 3.6deg), #e2e8f0 calc(var(--progress, 75) * 3.6deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .progress-ring::before {
        content: '';
        width: 60px;
        height: 60px;
        background: white;
        border-radius: 50%;
        position: absolute;
    }

.progress-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.metric-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.metric-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

/* === AÇÕES RÁPIDAS === */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.action-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: all 0.4s ease;
    opacity: 0.1;
}

.action-card.capture .action-background {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.action-card.manage .action-background {
    background: linear-gradient(135deg, var(--warning-color), #f39c12);
}

.action-card.pipeline .action-background {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.action-card.export .action-background {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

    .action-card:hover .action-background {
        transform: translate(30%, -30%) scale(1.2);
        opacity: 0.15;
    }

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.action-card:hover::before {
    left: 100%;
}

.action-content {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.action-content h6 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.action-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.action-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--primary-color);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.action-card:hover .cta-arrow {
    transform: translateX(4px);
}

/* === AÇÕES RÁPIDAS - FORMATO ATUAL === */
.modern-actions-section {
    margin-bottom: 3rem;
}

    .modern-actions-section h3 {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 1.5rem;
    }

    .modern-actions-section .section-icon {
        font-size: 1.8rem;
    }

/* === AÇÕES RÁPIDAS - LISTA SIMPLES === */
.actions-simple-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.action-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .action-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .action-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--primary-color);
        transition: width 0.3s ease;
    }

    .action-item:hover::before {
        width: 100%;
        opacity: 0.05;
    }

    .action-item h4 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .action-item p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin: 0 0 1rem 0;
        line-height: 1.4;
    }

    .action-item .action-link {
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }

        .action-item .action-link:hover {
            color: var(--primary-hover);
            transform: translateX(4px);
        }

        .action-item .action-link::after {
            content: '→';
            transition: transform 0.3s ease;
        }

    .action-item:hover .action-link::after {
        transform: translateX(4px);
    }

    /* === VARIAÇÕES DE COR PARA AÇÕES === */
    .action-item.capture::before {
        background: var(--primary-color);
    }

    .action-item.manage::before {
        background: var(--warning-color);
    }

    .action-item.pipeline::before {
        background: var(--accent-color);
    }

    .action-item.export::before {
        background: var(--success-color);
    }

/* === ANIMAÇÕES === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(78, 124, 210, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* === SKELETON LOADING === */
.skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    height: 16px;
}

    .skeleton-text.small {
        height: 12px;
        width: 60%;
    }

    .skeleton-text.medium {
        height: 16px;
        width: 80%;
    }

    .skeleton-text.large {
        height: 24px;
        width: 70%;
    }

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === UTILITÁRIOS === */
.content {
    padding-top: 1.1rem;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2px;
}

@media (min-width: 768px) {
    .app-container {
        padding: 1rem;
    }
}

/* === BLAZOR ESPECÍFICO === */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success-color);
}

.invalid {
    outline: 1px solid var(--danger-color);
}

.validation-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI9MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* === ANIMAÇÕES DE LOADING === */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--primary-color);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* Botão Flutuante WhatsApp */
.whatsapp-fab {
    position: fixed !important;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    animation: whatsapp-pulse 3s infinite;
    transition: all 0.3s ease;
}

    .whatsapp-fab:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6) !important;
    }

@@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Ajustar posição do botão WhatsApp no mobile */
.whatsapp-fab {
    bottom: 70px !important;
    right: 15px !important;
}

.brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}