* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#logo-newaustin {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    /* desce a logo para fora do header */
    width: 200px;
    height: auto;
    border-radius: 14px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.233)) drop-shadow(0 2px 8px #2222227a);
    background: none;
    border: none;
    z-index: 1010;
    transition: transform 0.2s;
}

#logo-newaustin:hover {
    animation: jumpLogo 2s ease-out 1;
}

@keyframes jumpLogo {
    0% {
        transform: translateX(-50%) translateY(20px);
    }

    30% {
        transform: translateX(-50%) translateY(20px) scale(1.04);
    }

    50% {
        transform: translateX(-50%) translateY(20px) scale(1.02);
    }

    70% {
        transform: translateX(-50%) translateY(20px) scale(1);
    }

    100% {
        transform: translateX(-50%) translateY(20px);
    }
}

ul {
    list-style-type: none;
}

li {
    list-style-position: inside;
    padding-left: 1em;
}

li::before {
    content: "•";
    color: orange;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    padding-top: 200px;
    /* aumente para descer o conteúdo */
    height: 100vh;
    overflow: hidden;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120px;
    z-index: 1000;
    background-image: url('images/banner-new-v2.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-bottom: 3px solid #fc4a17;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.main-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #8a2200ee;
    /* cor opaca sobre a imagem */
    z-index: 1;
    pointer-events: none;
}

.main-header>* {
    position: relative;
    z-index: 2;
}

.main-header a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.header-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo .icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.header-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.header-subtitle {
    align-items: center;
    font-size: 14px;
    color: #ffffff;
    margin-left: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.container {
    display: flex;
    min-height: calc(100vh - 130px);
    max-width: 1400px;
    width: 100%;
    position: relative;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); */
    /* Removido */
    margin-top: 0;
    height: calc(100vh - 130px);
    overflow: hidden;
}

.sidebar {
    width: 320px;
    background-color: #0f0f0f;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
    position: fixed;
    height: calc(100vh - 130px);
    left: 0;
    top: 130px;
    z-index: 100;
}

.header {
    padding: 20px 20px;
    border-bottom: 1px solid #2a2a2a;
    background-color: #0f0f0f;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.header h1 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.nav {
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 3px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #c0c0c0;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.nav-item.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-left: 3px solid #fc4a17;
}

.nav-item.main-item {
    color: #ffffff;
    font-weight: 600;
}

.nav-item.main-item:hover {
    background-color: #1a1a1a;
}

.nav-item.main-item.active {
    background-color: #1a1a1a;
    border-left: 3px solid #fc4a17;
}

.nav-item .icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    filter: none;
}

.nav-item:hover .icon {
    filter: none;
}

.nav-item.active .icon {
    filter: none;
}

.nav-item.collapsible .arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-item.collapsible.expanded .arrow {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #0f0f0f;
}

.nav-submenu.expanded {
    max-height: 1000px;
}

.nav-subitem {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 52px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #a0a0a0;
    font-size: 13px;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-subitem:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.nav-subitem.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-left: 3px solid #fc4a17;
}

.nav-subitem .icon {
    margin-right: 10px;
    font-size: 14px;
    width: 16px;
    text-align: center;
    filter: grayscale(100%);
}

.nav-subitem:hover .icon {
    filter: grayscale(80%);
}

.nav-subitem.active .icon {
    filter: grayscale(0%);
}

/* Só o texto rola, não o retângulo do content */
.content {
    flex: 1;
    margin-left: 320px;
    padding: 32px 40px;
    max-width: calc(1400px - 320px);
    width: calc(100% - 320px);
    background-color: #0f0f0f;
    height: calc(100vh - 130px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border-bottom: none;
}

.content>* {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 40px;
    border-bottom: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    color: #888888;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb .icon {
    margin-right: 8px;
    font-size: 14px;
}

.content-section {
    display: none;
    border-bottom: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
    border-bottom: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 24px 0 12px 0;
    line-height: 1.3;
}

.content-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 16px 0 8px 0;
    line-height: 1.3;
}

.content-text {
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 15px;
}

.content-text p {
    margin-bottom: 16px;
}

.content-text ul {
    margin: 16px 0 16px 24px;
}

.content-text ul ul {
    margin: 8px 0 8px 24px;
}

.content-text li {
    margin-bottom: 8px;
    position: relative;
}

.content-text li::marker {
    color: #4a90e2;
}

