/**
 * PIX Webhook Manager - Estilos Principais
 * Design Ultra Moderno com Texturas Premium
 * @version 1.0.0
 */

/* ========================================
   VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ======================================== */

:root {
    /* Gradientes principais - Cores Pagadin */
    --primary-gradient: linear-gradient(135deg, #0EB670 0%, #0A8F56 100%);
    --secondary-gradient: linear-gradient(135deg, #1FD18B 0%, #0EB670 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --success-gradient: linear-gradient(135deg, #0EB670 0%, #0A8F56 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    --warning-gradient: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
    
    /* Cores sólidas - Tema Pagadin */
    --primary-color: #0EB670;
    --secondary-color: #0A8F56;
    --accent-color: #1FD18B;
    --success-color: #0EB670;
    --warning-color: #ffb700;
    --error-color: #ff6b6b;
    --info-color: #54a0ff;
    
    /* Cores neutras - Dark theme Pagadin */
    --dark: #1a1a1a;
    --light: #f7fafc;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    
    /* Texturas e efeitos - Ajustados para tema escuro */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.6);
    
    /* Animações */
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'Fira Code', 'SF Mono', Monaco, 'Inconsolata', 'Fira Mono', monospace;
    
    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========================================
   RESET E BASE
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ========================================
   BACKGROUND E TEXTURAS ANIMADAS
   ======================================== */

.premium-theme {
    background: #0a0a0a; /* Fundo escuro como Pagadin */
    min-height: 100vh;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at top left, rgba(14, 182, 112, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(10, 143, 86, 0.1) 0%, transparent 50%);
}

/* Textura de pontos */
.texture-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(14, 182, 112, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: drift 20s linear infinite;
}

/* Textura de ondas */
.texture-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 30c-5 0-10 5-10 10s5 10 10 10 10-5 10-10-5-10-10-10z' fill='%230EB670' fill-opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: waves 25s linear infinite;
}

/* Textura de grid */
.texture-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(14, 182, 112, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 182, 112, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Elementos flutuantes */
.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 15s ease-in-out infinite;
}

.floating-elements::before {
    width: 400px;
    height: 400px;
    background: rgba(14, 182, 112, 0.15);
    top: -200px;
    right: -100px;
}

.floating-elements::after {
    width: 300px;
    height: 300px;
    background: rgba(31, 209, 139, 0.15);
    bottom: -150px;
    left: -50px;
    animation-delay: -7.5s;
}

/* Partículas animadas */
.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(14, 182, 112, 0.2), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(10, 143, 86, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(31, 209, 139, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(14, 182, 112, 0.2), transparent);
    background-size: 200px 200px;
    animation: particles 20s linear infinite;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes drift {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(30px) translateY(30px); }
}

@keyframes waves {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(-100px) translateY(-100px) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

@keyframes particles {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-200px) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes slideIn {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ========================================
   COMPONENTES GLASS MORPHISM
   ======================================== */

.glass-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.glass-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15), 
        rgba(255, 255, 255, 0.08)
    );
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

/* ========================================
   HEADER PREMIUM
   ======================================== */

.header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    animation: slideIn 0.6s ease-out;
}

