/* assets/css/style.css */
:root {
    --bg-color: #000000; /* Preto Absoluto */
    --card-bg: #000000; /* Preto Absoluto para cards */
    --text-color: #e0e0e0;
    --primary-blue: #007bff;
    --neon-blue: #00f2ff;
    /* Gradiente Vitrificado: Preto com leve toque azulado no fundo */
    --glossy-gradient: linear-gradient(160deg, #0a0a0a 0%, #000000 60%, #000810 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.logo span {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn-cta {
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--primary-blue), #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.6);
}

/* Cards Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--glossy-gradient);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #111;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 5px rgba(0, 123, 255, 0.05);
}

/* Efeito Vitrificado (Brilho no Topo) */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

/* Efeito Glow Azul (Canto Inferior) */
.card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #222;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 123, 255, 0.15);
}

.card:hover::after {
    opacity: 0.8;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: #000000;
    border-top: 1px solid #1a1a1a;
    color: #666;
    margin-top: 50px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .features { grid-template-columns: 1fr; }
}

/* Forms & Auth Pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-box {
    background: linear-gradient(160deg, #0a0a0a 0%, #000000 100%);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #111;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    animation: fadeInUp 0.6s ease-out forwards;
}

.auth-box h2 {
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #050505;
    border: 1px solid #222;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-blue);
    background: #000;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.alert-success { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; }
.alert-error { background: rgba(220, 53, 69, 0.2); color: #dc3545; border: 1px solid #dc3545; }

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 80px); /* Altura total menos o header */
}

.sidebar {
    width: 260px;
    background: #000000;
    border-right: 1px solid #111;
    padding: 30px 0;
    flex-shrink: 0;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.menu-item {
    padding: 15px 30px;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    margin: 0 10px;
    border-radius: 8px;
}

.menu-item:hover, .menu-item.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--neon-blue);
    border-right: none;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.dashboard-main {
    flex-grow: 1;
    padding: 40px;
    background: var(--bg-color);
    animation: fadeInUp 0.5s ease-out forwards;
}
.dashboard-grid, .dashboard-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}
.dashboard-grid .card-full-width { grid-column: span 2; }
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1005;
}

/* --- SYSTEM ANNOUNCEMENTS --- */
.notice-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.notice-card {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: fadeInUp 0.5s ease-out forwards;
}

.notice-card h4 { margin-bottom: 5px; font-size: 1.1rem; }
.notice-card p { font-size: 0.95rem; line-height: 1.5; opacity: 0.9; }

/* Tipos de Avisos */
.notice-info {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.1) inset;
}
.notice-info h4 { color: var(--primary-blue); }
.notice-info i { color: var(--primary-blue); font-size: 1.5rem; margin-top: 3px; }

.notice-warning { border-color: #ffc107; box-shadow: 0 0 15px rgba(255, 193, 7, 0.1) inset; }
.notice-warning h4, .notice-warning i { color: #ffc107; }

.notice-danger { border-color: #dc3545; box-shadow: 0 0 15px rgba(220, 53, 69, 0.1) inset; }
.notice-danger h4, .notice-danger i { color: #dc3545; }

.notice-success { border-color: #28a745; box-shadow: 0 0 15px rgba(40, 167, 69, 0.1) inset; }
.notice-success h4, .notice-success i { color: #28a745; }

/* Tabs (Estilo Personalizado para Abas) */
.tab-btn {
    background: #111;
    color: #888;
    border: 1px solid #222;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn:hover {
    background: #1a1a1a;
    color: #fff;
}
.tab-btn.active {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* Animações */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE DESIGN --- */

/* Large Desktops */
@media (min-width: 1400px) {
    .features {
        grid-template-columns: repeat(4, 1fr); /* Força 4 colunas em telas muito largas para não ficar esticado */
    }
}

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1010;
        padding-top: 80px; /* Space for header */
        width: 280px;
        transition: transform 0.3s ease-in-out;
    }
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    .overlay.active {
        display: block;
    }
    .dashboard-main {
        padding: 30px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .features, .dashboard-grid, .dashboard-grid-bottom { grid-template-columns: 1fr; }
    .dashboard-grid .card-full-width { grid-column: auto; }
    .features { padding: 40px 5%; }
    .dashboard-main { padding: 20px; }
    header { padding: 20px 5%; }
    .logo { font-size: 1.2rem; }
    .card { padding: 25px; }
    .auth-box { padding: 20px; border: none; background: transparent; box-shadow: none; }
    .auth-container { align-items: flex-start; padding-top: 20px; }
    .doc-card summary { flex-wrap: wrap; }
    .doc-card summary .desc { flex-basis: 100%; margin-top: 5px; }
    .params-table { display: block; width: 100%; overflow-x: auto; }
    .grid-responsive-stack { grid-template-columns: 1fr !important; }
}
