/**
 * SioreX - Layout Principal Industrial
 * Estrutura de sidebar + conteúdo com metal desgastado
 */

/* === LAYOUT PRINCIPAL (PÓS-LOGIN) === */
.main-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--background);
}

/* === SIDEBAR - ESTILO METÁLICO === */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    flex-shrink: 0;
    position: relative;

    /* Fundo base escuro */
    background: #1a1a1a;

    /* Borda direita */
    border-right: 1px solid #3a3a3a;

    /* Sombra externa */
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}


.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

/* Header da Sidebar - ESCURO METÁLICO com parafusos */
.sidebar-header {
    padding: 20px 16px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 75px;
    margin-bottom: 0;
    position: relative;

    /* Gradiente metálico escuro com parafusos SVG */
    background:
        /* Parafusos nos 4 cantos */
        url('../img/screw-phillips.svg') 6px 6px no-repeat,
        url('../img/screw-phillips.svg') calc(100% - 6px) 6px no-repeat,
        url('../img/screw-phillips.svg') 6px calc(100% - 6px) no-repeat,
        url('../img/screw-phillips.svg') calc(100% - 6px) calc(100% - 6px) no-repeat,
        /* Gradiente base */
        linear-gradient(180deg,
            #3a3a3a 0%,
            #2a2a2a 20%,
            #1a1a1a 80%,
            #151515 100%
        );
    background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, auto;

    /* Borda inferior com brilho */
    border-bottom: 1px solid #4a4a4a;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.sidebar-brand {
    flex: 1;
    overflow: hidden;
}

/* ============================================================
   NOME DA MARCA: S-IORE-X (estilizado)
   S e X: Cinzel Decorative, grande, nas pontas
   IORE: Livvic Bold, menor, centralizado
   ============================================================ */
.brand-name {
    display: flex;
    align-items: flex-end;
    margin: 0;
    white-space: nowrap;
    line-height: 1;
}

