/* VolatusPay Dashboard Custom Styles */

/* REMOVE SCROLLBARS DESNECESSÁRIAS GLOBALMENTE */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Manter scroll funcional mas invisível */
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Remove scrollbars de todos elementos */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    line-height: 1.6;
    color: #2d3748;
}

/* Força cor do texto em elementos importantes */
h1, h2, h3, h4, h5, h6 {
    color: #1a202c !important;
    font-weight: 600;
}

p, span, div {
    color: #2d3748 !important;
}

.text-muted {
    color: #4a5568 !important;
}

/* Correção específica para botões */
.btn {
    color: #1a202c !important;
}

.btn-primary {
    background-color: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
}

/* Força contraste em todas as páginas */
.container, .container-fluid {
    color: #1a202c !important;
}

.card-body * {
    color: #2d3748 !important;
}

.nav-link {
    color: #2d3748 !important;
}

.nav-link.active {
    color: #667eea !important;
    font-weight: 600;
    background-color: #f8f9fa !important;
}

/* SINO DE NOTIFICAÇÕES NO HEADER */
.header-logo {
    margin-left: 1rem !important;
}

.notification-bell-wrapper .btn {
    position: relative;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem !important;
}

.notification-bell-wrapper .btn:hover {
    background-color: rgba(0,0,0,0.05) !important;
    border-radius: 50% !important;
}

.notification-dropdown {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.notification-dropdown .dropdown-item:hover {
    background-color: rgba(0,0,0,0.03);
}

.notification-dropdown .dropdown-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

/* Estilos específicos para itens de notificação */
.notification-item {
    position: relative;
    padding: 12px 16px !important;
    min-height: 60px;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 2px;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.notification-unread-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background-color: #8b5cf6;
    border-radius: 50%;
    border: 2px solid white;
}

.notification-item.unread {
    background-color: rgba(139, 92, 246, 0.05);
    border-left: 3px solid #8b5cf6;
}

/* Otimização de performance - transições mais rápidas */
* {
    transition-duration: 0.15s !important;
}

/* Navegação instantânea */
.nav-link, .sidebar-menu a, .btn {
    transition: all 0.1s ease !important;
}

/* Hover states instantâneos */
.btn:hover, .dropdown-item:hover, .nav-link:hover {
    transition: all 0.05s ease !important;
}

/* Modal e dropdown aparecem instantaneamente */
.modal, .dropdown-menu {
    transition: opacity 0.1s ease !important;
}

/* Flash animation otimizada */
@keyframes flash-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.flash-animation {
    animation: flash-animation 0.3s ease-in-out;
}

/* Loading spinners mais rápidos */
.spinner, .spinner-border {
    animation-duration: 0.5s !important;
}

/* FORÇA BOOTSTRAP A MOSTRAR TEXTOS EM CORES ESCURAS */
* {
    color: #2d3748 !important;
}

/* Exceções para textos que devem ser brancos */
.btn-primary *, 
.btn-success *,
.btn-danger *,
.btn-warning *,
.btn-info *,
.sidebar-menu a.active,
.sidebar-menu a.active *,
.user-avatar,
.user-avatar *,
.badge *,
.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
    color: white !important;
}

/* Botões outline mantêm cor escura */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info {
    color: #2d3748 !important;
    border-color: #2d3748 !important;
}

/* Links de navegação Bootstrap */
.navbar-nav .nav-link {
    color: #2d3748 !important;
}

/* Inputs e forms */
.form-control {
    color: #2d3748 !important;
}

