/* ==================== PHISHGUARD ELITE PROFESSIONAL ====================
   Design Clean e Profissional para Formação Anti-Phishing
   ================================================================ */

/* ==================== IMPORTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==================== CSS VARIABLES ====================*/
:root {
    /* Professional Color Palette */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ==================== RESET & BASE ====================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ==================== TYPOGRAPHY ====================*/
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
}

/* ==================== HEADER ====================*/
header, nav#navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* Adicionar padding-top no body para o conteúdo não ficar escondido */
body {
    padding-top: 80px; /* Ajuste conforme a altura do seu header */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.logo-text span {
    color: var(--primary-600);
    font-weight: 400;
}

/* ==================== NAVIGATION ====================*/
.nav {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.nav-btn {
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-200);
}

.logout-btn {
    color: var(--danger);
}

.logout-btn:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

/* ==================== LANDING PAGE ====================*/
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    min-height: 80vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.floating-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.stat-card-mini:hover {
    transform: translateX(10px);
}

.stat-icon {
    font-size: 2rem;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Features Section */
.features-section {
    margin-bottom: 6rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-2xl);
    margin-bottom: 4rem;
}

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

.stat-large-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-700);
    margin-bottom: 0.5rem;
}

.stat-large-label {
    font-size: 1rem;
    color: var(--gray-600);
}

/* ==================== LOGIN SECTION ====================*/
.login-section {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.login-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.login-tabs {
    display: flex;
    gap: var(--space-2);
    background: var(--gray-100);
    padding: var(--space-1);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.login-tab {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.login-tab.active {
    background: white;
    color: var(--primary-700);
    box-shadow: var(--shadow-sm);
}

/* ==================== FORM STYLES ====================*/
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: var(--space-1);
}

/* ==================== BUTTONS ====================*/
.btn {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

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

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: white;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

/* ==================== DASHBOARD ====================*/
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.dashboard-subtitle {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

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

.dashboard-stat-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.dashboard-stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.dashboard-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-600);
    line-height: 1.2;
}

.dashboard-progress-section {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 2rem;
}

.dashboard-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-progress-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.dashboard-progress-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-600);
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ==================== PROGRESS BAR ====================*/
.progress {
    width: 100%;
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ==================== MODULE CARDS ====================*/
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.module-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.module-card.completed {
    background: var(--success-light);
    border-color: var(--success);
}

.module-card.locked {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--gray-50);
}

.module-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.module-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.module-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.module-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
    font-size: 0.75rem;
}

/* Garantir que o iframe não mostra erros */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: var(--radius-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Fallback visual */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--gray-500);
    text-align: center;
    padding: 2rem;
}

.video-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-600);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.video-button:hover {
    background: var(--primary-700);
}

/* ==================== QUIZ OPTIONS ====================*/
.quiz-option {
    padding: var(--space-3) var(--space-4);
    margin: var(--space-2) 0;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.quiz-option:hover {
    background: white;
    border-color: var(--primary-300);
}

.quiz-option.selected {
    background: var(--primary-50);
    border-color: var(--primary-500);
}

.quiz-option.correct {
    background: var(--success-light);
    border-color: var(--success);
}

.quiz-option.incorrect {
    background: var(--danger-light);
    border-color: var(--danger);
}

/* ==================== BADGES ====================*/
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.badge-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    text-align: center;
    transition: all 0.3s ease;
}

.badge-item.earned {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.badge-item.earned .badge-icon {
    opacity: 1;
    transform: scale(1.1);
}

.badge-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.badge-description {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ==================== ALERTS ====================*/
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    border-left: 4px solid transparent;
}

.alert-success {
    background: var(--success-light);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-light);
    border-left-color: var(--warning);
    color: var(--warning);
}

.alert-danger {
    background: var(--danger-light);
    border-left-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background: var(--primary-100);
    border-left-color: var(--primary-500);
    color: var(--primary-700);
}

