/* assets/css/style.css - Premium AAA UI/UX Revamp */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Color Palette - Deep Dark Space / Neon Accents */
    --bg-base: #030305;
    --bg-surface: #0a0a10;
    --bg-panel: rgba(18, 18, 28, 0.4);
    
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.45);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(255, 255, 255, 0.1);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f43f5e;

    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px -10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 85px; /* Navbar spacer */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Helpers text */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #ffffff !important; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700 !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

/* NAVBAR PRO */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 85px;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-weight: 500;
    font-size: 1rem;
}
.nav-links a:hover { color: var(--primary); }

/* SIDEBAR LAYOUT (ADMIN & USER) */
.app-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}
.sidebar {
    width: 290px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding: 2rem 1.5rem;
}
.sidebar-brand {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800; color: #fff;
    margin-bottom: 3rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-menu { list-style: none; flex-grow: 1; }
.sidebar-menu li { margin-bottom: 0.4rem; }
.sidebar-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.85rem 1.2rem;
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 500; font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary);
}
.sidebar-link i { font-size: 1.2rem; width: 24px; text-align: center; }

.app-content {
    flex-grow: 1;
    margin-left: 290px;
    padding: 3rem 4rem;
    background: var(--bg-base);
    min-height: 100vh;
}

/* BOTOES PREMIUM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
    transition: var(--transition-smooth);
    letter-spacing: 0.2px;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: 12px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px -3px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-highlight);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    color: #fff;
}

.btn-danger {
    background: rgba(244, 63, 94, 0.1);
    color: var(--danger);
    border-color: rgba(244, 63, 94, 0.2);
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}
.btn-warning:hover {
    background: var(--warning);
    color: #111;
    border-color: var(--warning);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.4);
}
.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.5);
}


/* SHINE ANIMATION EFFECT */
.shine { position: relative; overflow: hidden; transform: translateZ(0); }
.shine::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: shineEffect 4s infinite;
}
@keyframes shineEffect {
    0% { left: -100%; }
    15% { left: 200%; }
    100% { left: 200%; }
}

/* PREMIUM GRID SYSTEM */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* GLASSMORPHISM PANELS (Cards) */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}
.glass-panel:hover {
    border-color: var(--border-highlight);
    background: rgba(25, 25, 38, 0.5);
}

/* ICON BOX PARA CARDS */
.icon-box {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

/* HERO SECTION - LANDING PAGE */
.hero-section {
    padding: 8rem 0 6rem 0;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -20%; left: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 60%);
    z-index: -1; filter: blur(80px);
}
.hero-section::after {
    content: ''; position: absolute; bottom: 0%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0,0,0,0) 60%);
    z-index: -1; filter: blur(80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    letter-spacing: -1.5px;
}
.hero-title span {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 90%;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 1.5rem; }

/* FAKE TERMINAL MOCKUP (Index) */
.glass-mockup {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.mac-header {
    background: rgba(255,255,255,0.02);
    padding: 1rem 1.2rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.bg-danger { background: #ff5f56; }
.bg-warning { background: #ffbd2e; }
.bg-success { background: #27c93f; }

.mac-body {
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #a3a3a3;
    min-height: 350px;
    line-height: 1.8;
}
.cmd span { color: var(--primary); margin-right: 10px; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* FEATURES SECTION */
.features-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(13, 13, 18, 1) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
}
.section-heading {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.feature-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
.feature-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

/* CALL TO ACTION */
.cta-section {
    padding: 8rem 0;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, var(--bg-base) 70%);
    border-top: 1px solid var(--border-color);
}
.cta-section h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -1px; }
.cta-section p { font-size: 1.3rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; }

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 4rem 0 2rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}
.footer-brand h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1.5rem; font-weight: 800;}
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px;}

.footer-links h4 { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #475569;
    font-size: 0.9rem;
}

/* FORMS BASE */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label { display: block; margin-bottom: 0.6rem; color: var(--text-muted); font-size: 0.95rem; font-weight: 500;}
.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.form-control::placeholder { color: #475569; }
.form-control:focus {
    outline: none;
    background: rgba(0,0,0,0.5);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.auth-card {
    max-width: 450px;
    margin: 4rem auto;
    text-align: center;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3.5rem; }
    .app-content { padding: 2rem 2.5rem; margin-left: 0; }
    .sidebar { display: none; /* Em um sistema completo, usaria toggle */ } 
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links { display: none; }
    .hero-section { padding: 6rem 0 4rem 0; }
    .features-section { padding: 5rem 0; }
    .glass-panel { padding: 2rem; }
}

