/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* ===== BASE MARVEL ===== */
    --color-bg: #0b0f1a;              /* fundo preto azulado */
    --color-panel-bg: #121826;        /* cards/caixas */
    --color-header-footer: #0a0d16;   /* barras */

    /* ===== TEXTO ===== */
    --color-text-light: #ffffff;
    --color-text-dark: #cbd5e1;

    /* ===== ACENTO PRINCIPAL (MARVEL RED) ===== */
    --color-accent: #e11d48;          /* vermelho Marvel */
    --color-accent-dark: #9f1239;

    /* ===== ELEMENTOS UI ===== */
    --color-border: rgba(255,255,255,0.08);
    --color-banner: #1f2937;

    /* ===== SIDEBAR / WIDGETS ===== */
    --color-profile-box: #1f2937;
    --color-square-sm: #334155;
    --color-square-md: #475569;
    --color-circle: #e11d48;

    /* ===== SOMBRAS (mais dramáticas) ===== */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55);

    /* ===== UI ===== */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --gap-main: 20px;
    --padding-panel: 20px;

    --header-height: 60px;
    --footer-height: 50px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--color-text-dark);
    line-height: 1.5;

    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: radial-gradient(
        circle at top,
        #111827 0%,
        #0b0f1a 40%,
        #05070f 100%
    );
}

.main-container {
    animation: bootIn 0.6s ease-out;
}

@keyframes bootIn {
    from {
        opacity: 0;
        transform: scale(0.98);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.header, .sidebar, .content, .widgets {
    backdrop-filter: blur(6px);
}
/* ===== HEADER ===== */

.header {
    border-bottom: 1px solid rgba(225, 29, 72, 0.25);
}

.header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-header-footer);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__pixel {
    width: 32px;
    height: 32px;

    image-rendering: pixelated;

    /* dá sensação de “objeto do sistema” */
    filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.4));
}

@keyframes floatPixel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.header__icon {
    width: 28px;
    height: 28px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.header__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    user-select: none;
}