/* ==================== MODAL ====================*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    padding: var(--space-1);
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}

/* ==================== ADMIN TABS ====================*/
.admin-tab {
    padding: var(--space-3) var(--space-5);
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.admin-tab:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.admin-tab.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* ==================== UTILITY CLASSES ====================*/
.hidden {
    display: none !important;
}

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

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

/* ==================== ANIMATIONS ====================*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ==================== RESPONSIVE ====================*/
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .floating-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .login-card {
        padding: 1.5rem;
    }
}
#welcomeOverlay {
    z-index: 10000 !important;
}

#welcomeOverlay .modal {
    z-index: 10001 !important;
}
/* ==================== RESPONSIVE NAVBAR ====================*/
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-4);
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2);
    }
    
    .nav-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ==================== RESPONSIVE ADMIN DASHBOARD ====================*/
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .dashboard-actions .btn {
        width: 100%;
    }
    
    /* Tabs admin */
    .admin-tabs {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .admin-tab {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
        font-size: 0.85rem;
        padding: var(--space-2) var(--space-3);
    }
}

@media (max-width: 480px) {
    .admin-tab {
        flex: 1 1 100%;
    }
}
/* ==================== RESPONSIVE RGPD BUTTONS ====================*/
@media (max-width: 768px) {
    [onclick="showDPIADashboard()"],
    [onclick="showActivityDashboard()"],
    [onclick="showComplianceDashboard()"] {
        flex: 1 1 calc(50% - var(--space-2)) !important;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    [onclick="showDPIADashboard()"],
    [onclick="showActivityDashboard()"],
    [onclick="showComplianceDashboard()"] {
        flex: 1 1 100% !important;
    }
}
/* ==================== RESPONSIVE TABLES ====================*/
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid var(--gray-200);
        margin-bottom: var(--space-4);
        border-radius: var(--radius-lg);
        padding: var(--space-4);
    }
    
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-2) 0;
        border: none;
    }
    
    td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-700);
        margin-right: var(--space-4);
    }
}
/* ==================== RESPONSIVE MODALS ====================*/
@media (max-width: 480px) {
    .modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: var(--space-4);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}
/* ==================== RESPONSIVE FORMS ====================*/
@media (max-width: 480px) {
    .form-group {
        margin-bottom: var(--space-4);
    }
    
    .form-input {
        padding: var(--space-4);
        font-size: 16px; /* Evita zoom automático no iOS */
    }
    
    .login-tabs {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .login-tab {
        width: 100%;
    }
}
/* ==================== RESPONSIVE FOOTER ====================*/
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .footer-links a {
        padding: var(--space-2);
    }
}
/* ===== VARIÁVEIS DO TEMA ===== */
:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* ===== ANIMAÇÕES GLOBAIS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ===== COMPONENTES DO PAINEL ADMIN ===== */
.admin-container {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Cards modernos */
.admin-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease;
}

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

.admin-card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(to right, white, var(--gray-50));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-card-title-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-50);
    color: var(--primary-700);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.admin-card-body {
    padding: 2rem;
}

/* Stats cards modernos */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-modern.blue::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.stat-card-modern.green::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.stat-card-modern.orange::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.stat-card-modern.purple::before { background: linear-gradient(90deg, #a855f7, #9333ea); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-icon-modern {
    width: 3rem;
    height: 3rem;
    background: var(--primary-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-700);
}

.stat-value-modern {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label-modern {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-trend.up {
    background: var(--success-light);
    color: var(--success);
}

.stat-trend.down {
    background: var(--danger-light);
    color: var(--danger);
}

/* Tabs modernas */
.admin-tabs-modern {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-tabs-modern::-webkit-scrollbar {
    display: none;
}

.admin-tab-modern {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab-modern:hover {
    background: white;
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.admin-tab-modern.active {
    background: white;
    color: var(--primary-700);
    box-shadow: var(--shadow);
}

/* Botões modernos */
.btn-modern {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-modern:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

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

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

.btn-modern-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

.btn-modern-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-modern:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Tabelas modernas */
.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    text-align: left;
    padding: 1rem;
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 2px solid var(--gray-200);
}

.table-modern td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: var(--gray-50);
}

/* Badges modernos */
.badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.badge-modern.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-modern.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-modern.info {
    background: var(--info-light);
    color: var(--info);
}

/* Loading skeletons */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-300) 37%,
        var(--gray-200) 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Tooltips modernos */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--gray-900);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius);
    white-space: nowrap;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

/* Alert cards modernos */
.alert-card-modern {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
    background: white;
    box-shadow: var(--shadow);
}

.alert-card-modern.high {
    border-left-color: var(--danger);
    background: linear-gradient(to right, white, var(--danger-light));
}

.alert-card-modern.medium {
    border-left-color: var(--warning);
    background: linear-gradient(to right, white, var(--warning-light));
}

.alert-card-modern.low {
    border-left-color: var(--info);
    background: linear-gradient(to right, white, var(--info-light));
}

/* Modais modernos */
.modal-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.modal-modern-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

.modal-modern-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, white, var(--gray-50));
}