.logo-premium {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    background: var(--success-gradient);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.api-key-display {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.api-key-display:hover {
    background: rgba(255, 255, 255, 0.15);
}

.api-key-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-key-value {
    color: white;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* ========================================
   NAVEGAÇÃO PREMIUM
   ======================================== */

.nav-premium {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-sm);
    position: relative;
    margin-bottom: var(--spacing-xl);
    animation: slideIn 0.7s ease-out;
}

.nav-tab {
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 10;
    pointer-events: all;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: var(--radius-lg);
}

.nav-tab.active::before,
.nav-tab:hover::before {
    transform: scaleX(1);
}

.nav-tab.active,
.nav-tab:hover {
    color: white;
}

.tab-icon {
    font-size: 1.25rem;
}

.tab-text {
    font-size: 0.9375rem;
}

/* ========================================
   CONTENT AREA
   ======================================== */

.content-area {
    position: relative;
    z-index: 10;
    animation: slideIn 0.8s ease-out;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

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

/* ========================================
   CARDS PREMIUM
   ======================================== */

.premium-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    overflow: hidden;
    transition: var(--transition-base);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   ESTATÍSTICAS GRID
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: var(--transition-slow);
}

.stat-card:hover::after {
    transform: rotate(45deg) translateX(50px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-weight: 500;
}

.stat-trend {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
}

.trend-indicator {
    font-size: 1rem;
    font-weight: 700;
}

.trend-indicator.up {
    color: var(--success-color);
}

.trend-indicator.down {
    color: var(--error-color);
}

.trend-value {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   BOTÕES PREMIUM
   ======================================== */

.btn-premium {
    position: relative;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-xl);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    transition: left 0.6s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 1.25rem;
}

/* ========================================
   INPUTS FUTURISTAS
   ======================================== */

.input-futuristic {
    position: relative;
    margin: var(--spacing-lg) 0;
}

.input-futuristic input,
.input-futuristic textarea {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.input-futuristic input::placeholder,
.input-futuristic textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-futuristic input:focus,
.input-futuristic textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.input-futuristic label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
    pointer-events: none;
    background: transparent;
    padding: 0 var(--spacing-xs);
}

.input-futuristic input:focus + label,
.input-futuristic input:not(:placeholder-shown) + label,
.input-futuristic textarea:focus + label,
.input-futuristic textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 16px;
    font-size: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

/* ========================================
   TABELAS PREMIUM
   ======================================== */

.table-premium {
    overflow: hidden;
    margin: var(--spacing-xl) 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.data-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table tbody tr:hover td {
    color: white;
}

/* ========================================
   MODAL PREMIUM
   ======================================== */

.modal-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.modal-premium.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.25rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ========================================
   FORMULÁRIOS
   ======================================== */

.webhook-form {
    padding: var(--spacing-xl);
}

.form-section {
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* Títulos específicos */
.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white !important;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.title-icon {
    font-size: 1.5rem;
}

/* ========================================
   FILTROS DE PRODUTO (FEATURE PRINCIPAL)
   ======================================== */

.filter-section-premium {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.filter-option {
    position: relative;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.filter-option.glass-card:has(input:checked) {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.option-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.option-content {
    text-align: center;
}

.option-title {
    color: white;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.option-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

/* ========================================
   EXEMPLOS DE FILTROS
   ======================================== */

.filter-examples {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
}

.filter-examples h5 {
    color: white;
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.examples-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.example-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.example-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 500;
}

.example-item code {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* ========================================
   EVENTOS GRID
   ======================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.event-card {
    position: relative;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.event-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.event-card label {
    display: block;
    cursor: pointer;
    text-align: center;
}

.event-card:has(input:checked) {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.event-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.event-name {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.event-desc {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

/* ========================================
   BADGES E STATUS
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.badge-error {
    background: var(--danger-gradient);
    color: white;
}

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

.badge-info {
    background: linear-gradient(135deg, #54a0ff, #48dbfb);
    color: white;
}

/* ========================================
   LOADING E SPINNERS
   ======================================== */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.shimmer-effect {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .filter-mode-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: var(--spacing-md);
    }
    
    .header-premium {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .user-section {
        flex-direction: column;
    }
    
    .nav-premium {
        flex-wrap: wrap;
    }
    
    .nav-tab {
        flex: 1 1 calc(50% - var(--spacing-sm));
        min-width: 140px;
    }
    
    .tab-text {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: var(--spacing-sm);
    }
    
    .modal-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-premium {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { 
    color: rgba(255, 255, 255, 0.5) !important; 
}

.text-success { 
    color: #0EB670 !important; 
}

.text-warning { 
    color: #ffb700 !important; 
}

.text-error { 
    color: #ff6b6b !important; 
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Mini tabelas do dashboard */
.mini-table {
    width: 100%;
    font-size: 0.875rem;
}

.mini-table th {
    padding: var(--spacing-sm);
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-table td {
    padding: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ========================================
   ESTILOS PARA CONFIGURAÇÃO DE GATEWAY
   ======================================== */

/* Status do Gateway */
.gateway-status-container {
    margin-bottom: 1.5rem;
}

.gateway-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gateway-status.status-success {
    background: linear-gradient(135deg, rgba(14, 182, 112, 0.1) 0%, rgba(10, 143, 86, 0.1) 100%);
    border: 1px solid rgba(14, 182, 112, 0.2);
    color: #0EB670;
}

.gateway-status.status-warning {
    background: linear-gradient(135deg, rgba(255, 183, 0, 0.1) 0%, rgba(255, 159, 243, 0.1) 100%);
    border: 1px solid rgba(255, 183, 0, 0.2);
    color: #ffb700;
}

.gateway-status.status-error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 82, 82, 0.1) 100%);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.gateway-status.status-loading {
    background: linear-gradient(135deg, rgba(84, 160, 255, 0.1) 0%, rgba(84, 160, 255, 0.1) 100%);
    border: 1px solid rgba(84, 160, 255, 0.2);
    color: #54a0ff;
}

.status-icon {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Seletor de Gateway */
.gateway-selector {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.9rem;
}

.gateway-options {
    display: grid;
    gap: 1rem;
}

.gateway-option {
    position: relative;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gateway-option:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.gateway-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(14, 182, 112, 0.1) 0%, rgba(10, 143, 86, 0.1) 100%);
}

.gateway-option.selected::before {
    content: "✓";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.gateway-option-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.gateway-option-icon {
    font-size: 1.5rem;
}

.gateway-option-title {
    font-weight: 600;
    color: var(--gray-200);
    font-size: 1rem;
}

.gateway-option-description {
    color: var(--gray-400);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Formulário de Configuração */
.gateway-config-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.config-fields {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.config-field {
    position: relative;
}

.config-field.required .form-label::after {
    content: " *";
    color: var(--error-color);
}

.config-field-description {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* Ações do Gateway */
.gateway-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--gray-300);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
    color: var(--gray-200);
}

/* Informações do Webhook */
.webhook-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.webhook-url-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.webhook-url-input {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--gray-300);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.webhook-url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--glass-bg-hover);
}

.btn-copy {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-400);
    backdrop-filter: blur(10px);
}

.btn-copy:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Estados de loading */
.gateway-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--gray-400);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mensagem de login necessário */
.login-required-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    margin: 20px 0;
}

.login-required-message h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.login-required-message p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsividade para gateway config */
@media (max-width: 768px) {
    .gateway-actions {
        flex-direction: column;
    }
    
    .webhook-url-container {
        flex-direction: column;
    }
    
    .gateway-options {
        grid-template-columns: 1fr;
    }
} 