.highlight-box {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.highlight-box.info {
    background-color: rgba(74, 144, 226, 0.1);
    border-left-color: #4a90e2;
    color: #a8c8f0;
}

.highlight-box.success {
    background-color: rgba(255, 67, 10, 0.836);
    border-left-color: #ff5100;
    color: #ffffff;
}

.highlight-box.warning {
    background-color: rgba(255, 67, 10, 0.836);
    border-left-color: #ff5100;
    color: #ffffff;
}

.highlight-box.error {
    background-color: rgba(211, 47, 47, 0.1);
    border-left-color: #d32f2f;
    color: #ffb3b3;
}

.highlight-box p {
    margin-bottom: 8px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box ul {
    margin: 8px 0 8px 20px;
}

.highlight-box h4 {
    margin: 0 0 8px 0;
    color: inherit;
    font-size: 15px;
}

/* 4:3 and small screens fix */
@media (max-width: 1200px) {
    #logo-newaustin {
        width: 140px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(18px);
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 8px #fc4a17);
        z-index: 1010;

    }

    .main-header {
        height: 90px;
        position: relative;
        overflow: visible;
    }

    .container {
        height: calc(100vh - 90px);
        max-width: 100vw;
        width: 100vw;
    }

    .sidebar {
        height: calc(100vh - 90px);
        width: 220px;
        left: 0;
        top: 90px;
        position: fixed;
    }

    .content {
        height: calc(100vh - 90px);
        margin-left: 220px;
        padding: 20px 10px;
        max-width: calc(100vw - 220px);
        width: calc(100vw - 220px);
    }

    body {
        padding-top: 108px;
    }
}

@media (max-width: 900px) {
    #logo-newaustin {
        width: 110px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(14px);
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 8px #fc4a17);
        z-index: 1010;
    }

    .main-header {
        height: 70px;
        position: relative;
        overflow: visible;
    }

    .container {
        height: calc(100vh - 70px);
        max-width: 100vw;
        width: 100vw;
    }

    .sidebar {
        height: calc(100vh - 70px);
        width: 100vw;
        left: 0;
        top: 70px;
        position: fixed;
        z-index: 1000;
    }

    .content {
        height: calc(100vh - 70px);
        margin-left: 0;
        padding: 12px 4px;
        max-width: 100vw;
        width: 100vw;
    }

    body {
        padding-top: 84px;
    }
}

@media (max-width: 768px) {
    #logo-newaustin {
        width: 90px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 8px #fc4a17);
        z-index: 1010;
    }

    body {
        padding-top: 80px;
    }

    .main-header {
        height: 60px;
        position: relative;
        overflow: visible;
    }

    .container {
        height: calc(100vh - 80px);
        max-width: 100vw;
        width: 100vw;
    }

    .sidebar {
        height: calc(100vh - 80px);
        width: 100vw;
        left: 0;
        top: 80px;
        position: fixed;
        z-index: 1000;
    }

    .content {
        height: calc(100vh - 80px);
        margin-left: 0;
        max-width: 100vw;
        width: 100vw;
        padding: 20px 24px;
    }

    .content-section h1 {
        font-size: 24px;
    }

    .nav-item {
        padding: 14px 20px;
        font-size: 15px;
    }

    .nav-subitem {
        padding: 12px 20px 12px 52px;
        font-size: 14px;
    }

    .header-content {
        padding: 0 16px;
    }

    .header-logo h1 {
        font-size: 18px;
    }

    .header-subtitle {
        display: none;
    }

    .menu-toggle {
        top: 85px;
    }

    body {
        padding-top: 70px;
    }
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        top: 85px;
    }

    .content {
        padding-top: 100px;
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

.nav-item .icon,
.breadcrumb .icon,
.content-section h1::before {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', emoji;
}

.content-text a:hover {
    background-color: #dc143c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.search-highlight {
    background-color: #8B0000;
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(139, 0, 0, 0.3);
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        background-color: #dc143c;
    }

    50% {
        background-color: #8B0000;
    }

    100% {
        background-color: #8B0000;
    }
}

.header-btn {
    background-color: #8B0000;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #8B0000;
    margin-left: auto;
}

.header-btn:hover {
    background-color: #dc143c;
    border-color: #dc143c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

hr {
    display: none !important;
    border: none !important;
    background: none !important;
    height: 0 !important;
}