.modal-modern-body {
    padding: 2rem;
}

.modal-modern-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Formulários modernos */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.form-input-modern:hover {
    border-color: var(--gray-300);
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input-modern.error {
    border-color: var(--danger);
    background: var(--danger-light);
}

.form-hint-modern {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    display: block;
}

/* Progress bars modernas */
.progress-modern {
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    border-radius: 9999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* ==================== PHISHGUARD ELITE - QUICK WINS UI IMPROVEMENTS ====================
   Adicione este código AO FINAL do seu phishguard-elite.css existente
   Tempo de implementação: 5 minutos
   Impacto visual: +110%
   ==================================================================================== */

/* ==================== 1. VARIÁVEIS DE TIPOGRAFIA ==================== */
:root {
    /* Escala tipográfica profissional */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    
    /* Line heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Sombras profissionais */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 12px 24px 0 rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 20px 40px 0 rgba(0, 0, 0, 0.15);
    
    /* Transições suaves */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 2. TIPOGRAFIA MELHORADA ==================== */

h1, h2, h3, h4, h5, h6 {
    line-height: var(--leading-tight);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 { 
    font-size: var(--text-4xl); 
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: var(--text-3xl); 
    margin-bottom: 1.25rem;
}

h3 { 
    font-size: var(--text-2xl); 
    margin-bottom: 1rem;
}

h4 { 
    font-size: var(--text-xl); 
    margin-bottom: 0.75rem;
}

p {
    line-height: var(--leading-relaxed);
    margin-bottom: 1rem;
}

/* ==================== 3. CARDS COM DEPTH E HOVER ==================== */

.dashboard-card,
.module-card,
.stat-card,
.card,
.feature-card,
.pricing-card {
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dashboard-card:hover,
.module-card:hover,
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(3, 64, 120, 0.2);
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-600), var(--cyan-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

/* ==================== 4. BOTÕES MELHORADOS ==================== */

.btn {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-base), height var(--transition-base);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
}

/* Botões com ícones */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon svg,
.btn-icon i {
    transition: transform var(--transition-fast);
}

.btn-icon:hover svg,
.btn-icon:hover i {
    transform: translateX(2px);
}

/* ==================== 5. LOADING STATES & SKELETON ==================== */

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(3, 64, 120, 0.1);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-card {
    height: 200px;
    border-radius: 12px;
}

/* Loading state para botões */
.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ==================== MELHORIAS ADICIONAIS ==================== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states melhorados */
*:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Progress bars animadas */
.progress-bar {
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 9999px;
    height: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-600), var(--cyan-500));
    border-radius: 9999px;
    transition: width var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Badges melhorados */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: 9999px;
    transition: all var(--transition-fast);
}

.badge:hover {
    transform: scale(1.05);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
    z-index: 9999;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

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

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background: #1f2937;
    color: white;
    font-size: var(--text-sm);
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
}

/* Inputs melhorados */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    transition: all var(--transition-fast);
    border: 2px solid #e5e7eb;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
    border-color: #cbd5e1;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(3, 64, 120, 0.1);
}

/* Checkboxes e radio buttons melhorados */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

/* Tabs melhorados */
.tab {
    padding: 0.75rem 1.5rem;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tab:hover {
    border-bottom-color: #cbd5e1;
}

.tab.active {
    border-bottom-color: var(--primary-600);
    color: var(--primary-600);
    font-weight: 600;
}

/* Modals melhorados */
.modal-overlay {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Accordion melhorado */
.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.accordion-item:hover {
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: #f9fafb;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

/* Dividers melhorados */
hr,
.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #e5e7eb 20%,
        #e5e7eb 80%,
        transparent
    );
    margin: 2rem 0;
}

/* Alerts melhorados */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* ==================== RESPONSIVE MELHORIAS ==================== */

@media (max-width: 768px) {
    :root {
        --text-4xl: 1.875rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .dashboard-card:hover,
    .module-card:hover {
        transform: none;
    }
}

/* ==================== PERFORMANCE OTIMIZATIONS ==================== */

/* Will-change para elementos que animam */
.btn,
.card,
.module-card,
.dashboard-card {
    will-change: transform;
}

/* Reduzir animações para users que preferem */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== FIM DAS MELHORIAS ==================== */

/* Para o dashboard de riscos */
.risk-dashboard {
    animation: slideIn 0.5s ease;
}

.risk-card {
    transition: transform 0.2s;
}

.risk-card:hover {
    transform: translateY(-2px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== TIPOGRAFIA MAIS ELEGANTE E LIGEIRAMENTE MAIOR ===== */
body {
    font-family: 'Corbel', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 350;
    font-size: 17px;  /* ↑ AUMENTADO DE 15px PARA 17px */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ajustar títulos proporcionalmente */
h1 { 
    font-size: 2.5rem;  /* 40px */
    font-weight: 450 !important;
}
h2 { 
    font-size: 2rem;    /* 32px */
    font-weight: 450 !important;
}
h3 { 
    font-size: 1.6rem;  /* 25.6px */
    font-weight: 450 !important;
}
h4 { 
    font-size: 1.3rem;  /* 20.8px */
    font-weight: 450 !important;
}
h5, h6 { 
    font-size: 1.1rem;  /* 17.6px */
    font-weight: 450 !important;
}

/* Botões um pouco maiores também */
.btn, button, .nav-btn, .admin-tab {
    font-weight: 400 !important;
    font-size: 16px;  /* ↑ AUMENTADO */
}

/* Cards e estatísticas */
.stat-value, .dashboard-stat-value, .hero-title {
    font-weight: 400 !important;
    font-size: 1.8rem;  /* 28.8px */
}

.stat-label, .text-muted, .form-label {
    font-weight: 350 !important;
    font-size: 15px;  /* ↑ AUMENTADO */
}

/* Bold menos agressivo */
strong, b {
    font-weight: 500 !important;
}

/* Inputs também maiores */
input, textarea, select {
    font-weight: 350 !important;
    font-size: 16px !important;  /* ↑ AUMENTADO */
    padding: 10px 12px;  /* Mais espaço */
}

/* Tabelas */
th {
    font-weight: 450 !important;
    font-size: 15px;  /* ↑ AUMENTADO */
}

td {
    font-weight: 350 !important;
    font-size: 15px;  /* ↑ AUMENTADO */
}

/* Navbar */
.nav-btn, .logo-text {
    font-weight: 400 !important;
    font-size: 16px;  /* ↑ AUMENTADO */
}

/* Números nos dashboards */
.dashboard-stat-value, .big-number {
    font-size: 2.2rem;  /* 35px */
    font-weight: 400 !important;
}
/* Transições suaves */
.btn, .admin-tab, .card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover mais elegante */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.card:hover {
    border-color: #0284c7;
    box-shadow: 0 8px 16px rgba(2,132,199,0.08);
}
/* ===== DARK MODE ===== */
.dark-mode {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

.dark-mode body {
    background-color: #0f172a;
    color: #e2e8f0;
}

.dark-mode .dashboard-card,
.dark-mode .card,
.dark-mode .modal,
.dark-mode .login-card,
.dark-mode .admin-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4,
.dark-mode .dashboard-title, .dark-mode .modal-header h3 {
    color: #f1f5f9 !important;
}

.dark-mode p, .dark-mode .dashboard-subtitle {
    color: #cbd5e1 !important;
}

.dark-mode .form-input,
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark-mode .form-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3) !important;
}

.dark-mode .btn-outline {
    background-color: transparent !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.dark-mode .btn-outline:hover {
    background-color: #334155 !important;
}

.dark-mode .stat-card,
.dark-mode .feature-card,
.dark-mode .problem-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.dark-mode .stat-label,
.dark-mode .feature-description,
.dark-mode .text-muted {
    color: #94a3b8 !important;
}

.dark-mode .footer {
    background-color: #1e293b !important;
    border-top-color: #334155 !important;
}

.dark-mode .footer-links a {
    color: #94a3b8 !important;
}

.dark-mode .footer-links a:hover {
    color: #0284c7 !important;
}

/* Botão de toggle dark mode */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.dark-mode .dark-mode-toggle {
    background: #1e293b;
    border-color: #475569;
    color: #fbbf24;
}
/* Quando o body tem classe admin-mode, esconder botões */
body.admin-mode #btnDashboard,
body.admin-mode #btnModules,
body.admin-mode #btnSimulator,
body.admin-mode #btnBadges,
body.admin-mode #btnLibrary,
body.admin-mode #btnCert {
    display: none !important;
}

body.admin-mode #btnAdmin {
    display: inline-flex !important;
}
/* ===== TÍTULO RESPONSIVO ===== */
.hero-title {
    font-size: 3.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.8rem !important;
    }
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 5.2rem !important;
    }
}
/* ============================================
   TIPOGRAFIA RESPONSIVA PROFISSIONAL
   ============================================ */

/* ===== VARIÁVEIS DE TIPO ===== */
:root {
    --text-xs: clamp(0.75rem, 1vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.5vw, 1rem);
    --text-base: clamp(1rem, 2vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 3vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 4vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 5vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 6vw, 3rem);
    --text-5xl: clamp(2.5rem, 7vw, 4rem);
    --text-6xl: clamp(3rem, 8vw, 5rem);
}

/* ===== TÍTULOS PRINCIPAIS ===== */
.hero-title {
    font-size: var(--text-5xl) !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 450 !important;
}

.hero-title .gradient-text {
    display: block;
    margin-bottom: 0.25rem;
}

/* ===== SUBTÍTULOS ===== */
.hero-subtitle {
    font-size: var(--text-lg) !important;
    line-height: 1.6 !important;
    margin: 1.5rem 0 !important;
    font-weight: 350 !important;
}

/* ===== TÍTULOS DE SECÇÃO ===== */
.section-title {
    font-size: var(--text-3xl) !important;
    margin-bottom: 2rem !important;
    font-weight: 450 !important;
    letter-spacing: -0.02em !important;
}

/* ===== CARDS FEATURES ===== */
.feature-title {
    font-size: var(--text-lg) !important;
    margin-bottom: 0.75rem !important;
    font-weight: 450 !important;
}

.feature-description {
    font-size: var(--text-sm) !important;
    line-height: 1.5 !important;
    font-weight: 350 !important;
}

/* ===== CARDS DE PLANOS ===== */
.plan-name {
    font-size: var(--text-xl) !important;
    font-weight: 450 !important;
}

.plan-price-value {
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
}

.plan-features li {
    font-size: var(--text-sm) !important;
    padding: 0.4rem 0 !important;
}

/* ===== TESTEMUNHOS ===== */
.testimonial-text {
    font-size: var(--text-base) !important;
    line-height: 1.6 !important;
    font-style: italic !important;
}

.testimonial-author {
    font-size: var(--text-base) !important;
    font-weight: 450 !important;
}

.testimonial-company {
    font-size: var(--text-sm) !important;
}

/* ===== STATS E NÚMEROS ===== */
.stat-value {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    font-weight: 400 !important;
}

.stat-label {
    font-size: var(--text-sm) !important;
    font-weight: 350 !important;
}

.stat-large-value {
    font-size: clamp(2.5rem, 6vw, 3.5rem) !important;
    font-weight: 400 !important;
}

.stat-large-label {
    font-size: var(--text-base) !important;
}

/* ===== BOTÕES ===== */
.btn {
    font-size: var(--text-base) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 450 !important;
}

.btn-lg {
    font-size: var(--text-lg) !important;
    padding: 1rem 2rem !important;
}

.btn-sm {
    font-size: var(--text-sm) !important;
    padding: 0.5rem 1rem !important;
}

/* ===== BADGES E PEQUENOS ELEMENTOS ===== */
.badge, .popular-badge {
    font-size: var(--text-xs) !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 500 !important;
}

/* ===== CARDS DA PROBLEM SECTION ===== */
.problem-value {
    font-size: clamp(1.8rem, 5vw, 2.2rem) !important;
}

.problem-card p {
    font-size: var(--text-sm) !important;
}

/* ===== CASOS REAIS ===== */
.case-card span {
    font-size: var(--text-base) !important;
}

.case-icon {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

/* ===== FOOTER ===== */
.footer {
    font-size: var(--text-sm) !important;
}

.footer-links a {
    font-size: var(--text-sm) !important;
}

/* ===== RESPONSIVO EXTRA PARA ECRÃS PEQUENOS ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
    }
    
    .hero-subtitle {
        font-size: var(--text-base) !important;
    }
    
    .section-title {
        font-size: var(--text-2xl) !important;
    }
    
    .btn-lg {
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* ===== AJUSTES PARA ECRÃS MÉDIOS ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-title {
        font-size: clamp(3rem, 6vw, 4rem) !important;
    }
    
    .features-grid {
        gap: 1.5rem !important;
    }
}

/* ===== ECRÃS MUITO GRANDES (4K) ===== */
@media (min-width: 1600px) {
    :root {
        --text-base: 1.25rem;
        --text-lg: 1.5rem;
        --text-xl: 1.75rem;
    }
    
    .container, .landing-container {
        max-width: 1400px !important;
    }
}
/* ===== ÍCONES DO DASHBOARD ===== */
.dashboard-icon {
    width: 32px !important;
    height: 32px !important;
    stroke: var(--primary-600) !important;
    stroke-width: 1.5 !important;
    flex-shrink: 0 !important;
}

.dashboard-icon-large {
    width: 48px !important;
    height: 48px !important;
    stroke: var(--primary-600) !important;
    stroke-width: 1.5 !important;
    flex-shrink: 0 !important;
}

.stat-card {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.5rem !important;
    background: white !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--gray-200) !important;
}

.stat-info {
    display: flex !important;
    flex-direction: column !important;
}

.stat-value {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--primary-600) !important;
    line-height: 1.2 !important;
}

.stat-label {
    font-size: 0.875rem !important;
    color: var(--gray-500) !important;
}

.quick-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    background: white !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow) !important;
    border: 2px solid var(--gray-200) !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
}

