/* ==================== VARIÁVEIS CSS ==================== */
:root {
    --primary-color: #6c63ff;
    --primary-dark: #5849d4;
    --secondary-color: #00d4ff;
    --success-color: #00d084;
    --danger-color: #ff6b6b;
    --warning-color: #ffd93d;
    --dark-bg: #1a1a2e;
    --light-bg: #0f3460;
    --card-bg: #16213e;
    --text-primary: #eaeaea;
    --text-secondary: #b8b8b8;
    --border-color: #2a2a4e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--dark-bg) 100%);
    border-right: 2px solid var(--primary-color);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-sidebar:hover {
    color: var(--primary-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--text-primary);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.nav-text {
    font-size: 1rem;
}

/* ==================== SIDEBAR FOOTER NAV ==================== */
.sidebar-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.nav-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-footer:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--text-primary);
    border-left-color: var(--secondary-color);
    transform: translateX(3px);
}

.nav-footer.active {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* ==================== MENU TOGGLE ==================== */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 98;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
    transition: var(--transition);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* ==================== HEADER ==================== */
.header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.logo .subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.btn-login {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

/* ==================== MAIN CONTAINER ==================== */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.container {
    width: 100%;
}

/* ==================== PAGE CONTENT ==================== */
.page-content {
    animation: fadeIn 0.3s ease;
}

/* ==================== DASHBOARD ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.3);
}

.dashboard-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.dashboard-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.stat-item .stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat-item .stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ==================== GLOBAL STATS ==================== */
.stats-global-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.global-stat-box {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.global-stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.2);
}

.global-stat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.global-stat-icon {
    font-size: 1.8rem;
}

.global-stat-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.global-stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.global-stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== COMING SOON ==================== */
.coming-soon-container {
    text-align: center;
    padding: 2rem;
}

.construction-visual {
    position: relative;
    height: 300px;
    margin: 2rem auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
}

/* Crane */
.crane {
    position: relative;
    width: 60px;
    height: 200px;
}

.crane-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    border-radius: 5px;
    animation: swing 4s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) rotate(10deg);
    }
}

.crane-hook {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 150px;
    background: #ddd;
    animation: pull 4s ease-in-out infinite;
}

@keyframes pull {
    0%, 20% {
        height: 150px;
    }
    40%, 60% {
        height: 80px;
    }
    80%, 100% {
        height: 150px;
    }
}

/* Building Blocks */
.building-blocks {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    height: 150px;
    justify-content: flex-end;
}

.block {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    animation: popBlock 2s ease-in-out infinite;
}

.block-1 {
    width: 80px;
    height: 30px;
    animation-delay: 0s;
}

.block-2 {
    width: 80px;
    height: 30px;
    animation-delay: 0.4s;
}

.block-3 {
    width: 80px;
    height: 30px;
    animation-delay: 0.8s;
}

@keyframes popBlock {
    0%, 20% {
        opacity: 0;
        transform: scaleY(0);
    }
    30%, 70% {
        opacity: 1;
        transform: scaleY(1);
    }
    80%, 100% {
        opacity: 0;
        transform: scaleY(0);
    }
}

.construction-ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #8B7355 0px,
        #8B7355 10px,
        #A0826D 10px,
        #A0826D 20px
    );
    border-radius: 10px;
}

.coming-soon-container h3 {
    font-size: 2.2rem;
    margin: 2rem 0 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.coming-soon-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.coming-soon-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.2);
}

.detail-icon {
    font-size: 2rem;
}

.detail-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.coming-soon-message {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 2rem;
}

/* ==================== CARD ==================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-content {
    padding: 2rem;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.2);
}

/* ==================== INFO ICON TOOLTIP ==================== */
.stat-label-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: help;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 1001;
}

.info-icon-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.5);
}

.tooltip {
    visibility: hidden;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.95);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 10000;
    bottom: 125%;
    right: 100%;
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--primary-color) transparent transparent;
}