/* S - Cinzel Decorative, grande, METÁLICO */
.brand-s {
    font-family: 'Cinzel Decorative', serif;
    font-size: 49px;
    font-weight: 400;
    line-height: 1;
    /* Gradiente metálico prateado */
    background: linear-gradient(180deg,
        #e8e8e8 0%,
        #c0c0c0 25%,
        #f5f5f5 50%,
        #a0a0a0 75%,
        #c8c8c8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.6));
}

/* Container IORE - elevado */
.brand-iore {
    display: inline-flex;
    align-items: baseline;
    margin-bottom: 6px;
}

/* I - Livvic Bold, METÁLICO */
.brand-i {
    font-family: 'Livvic', sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    /* Gradiente metálico prateado */
    background: linear-gradient(180deg,
        #e8e8e8 0%,
        #c0c0c0 25%,
        #f5f5f5 50%,
        #a0a0a0 75%,
        #c8c8c8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

/* OR - Livvic Bold, METÁLICO prateado */
.brand-or {
    font-family: 'Livvic', sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    /* Gradiente metálico prateado (igual aos outros) */
    background: linear-gradient(180deg,
        #e8e8e8 0%,
        #c0c0c0 25%,
        #f5f5f5 50%,
        #a0a0a0 75%,
        #c8c8c8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

/* E - Livvic Bold, METÁLICO */
.brand-e {
    font-family: 'Livvic', sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    /* Gradiente metálico prateado */
    background: linear-gradient(180deg,
        #e8e8e8 0%,
        #c0c0c0 25%,
        #f5f5f5 50%,
        #a0a0a0 75%,
        #c8c8c8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

/* X - Cinzel Decorative, grande, METÁLICO prateado */
.brand-x {
    font-family: 'Cinzel Decorative', serif;
    font-size: 49px;
    font-weight: 400;
    line-height: 1;
    /* Gradiente metálico prateado (igual ao S) */
    background: linear-gradient(180deg,
        #e8e8e8 0%,
        #c0c0c0 25%,
        #f5f5f5 50%,
        #a0a0a0 75%,
        #c8c8c8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.6));
}

/* Versão pequena para footer */
.brand-name-sm .brand-s,
.brand-name-sm .brand-x {
    font-size: 14px;
}

.brand-name-sm .brand-iore {
    margin-bottom: 1px;
}

.brand-name-sm .brand-i,
.brand-name-sm .brand-or,
.brand-name-sm .brand-e {
    font-size: 9px;
}

.sidebar-brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-top: 4px;
}

.sidebar.collapsed .sidebar-brand {
    display: none;
}

/* Menu da Sidebar - FUNDO METÁLICO PRATEADO com parafusos */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    position: relative;

    /* Gradiente metálico prateado com parafusos SVG */
    background:
        /* Parafusos nos 4 cantos */
        url('../img/screw-phillips.svg') 5px 5px no-repeat,
        url('../img/screw-phillips.svg') calc(100% - 5px) 5px no-repeat,
        url('../img/screw-phillips.svg') 5px calc(100% - 5px) no-repeat,
        url('../img/screw-phillips.svg') calc(100% - 5px) calc(100% - 5px) no-repeat,
        /* Luz central (brilho suave no topo) */
        radial-gradient(ellipse 100% 40% at 50% 0%,
            rgba(255,255,255,0.3) 0%,
            transparent 60%
        ),
        /* Gradiente metálico prateado */
        linear-gradient(180deg,
            #e8e8e8 0%,
            #c0c0c0 25%,
            #f5f5f5 50%,
            #a0a0a0 75%,
            #c8c8c8 100%
        );
    background-size: 12px 12px, 12px 12px, 12px 12px, 12px 12px, auto, auto;

    /* Bordas para separação visual */
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #808080;

    /* Sombra interna para profundidade */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Seção do menu - chapa elevada com parafusos */
.menu-section {
    padding: 14px 12px 10px;
    margin: 8px 8px;
    border-radius: 6px;
    position: relative;

    /* Borda metálica com efeito 3D mais forte */
    border: 2px solid;
    border-color: rgba(255,255,255,0.5) rgba(0,0,0,0.3) rgba(0,0,0,0.35) rgba(255,255,255,0.4);

    /* Gradiente metálico elevado com parafusos SVG */
    background:
        /* Parafusos nos 4 cantos */
        url('../img/screw-phillips.svg') 4px 4px no-repeat,
        url('../img/screw-phillips.svg') calc(100% - 4px) 4px no-repeat,
        url('../img/screw-phillips.svg') 4px calc(100% - 4px) no-repeat,
        url('../img/screw-phillips.svg') calc(100% - 4px) calc(100% - 4px) no-repeat,
        /* Gradiente base */
        linear-gradient(180deg,
            rgba(255,255,255,0.25) 0%,
            rgba(255,255,255,0.12) 40%,
            rgba(0,0,0,0.08) 100%
        );
    background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, auto;

    /* Sombra externa mais forte para elevação */
    box-shadow:
        inset 0 2px 1px rgba(255,255,255,0.45),
        inset 0 -1px 1px rgba(0,0,0,0.2),
        0 4px 8px rgba(0,0,0,0.35),
        0 2px 3px rgba(0,0,0,0.25);
}

/* Título da seção - TEXTO ESTAMPADO/PRENSADO no metal */
.menu-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    padding: 0 4px;

    /* Cor metálica escura - como se estivesse prensado no metal */
    color: #505050;

    /* Efeito de texto prensado: sombra clara embaixo (luz de cima) */
    text-shadow:
        0 1px 0 rgba(255,255,255,0.7),
        0 -1px 1px rgba(0,0,0,0.15);
}

.sidebar.collapsed .menu-section-title {
    display: none;
}

/* Item do menu - TEXTO METÁLICO */
.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px 0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    outline: 2px solid var(--copper-400);
    outline-offset: -2px;
}

.menu-item.active {
    background: linear-gradient(90deg,
        rgba(140, 62, 28, 0.35) 0%,
        rgba(192, 106, 60, 0.2) 30%,
        rgba(192, 106, 60, 0.08) 60%,
        transparent 100%
    );
    border: 2px solid;
    border-image: linear-gradient(90deg,
        var(--copper-700) 0%,
        var(--copper-500) 40%,
        var(--copper-300) 100%
    ) 1;
}

/* Texto do item ativo - cor cobre escuro */
.menu-item.active span {
    font-size: 12px;
    color: #6C2E14;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* Ícone do item ativo - cobre escuro */
.menu-item.active i {
    color: #6C2E14;
}

/* Barra lateral do item ativo - cor cobre */
.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--copper-300), var(--copper-500));
    border-radius: 0 2px 2px 0;
    box-shadow: 1px 0 2px rgba(0,0,0,0.3);
}

/* Ícones do menu - ESTAMPADOS no metal */
.menu-item i {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;

    /* Cor metálica escura */
    color: #404040;

    /* Efeito prensado */
    text-shadow:
        0 1px 0 rgba(255,255,255,0.6),
        0 -1px 1px rgba(0,0,0,0.2);
}

/* Texto do menu - ESTAMPADO/PRENSADO no metal */
.menu-item span {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Cor metálica escura */
    color: #3a3a3a;

    /* Efeito de texto prensado: sombra clara embaixo simula luz de cima */
    text-shadow:
        0 1px 0 rgba(255,255,255,0.7),
        0 -1px 1px rgba(0,0,0,0.2);
}


.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar.collapsed .menu-item i {
    margin-right: 0;
}

/* Submenu - Área afundada no metal claro */
.submenu {
    display: none;
    /* Fundo ligeiramente mais escuro para área rebaixada */
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.12) 0%,
            rgba(0,0,0,0.06) 100%
        );
    margin: 0 8px;
    border-radius: var(--radius-sm);

    /* Efeito de sulco no metal claro */
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        inset 0 -1px 0 rgba(255,255,255,0.2);
}

.submenu.show {
    display: block;
}

.submenu .menu-item {
    padding-left: 28px;
    margin: 0;
    border-radius: 0;
}

.submenu .menu-item span {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #4a4a4a;
}

/* Submenu - texto do item ativo */
.submenu .menu-item.active span {
    font-size: 11px;
    color: #6C2E14;
}

/* Submenu - ícone do item ativo */
.submenu .menu-item.active i {
    color: #6C2E14;
}

.menu-item .arrow {
    margin-left: auto;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.menu-item.expanded .arrow {
    transform: rotate(90deg);
}

/* Footer da Sidebar (Usuário) - ESCURO METÁLICO com parafusos */
.sidebar-footer {
    padding: 15px 20px;
    position: relative;

    /* Gradiente metálico escuro com parafusos SVG */
    background:
        /* Parafusos nos 4 cantos */
        url('../img/screw-phillips.svg') 6px 6px no-repeat,
        url('../img/screw-phillips.svg') calc(100% - 6px) 6px no-repeat,
        url('../img/screw-phillips.svg') 6px calc(100% - 6px) no-repeat,
        url('../img/screw-phillips.svg') calc(100% - 6px) calc(100% - 6px) no-repeat,
        /* Gradiente base */
        linear-gradient(180deg,
            #252525 0%,
            #1a1a1a 30%,
            #151515 80%,
            #101010 100%
        );
    background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, auto;

    /* Borda superior com brilho sutil */
    border-top: 1px solid #3a3a3a;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 -2px 4px rgba(0,0,0,0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* Avatar metálico circular */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;

    /* Gradiente metálico brilhante */
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.25) 0%, transparent 50%),
        linear-gradient(135deg,
            #9AA0AC 0%,
            #6A7080 30%,
            #4A5060 60%,
            #3A4050 100%
        );

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;

    /* Borda metálica */
    border: 2px solid #5A6070;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 2px 6px rgba(0,0,0,0.4);

    /* Ícone em alumínio */
    color: #D0D8E4;
    text-shadow:
        0 -1px 1px rgba(0,0,0,0.5),
        0 1px 0 rgba(255,255,255,0.15);
}