/* ===== MAIN CONTAINER (CSS GRID: 3 colunas) ===== */
.main-container {
    flex: 1;
    display: grid;
    grid-template-columns: 240px 1fr 200px;
    gap: var(--gap-main);
    padding: 24px var(--gap-main);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ===== COLUNA ESQUERDA (Sidebar) ===== */

.sidebar {
    border: 1px solid rgba(225, 29, 72, 0.15);
}

.sidebar {
    background-color: var(--color-header-footer);
    border-radius: var(--radius-lg);
    padding: var(--padding-panel);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid #334155;
    min-height: 0;
}

/* Mini painel / perfil */
.sidebar__profile-box {
    width: 100%;
    height: 80px;
    background-color: var(--color-profile-box);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar__profile-box::after {
    content: 'PERFIL';
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Linhas do menu de navegação */
.sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.sidebar__menu-line {
    width: 100%;
    height: 10px;
    background-color: var(--color-menu-line);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.sidebar__menu-line:nth-child(1) { width: 92%; }
.sidebar__menu-line:nth-child(2) { width: 85%; }
.sidebar__menu-line:nth-child(3) { width: 78%; }
.sidebar__menu-line:nth-child(4) { width: 88%; }
.sidebar__menu-line:nth-child(5) { width: 72%; }
.sidebar__menu-line:nth-child(6) { width: 80%; }

/* ===== COLUNA CENTRAL (Conteúdo Principal) ===== */
.content {
    background-color: var(--color-panel-bg);
    border-radius: var(--radius-lg);
    padding: var(--padding-panel);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--color-border);
    min-height: 0;
}

/* Banner / área de destaque */
.content__banner {
    width: 100%;
    height: 240px;

    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;

    background: radial-gradient(
        circle at 30% 20%,
        rgba(225, 29, 72, 0.25),
        transparent 60%
    ),
    linear-gradient(
        135deg,
        #0f172a 0%,
        #111827 50%,
        #0b0f1a 100%
    );

    box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

.content__banner::after {
    content: 'TEF SYSTEM // DASHBOARD';
    position: relative;
    z-index: 1;

    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* Área de conteúdo abaixo do banner */
.content__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 10px 4px;
}

.content__body-line:hover {
    background: rgba(225, 29, 72, 0.12);
    transform: scaleX(1.02);
    transition: 0.2s ease;
}

/* ===== COLUNA DIREITA (Widgets/Ícones) ===== */
.widgets {
    background-color: var(--color-panel-bg);
    border-radius: var(--radius-sm);
    padding: var(--padding-panel);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--color-border);
    min-height: 0;
}

/* Quadrado pequeno */
.widgets__square-sm {
    width: 56px;
    height: 56px;
    background-color: var(--color-square-sm);
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* Quadrado médio (levemente arredondado) */
.widgets__square-md {
    width: 90px;
    height: 90px;
    background-color: var(--color-square-md);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widgets__square-md::after {
    content: 'ICON';
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Círculo grande */
.widgets__circle {
    width: 110px;
    height: 110px;
    background: radial-gradient(
        circle at 40% 40%,
        #78909c 0%,
        var(--color-circle) 60%,
        #455a64 100%
    );
    border-radius: var(--radius-full);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widgets__circle::after {
    content: '⏺';
    color: rgba(255, 255, 255, 0.55);
    font-size: 2rem;
}

/* ===== FOOTER ===== */
.footer {
    width: 100%;
    height: var(--footer-height);
    background-color: var(--color-header-footer);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets / Telas médias (até 1024px) */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 200px 1fr 170px;
        gap: 16px;
        padding: 20px 16px;
    }
    .content__banner { height: 180px; }
    .widgets__square-sm { width: 46px; height: 46px; }
    .widgets__square-md { width: 72px; height: 72px; }
    .widgets__circle { width: 90px; height: 90px; }
    .widgets { gap: 18px; padding: 16px; }
    .sidebar { padding: 16px; gap: 14px; }
    .sidebar__profile-box { height: 64px; }
}

/* Tablets pequenos (até 768px) */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
        padding: 16px;
    }
    .sidebar { order: 1; flex-direction: column; padding: 16px; gap: 12px; }
    .sidebar__profile-box { height: 56px; }
    .sidebar__menu { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .sidebar__menu-line { width: auto !important; flex: 1 1 60px; min-width: 40px; height: 8px; }
    .content { order: 2; padding: 16px; }
    .content__banner { height: 160px; }
    .widgets { order: 3; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 16px; }
    .widgets__square-sm { width: 50px; height: 50px; }
    .widgets__square-md { width: 70px; height: 70px; }
    .widgets__circle { width: 80px; height: 80px; }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
    :root { --header-height: 50px; --footer-height: 42px; }
    .header__title { font-size: 1.2rem; }
    .main-container { gap: 12px; padding: 12px; }
    .sidebar, .content, .widgets { padding: 12px; border-radius: var(--radius-md); }
    .sidebar__profile-box { height: 48px; }
    .sidebar__menu { gap: 6px; }
    .sidebar__menu-line { height: 7px; flex: 1 1 40px; min-width: 30px; }
    .content__banner { height: 130px; }
    .content__banner::after { font-size: 0.85rem; }
    .content__body-line { height: 8px; }
    .widgets { gap: 14px; }
    .widgets__square-sm { width: 40px; height: 40px; }
    .widgets__square-md { width: 56px; height: 56px; }
    .widgets__circle { width: 64px; height: 64px; }
    .widgets__circle::after { font-size: 1.4rem; }
}

/* Icons */


.nav-item {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    cursor: pointer;

    position: relative;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(225, 29, 72, 0.18);
    transform: scale(1.08);
} 

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
}

.nav-icon {
    width: 26px;
    height: 26px;
    image-rendering: pixelated;
    transition: transform 0.15s ease;
}

.nav-item:hover .nav-icon {
    transform: translateY(-1px);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 4px rgba(225, 29, 72, 0.6));
}

.nav-item.active .nav-icon {
    transform: scale(1.05);
}

.nav-item {
    will-change: transform, background-color;
}