.info-icon-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ==================== TOOLTIP DIREITA PARA INFO BOXES ==================== */
.info-title-wrapper .info-icon-btn .tooltip {
    right: auto;
    left: 100%;
    margin-right: 0;
    margin-left: 10px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.info-title-wrapper .info-icon-btn .tooltip::after {
    top: 50%;
    left: auto;
    right: 100%;
    margin-top: 0;
    margin-right: -10px;
    border-color: transparent transparent transparent var(--primary-color);
}

/* ==================== TOOLTIP ESQUERDA PARA DISTRIBUIÇÃO EQUILIBRADA ==================== */
.info-title-wrapper .info-icon-btn.tooltip-left .tooltip {
    right: 100%;
    left: auto;
    margin-right: 10px;
    margin-left: 0;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.info-title-wrapper .info-icon-btn.tooltip-left .tooltip::after {
    top: 50%;
    left: 100%;
    right: auto;
    margin-top: 0;
    margin-left: -10px;
    border-color: transparent var(--primary-color) transparent transparent;
}

/* ==================== TOOLTIP DIREITA PARA SORTEIOS ANALISADOS ==================== */
.stat-box .info-icon-btn.tooltip-right .tooltip {
    right: 100%;
    left: auto;
    margin-right: 10px;
    margin-left: 0;
    bottom: 125%;
    top: auto;
    transform: none;
}

.stat-box .info-icon-btn.tooltip-right .tooltip::after {
    top: 100%;
    left: 100%;
    right: auto;
    margin-top: 0;
    margin-left: -10px;
    border-color: var(--primary-color) transparent transparent transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== GERADOR SECTION ==================== */
.gerador-section {
    margin-bottom: 2.5rem;
}

.gerador-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.numeros-container {
    margin-bottom: 1.5rem;
}

.numeros-display {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    justify-content: flex-start;
    transition: var(--transition);
}

.numeros-display.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
}

.numeros-display .placeholder {
    color: var(--text-secondary);
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

.numero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    animation: popIn 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.numero-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.numero-badge.selected {
    background: linear-gradient(135deg, #ffd93d, #ffed4e);
    color: #1a1a2e;
    border-color: #ffd93d;
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.jogo-grupo {
    width: 100%;
    padding: 1rem;
    background: #000000;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.jogo-grupo:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.jogo-titulo {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.jogo-numeros {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ==================== CONTROLS ==================== */
.controls {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.quantity-selector label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.select-input {
    padding: 0.8rem;
    background: #000000;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.select-input:hover {
    border-color: var(--secondary-color);
    background: #1a1a1a;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.select-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), inset 0 0 10px rgba(0, 212, 255, 0.1);
    background: #000000;
}

.select-input option {
    background: #1a1a1a;
    color: white;
    padding: 0.5rem;
}

.btn-gerar {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    min-width: 200px;
}

.btn-gerar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.4);
}

.btn-gerar:active:not(:disabled) {
    transform: translateY(0);
}

.btn-gerar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    display: none;
}

@media (min-width: 600px) {
    .btn-text {
        display: inline;
    }
}

/* ==================== ACTIONS ==================== */
.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(108, 99, 255, 0.1);
}

.btn-copiar {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-baixar {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-limpar {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* ==================== INFO SECTION ==================== */
.info-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.info-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.info-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.info-icon {
    font-size: 2rem;
    min-width: 50px;
}

.info-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.info-title-wrapper h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.8rem;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

.btn-submit {
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* ==================== ÍCONE FLUTUANTE ==================== */
.floating-help {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: help;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
    z-index: 10000;
    transition: var(--transition);
}

.floating-help:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.6);
}

.tooltip-floating {
    visibility: hidden;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.95);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 10000;
    bottom: 70px;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
}

.tooltip-floating::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.floating-help:hover .tooltip-floating {
    visibility: visible;
    opacity: 1;
}
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
    z-index: 1001;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.notification.error {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    main {
        padding: 1rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .controls {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-gerar {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        text-align: center;
    }

    .notification {
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }

    /* Sidebar em mobile */
    .sidebar {
        width: 70%;
        max-width: 250px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .logo .subtitle {
        display: none;
    }

    .user-name {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-header h2 {
        font-size: 1.3rem;
    }

    .controls {
        gap: 0.5rem;
    }
}

/* ==================== ARTIGOS (IMPORTANTE) ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.2);
}

.article-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.article-icon {
    font-size: 2.5rem;
}

.article-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
}

.article-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.article-content h4 {
    color: var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.article-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
