* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #020617;
    padding: 25px;
    border-right: 1px solid #1e293b;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #38bdf8;
    margin-bottom: 35px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 10px;
}

.sidebar a:hover {
    background: #1e293b;
    color: #38bdf8;
}

.nav-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #64748b;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-caret {
    transition: transform 0.2s ease;
}

.nav-group-title[aria-expanded="false"] .nav-caret {
    transform: rotate(-90deg);
}

.nav-subgroup {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.25s ease;
}

.nav-subgroup.collapsed {
    max-height: 0;
}

.sidebar a.nav-sub {
    padding-left: 28px;
}

.content {
    flex: 1;
    padding: 30px;
}

.topbar {
    background: #1e293b;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
}

.topbar h1 {
    margin: 0;
    color: #38bdf8;
    font-size: 34px;
}

.topbar p {
    margin: 8px 0 0;
    color: #94a3b8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.card span {
    display: block;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.card strong {
    font-size: 38px;
    color: #22c55e;
}

.card.danger strong {
    color: #ef4444;
}

.card.warning strong {
    color: #facc15;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 25px;
}

.panel h2 {
    color: #38bdf8;
    margin-top: 0;
}

.mission {
    background: #0f172a;
    border: 1px solid #334155;
    border-left: 5px solid #38bdf8;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.mission h3 {
    margin-top: 0;
    color: #38bdf8;
}

.mission p {
    color: #e5e7eb;
}

.mission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.mission-meta span {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #cbd5e1;
}

.btn-action {
    margin-top: 15px;
    background: #38bdf8;
    color: #020617;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.btn-action:hover {
    background: #0ea5e9;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

th {
    color: #38bdf8;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #334155;
}

td {
    padding: 10px;
    border-bottom: 1px solid #334155;
    color: #e5e7eb;
}

tr:hover {
    background: #0f172a;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.catalogo-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color .15s ease;
}

.catalogo-card:hover {
    border-color: #38bdf8;
}

.catalogo-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #0f172a;
    display: block;
}

.catalogo-card-body {
    padding: 14px;
}

.catalogo-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #e5e7eb;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
    margin-bottom: 8px;
}

.regiao-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.regiao-tag {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
}

.regiao-tag.ganha {
    color: #22c55e;
    border-color: #22c55e;
}

.regiao-tag.perde {
    color: #ef4444;
    border-color: #ef4444;
}

.imagem-capa {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    background: #0f172a;
    border: 1px solid #334155;
    display: block;
}

@media (max-width: 1100px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid {
        grid-template-columns: 1fr;
    }
}