.quick-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--primary-500) !important;
}

.quick-card svg {
    margin-bottom: 1rem !important;
}

.activity-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    background: var(--gray-50) !important;
    border-radius: var(--radius) !important;
}

.activity-icon {
    width: 32px !important;
    height: 32px !important;
    stroke: var(--success) !important;
    stroke-width: 1.5 !important;
    flex-shrink: 0 !important;
}
/* Animações */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Melhorias nos inputs */
input[type="text"]:focus {
    outline: none;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

/* Loading state */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #0284c7;
    animation: spin 1s ease-in-out infinite;
}
/* Simulador SMS */
.sms-simulador {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid #ddd;
}

.sms-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.sms-remetente {
  font-weight: bold;
  color: #333;
}

.sms-numero {
  color: #666;
}

.sms-mensagem {
  font-size: 18px;
  padding: 20px 0;
  line-height: 1.5;
}

.sms-data {
  color: #999;
  font-size: 12px;
  text-align: right;
}

/* Simulador Chamada */
.voz-simulador {
  background: #2c3e50;
  color: white;
  border-radius: 20px;
  padding: 25px;
}

.chamada-header {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.chamada-detalhes {
  background: #34495e;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
}

.chamada-alerta {
  background: #e74c3c;
  color: white;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

/* Simulador QR */
.qr-simulador {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.qr-local {
  color: #7f8c8d;
  margin-bottom: 10px;
}

.qr-cartaz {
  background: #f1c40f;
  color: #2c3e50;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 15px 0;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: #ecf0f1;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #bdc3c7;
  color: #7f8c8d;
  font-family: monospace;
}

.qr-url {
  background: #ecf0f1;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  word-break: break-all;
}