.user-details {
    flex: 1;
    overflow: hidden;
}

/* Nome do usuário - GRADIENTE METÁLICO */
.user-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Gradiente metálico */
    background: linear-gradient(180deg,
        #e0e0e0 0%,
        #c8c8c8 25%,
        #f0f0f0 50%,
        #a0a0a0 75%,
        #b8b8b8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

/* Cargo do usuário */
.user-role {
    font-size: 11px;
    color: #888;
    letter-spacing: 1px;
}

.sidebar.collapsed .user-details {
    display: none;
}

/* Botão Sair - Mesmo estilo do btn-metallic-danger */
.btn-logout {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    /* Gradiente igual ao btn-metallic-danger */
    background:
        var(--texture-noise-heavy),
        var(--texture-brushed),
        linear-gradient(180deg,
            #A84040 0%,
            #8C3030 8%,
            #702424 25%,
            #5A1818 50%,
            #702424 75%,
            #8C3030 92%,
            #A84040 100%
        );

    /* Borda igual ao btn-metallic-danger */
    border: 1px solid #3A1010;

    /* Cor do texto igual ao btn-metallic-danger */
    color: #F0E0E0;

    /* Texto gravado */
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.5);

    /* Sombra igual ao btn-metallic */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Texto e ícone herdam a cor do botão */
.btn-logout span,
.btn-logout i {
    color: inherit;
    text-shadow: inherit;
}

/* Hover - igual ao btn-metallic-danger:hover */
.btn-logout:hover {
    background:
        var(--texture-noise-heavy),
        var(--texture-brushed),
        linear-gradient(180deg,
            #B85050 0%,
            #A84040 8%,
            #8C3030 25%,
            #702424 50%,
            #8C3030 75%,
            #A84040 92%,
            #B85050 100%
        );
    color: #FFFFFF;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-logout:hover span,
.btn-logout:hover i {
    color: #FFFFFF;
}

/* Active - igual ao btn-metallic:active */
.btn-logout:active {
    background:
        var(--texture-noise-heavy),
        var(--texture-brushed),
        linear-gradient(180deg,
            #702424 0%,
            #8C3030 25%,
            #A84040 50%,
            #8C3030 75%,
            #702424 100%
        );
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(1px);
}

.sidebar.collapsed .btn-logout span {
    display: none;
}

/* === CONTEÚDO PRINCIPAL - CINZA ESCURO === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        var(--texture-noise-heavy),
        linear-gradient(180deg,
            var(--dark-200) 0%,
            var(--dark-300) 5%,
            var(--dark-400) 100%
        );
}

/* Header do Conteúdo - AÇO INOX */
.content-header {
    background: linear-gradient(180deg,
        var(--inox-500) 0%,
        var(--inox-600) 5%,
        var(--inox-700) 20%,
        var(--inox-800) 60%,
        var(--inox-900) 90%,
        var(--dark-400) 100%
    );
    padding: 12px 20px;
    border-bottom: 2px solid var(--dark-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -1px 0 rgba(0,0,0,0.4),
        0 4px 12px rgba(0,0,0,0.5);
}

.content-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.content-header-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.content-header-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    /* Gradiente metálico prateado brilhante */
    background: linear-gradient(180deg,
        #e8e8e8 0%,
        #c0c0c0 25%,
        #f5f5f5 50%,
        #a0a0a0 75%,
        #c8c8c8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.6));
}

.content-header-subtitle {
    font-size: var(--font-size-base);
    margin: 0;
    /* Gradiente metálico prateado suave */
    background: linear-gradient(180deg,
        #c0c0c0 0%,
        #a0a0a0 50%,
        #c0c0c0 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

.content-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Área do Conteúdo - Metal Prateado Brilhante */
.content-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    /* Gradiente metálico prateado brilhante (igual aos textos) */
    background:
        var(--texture-brushed),
        linear-gradient(180deg,
            #e8e8e8 0%,
            #c0c0c0 15%,
            #f5f5f5 35%,
            #a0a0a0 50%,
            #f5f5f5 65%,
            #c0c0c0 85%,
            #e8e8e8 100%
        );
    /* Sombra interna para profundidade */
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Footer do Conteúdo - Metal escuro polido */
.content-footer {
    background: linear-gradient(180deg,
        var(--inox-700) 0%,
        var(--inox-800) 40%,
        var(--inox-900) 80%,
        var(--dark-400) 100%
    );
    padding: 9px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    min-height: var(--footer-height);
    border-top: 1px solid var(--inox-600);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 -2px 8px rgba(0,0,0,0.4);
}

/* Texto do footer - gradiente cobre brilhante */
.content-footer span {
    background: linear-gradient(180deg,
        #E8C896 0%,
        #D4A04D 25%,
        #F5D89A 50%,
        #C49A7A 75%,
        #D4A04D 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.6));
}

/* === TOOLBAR - Aço Inox === */
.toolbar {
    background: linear-gradient(180deg,
        var(--inox-600) 0%,
        var(--inox-700) 15%,
        var(--inox-800) 60%,
        var(--inox-900) 100%
    );
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 4px 10px rgba(0,0,0,0.5);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-search input {
    min-width: 250px;
    /* Texto branco quando não focado */
    color: #FFFFFF;
    /* Garante texto normal (não maiúsculas) */
    text-transform: none;
}

.toolbar-search input:focus {
    /* Texto cobre quando focado */
    color: var(--copper-200);
}

/* Input Group Industrial */
.input-group {
    display: flex;
}

.input-group .input-group-text {
    background:
        var(--texture-noise-heavy),
        linear-gradient(180deg,
            #4A4C50 0%,
            #3A3C40 50%,
            #2A2C30 100%
        );
    border: 1px solid #4A4C50;
    border-right: none;
    color: var(--inox-300);
    padding: 8px 12px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* === PROJETO ATIVO BANNER === */
.projeto-ativo-banner {
    background:
        var(--texture-noise-heavy),
        linear-gradient(90deg,
            var(--patina-600) 0%,
            var(--patina-700) 50%,
            var(--patina-800) 100%
        );
    color: var(--patina-100);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--patina-900);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.4);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

.projeto-ativo-banner i {
    margin-right: 8px;
}

.projeto-ativo-banner .btn-parar {
    background:
        var(--texture-noise-heavy),
        linear-gradient(180deg,
            rgba(255,255,255,0.15) 0%,
            rgba(255,255,255,0.05) 100%
        );
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--patina-100);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-xs);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.3);
}

.projeto-ativo-banner .btn-parar:hover {
    background:
        var(--texture-noise-heavy),
        linear-gradient(180deg,
            rgba(255,255,255,0.25) 0%,
            rgba(255,255,255,0.1) 100%
        );
}

/* === BREADCRUMB === */
.breadcrumb-metallic {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: var(--font-size-sm);
}

.breadcrumb-metallic li {
    color: var(--text-muted);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.4);
}

.breadcrumb-metallic li a {
    color: var(--inox-300);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb-metallic li a:hover {
    color: var(--inox-200);
    text-decoration: underline;
}

.breadcrumb-metallic li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-muted);
}

/* === EMPTY STATE === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 64px;
    /* Cor metálica prateada */
    color: #c0c0c0;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    text-shadow:
        0 -2px 2px rgba(0,0,0,0.6),
        0 2px 0 rgba(255,255,255,0.15);
}

.empty-state h3 {
    font-size: var(--font-size-2xl);
    margin: 0 0 8px 0;
    /* Gradiente metálico prateado */
    background: linear-gradient(180deg,
        #e8e8e8 0%,
        #c0c0c0 25%,
        #f5f5f5 50%,
        #a0a0a0 75%,
        #c8c8c8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

.empty-state p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin: 0 0 20px 0;
    text-shadow: 0 -1px 1px rgba(0,0,0,0.4);
}

/* === STAT CARDS === */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background:
        var(--texture-noise-heavy),
        var(--texture-scratches),
        linear-gradient(180deg,
            #4A4C50 0%,
            #3A3C40 10%,
            #2A2C30 90%,
            #1E2022 100%
        );
    border: 1px solid #1E2022;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.4);
}

.stat-card-icon {
    font-size: 32px;
    /* Cor metálica prateada */
    color: #c0c0c0;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    text-shadow:
        0 -1px 1px rgba(0,0,0,0.5),
        0 1px 0 rgba(255,255,255,0.15);
}

.stat-card-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    /* Gradiente metálico prateado */
    background: linear-gradient(180deg,
        #e8e8e8 0%,
        #c0c0c0 25%,
        #f5f5f5 50%,
        #a0a0a0 75%,
        #c8c8c8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

.stat-card-label {
    font-size: var(--font-size-sm);
    /* Cor metálica prateada suave */
    color: #a0a0a0;
    text-shadow: 0 -1px 1px rgba(0,0,0,0.4);
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .content-header-title {
        font-size: var(--font-size-xl);
    }
}