/* Textos específicos do Bootstrap que estavam invisíveis */
.text-white { color: white !important; }
.text-dark { color: #1a202c !important; }
.text-secondary { color: #4a5568 !important; }
.text-muted { color: #6b7280 !important; }

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.brand-logo i {
    font-size: 2rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.auth-body {
    padding: 0 2rem 2rem;
}

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

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #dee2e6;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.auth-footer {
    background-color: var(--light-color);
    padding: 1.5rem 2rem;
}

.features-highlight {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.features-highlight .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}





/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    border-right: 1px solid rgba(118, 75, 162, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(118, 75, 162, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #764ba2;
    font-weight: 700;
}

.brand i {
    font-size: 1.5rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sidebar-content::-webkit-scrollbar {
    display: none;
}

.user-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(118, 75, 162, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

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

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0.25rem 1rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #8B5CF6;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
    background: rgba(139, 92, 246, 0.08);
    margin: 2px 0;
}

.sidebar-menu a:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.sidebar-menu a.active {
    background: rgba(139, 92, 246, 0.12);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #8B5CF6;
    border-radius: 0 3px 3px 0;
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
    color: #8B5CF6 !important;
}

.sidebar-menu a span {
    color: #8B5CF6 !important;
}

/* Força cor roxa para todos os ícones do menu lateral */
nav#sidebar .sidebar-menu li a i {
    color: #8B5CF6 !important;
}

nav#sidebar .sidebar-menu li a span {
    color: #8B5CF6 !important;
}

/* Força cor roxa em todos os elementos do menu */
.sidebar .sidebar-menu a, 
.sidebar .sidebar-menu a i, 
.sidebar .sidebar-menu a span {
    color: #8B5CF6 !important;
}

/* Garantir que item ativo também mantenha cor roxa */
.sidebar-menu a.active i,
.sidebar-menu a.active span {
    color: #8B5CF6 !important;
}

.badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: auto;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(118, 75, 162, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #8B5CF6;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    width: 100%;
    border: 1px solid transparent;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(185, 28, 28, 0.08));
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.logout-btn i {
    color: #8B5CF6 !important;
}

.logout-btn span {
    color: #8B5CF6 !important;
}

/* Força cor roxa no botão de sair */
.sidebar-footer .logout-btn,
.sidebar-footer .logout-btn i,
.sidebar-footer .logout-btn span {
    color: #8B5CF6 !important;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.sidebar-toggle:hover {
    background-color: var(--light-color);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 1rem;
    margin-left: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sino de notificações no header - FORÇA EXIBIÇÃO */
.notification-bell-wrapper {
    position: relative !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.notification-bell-wrapper button {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    color: #333 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.notification-bell-wrapper button:hover {
    background: rgba(0,0,0,0.05) !important;
    border-radius: 8px;
}

.notification-bell-wrapper .fas.fa-bell {
    color: #333 !important;
    font-size: 1.2rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.content-area {
    flex: 1;
    padding: 2rem;
}

/* Dashboard Components */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--box-shadow-lg);
}

.welcome-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    opacity: 0.9;
    margin: 0;
}

.welcome-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.welcome-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.metric-icon.bg-primary { background-color: var(--primary-color); }
.metric-icon.bg-success { background-color: var(--success-color); }
.metric-icon.bg-info { background-color: var(--info-color); }
.metric-icon.bg-warning { background-color: var(--warning-color); }

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-today { background-color: var(--info-color); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.badge-success { background-color: var(--success-color); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.badge-info { background-color: var(--info-color); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.badge-warning { background-color: var(--warning-color); color: #1a1a1a; font-weight: 600; text-shadow: none; }

/* Cards */
.card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.card-title {
    color: #2d3748 !important;
}

.card-text {
    color: #4a5568 !important;
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    background: var(--light-color);
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.payment-method-details {
    flex: 1;
}

.payment-method-name {
    font-weight: 600;
    color: var(--dark-color);
}

.payment-method-fee {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.payment-method-status .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: white;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
}

.transaction-id {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.customer-info {
    min-width: 200px;
}

.customer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.customer-email {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.amount {
    font-weight: 600;
    font-size: 1rem;
}

.badge-payment-pix { background-color: var(--success-color); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.badge-payment-card { background-color: var(--primary-color); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.badge-payment-boleto { background-color: var(--warning-color); color: #1a1a1a; font-weight: 600; text-shadow: none; }

.badge-status-completed { background-color: var(--success-color); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.badge-status-pending { background-color: var(--warning-color); color: #1a1a1a; font-weight: 600; text-shadow: none; }
.badge-status-failed { background-color: var(--danger-color); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.badge-status-cancelled { background-color: var(--secondary-color); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.transaction-date {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.transaction-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* PIX Section */
.pix-hero {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.pix-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.pix-hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pix-hero-subtitle {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.pix-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pix-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.pix-hero-stats {
    display: flex;
    gap: 2rem;
}

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

.pix-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pix-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.pix-fee-info .alert {
    border: none;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.pix-keys-list {
    max-height: 300px;
    overflow-y: auto;
}

.pix-key-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    background: var(--light-color);
}

.pix-key-info {
    flex: 1;
}

.pix-key-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.pix-key-type-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

.pix-key-value {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.pix-key-actions {
    display: flex;
    gap: 0.5rem;
}

/* Analytics */
.analytics-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--box-shadow);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.kpi-content {
    flex: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.kpi-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.revenue-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.revenue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.revenue-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.revenue-method-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.revenue-method-name {
    font-weight: 600;
    color: var(--dark-color);
}

.revenue-amount {
    text-align: right;
}

.revenue-value {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.125rem;
}

/* Settings */
.payment-methods-config {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-method-config {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.payment-method-header {
    background: var(--light-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-method-settings {
    padding: 1.5rem;
    background: white;
}

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

.setting-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.setting-value {
    font-weight: 600;
    color: var(--dark-color);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.2s ease;
}

.quick-action:hover {
    background-color: #e9ecef;
    color: var(--dark-color);
    text-decoration: none;
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-action-subtitle {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.quick-action-arrow {
    color: var(--secondary-color);
}

.account-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    width: 35px;
    height: 35px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.status-title {
    font-weight: 600;
    color: var(--dark-color);
}

.status-subtitle {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.support-options {
    text-align: center;
}

.support-hours {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state-subtitle {
    margin-bottom: 1.5rem;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .pix-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pix-features {
        justify-content: center;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-card {
        margin: 1rem;
        max-width: none;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}

/* Custom Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Loading Spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

/* Print Styles */
@media print {
    .sidebar,
    .top-header,
    .btn,
    .quick-action {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* ESTILOS COMPACTOS PARA TOP 5 PAÍSES */

/* Card principal compacto */
.region-card-compact {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
    transition: all 0.3s ease;
    height: auto;
    max-height: 480px;
    overflow: hidden;
}

.region-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}

/* Header compacto */
.card-header-compact {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 12px 16px;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.card-title-compact {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.total-indicator-compact {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 500;
}

/* Body compacto */
.card-body-compact {
    padding: 12px 16px;
    background: white;
}

.countries-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Items de país compactos */
.country-item-compact {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid rgba(139, 92, 246, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.country-item-compact:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: rgba(139, 92, 246, 0.15);
    transform: translateX(2px);
}

.country-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.country-flag-compact {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.country-data-compact {
    flex: 1;
    min-width: 0;
}

.country-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    gap: 8px;
}

.country-name-compact {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-amount-compact {
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
    flex-shrink: 0;
}

.country-details-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.payment-method-compact {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
}

.country-sales-compact {
    font-size: 0.7rem;
    color: #9ca3af;
    text-align: right;
    flex-shrink: 0;
}

/* Barras de progresso compactas */
.country-bar-compact {
    height: 3px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
    position: relative;
}

.country-fill-compact {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
    position: relative;
}

.country-fill-compact.br-flag {
    background: linear-gradient(90deg, #009c3b 0%, #ffdf00 50%, #002776 100%);
}

.country-fill-compact.us-flag {
    background: linear-gradient(90deg, #b22234 0%, #ffffff 50%, #3c3b6e 100%);
}

.country-fill-compact.fr-flag {
    background: linear-gradient(90deg, #002395 0%, #ffffff 50%, #ed2939 100%);
}

.country-fill-compact.mx-flag {
    background: linear-gradient(90deg, #006847 0%, #ffffff 50%, #ce1126 100%);
}

.country-fill-compact.ar-flag {
    background: linear-gradient(90deg, #74acdf 0%, #ffffff 50%, #74acdf 100%);
}

/* Legenda compacta */
.countries-legend-compact {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.legend-row-compact {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.legend-item-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #6b7280;
}

.legend-dot-compact {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot-compact.digital {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.legend-dot-compact.physical {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.legend-dot-compact.subscription {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.legend-label-compact {
    font-weight: 500;
}

/* Responsividade para móveis */
@media (max-width: 768px) {
    .region-card-compact {
        max-height: none;
        margin-bottom: 20px;
    }
    
    .countries-list-compact {
        gap: 6px;
    }
    
    .country-item-compact {
        padding: 8px 10px;
    }
    
    .country-flag-compact {
        font-size: 1rem;
        width: 20px;
    }
    
    .country-name-compact,
    .country-amount-compact {
        font-size: 0.8rem;
    }
    
    .payment-method-compact,
    .country-sales-compact {
        font-size: 0.65rem;
    }
}

/* MOBILE HEADER STYLES - SISTEMA NOTIFICAÇÕES */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(15, 15, 35, 0.98) !important;
    backdrop-filter: blur(15px);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    height: 60px;
}

.mobile-notification-bell .btn {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: #8B5CF6 !important;
    transition: all 0.2s ease;
    padding: 8px 10px !important;
}

.mobile-notification-bell .btn:hover {
    background: rgba(139, 92, 246, 0.25) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    transform: translateY(-1px);
}

/* DESKTOP - OCULTAR HEADER MOBILE */
@media (min-width: 992px) {
    .mobile-header {
        display: none !important;
    }
}

/* MOBILE - PADDING ADJUSTMENT */
@media (max-width: 991px) {
    .content-area {
        padding-top: 80px !important;
    }
}
