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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #05060a;
    color: #e4e7f0;
}

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

.sidebar {
    width: 260px;
    background: radial-gradient(circle at top left, #1b2333 0, #070814 55%, #05060a 100%);
    border-right: 1px solid #252a3a;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

.sidebar-title {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.sidebar-subtitle {
    font-size: 11px;
    color: #9ba5ce;
}

.sidebar-toggle {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #9ba5ce;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

.menu {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    padding: 8px 10px;
    border-radius: 8px;
    color: #c0c7e4;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item.active {
    background: linear-gradient(90deg, #2f7cff, #6a5cff);
    color: #fff;
}

.menu-item.download {
    margin-top: 12px;
    background: linear-gradient(90deg, #15b374, #27d39b);
    color: #fff;
    font-weight: 600;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
}

.pill-green { border-color: #2dd29f; color: #2dd29f; }
.pill-blue { border-color: #4aa8ff; color: #4aa8ff; }
.pill-yellow { border-color: #ffd66a; color: #ffd66a; }

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #252a3a;
    background: linear-gradient(to right, #05060a, #080a16);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-title {
    font-weight: 600;
    font-size: 16px;
}

.topbar-sub {
    font-size: 12px;
    color: #9ba5ce;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher select {
    background: #111321;
    border: 1px solid #343c5c;
    border-radius: 6px;
    color: #e4e7f0;
    padding: 4px 8px;
    font-size: 12px;
}

.btn-primary {
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f7cff, #6a5cff);
    text-decoration: none;
    color: white;
    font-size: 13px;
}

.content-inner {
    padding: 20px;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto 40px;
}

.hero {
    padding: 20px 22px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #202a40 0, #0a0d18 50%, #05060a 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    margin-bottom: 22px;
}

.hero-title {
    font-size: 22px;
    font-weight: 650;
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 14px;
    color: #a3aed9;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    font-size: 11px;
}

.tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.card {
    background: #090c18;
    border-radius: 14px;
    border: 1px solid #232946;
    padding: 14px 16px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body {
    font-size: 13px;
    color: #b8c1ec;
}

.code-block {
    background: #050814;
    border-radius: 10px;
    border: 1px solid #252a3a;
    padding: 10px 12px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    overflow-x: auto;
    margin-top: 8px;
}

.site-footer {
    margin-top: auto;
    padding: 12px 20px 16px;
    border-top: 1px solid #252a3a;
    font-size: 12px;
    color: #9ba5ce;
    display: flex;
    justify-content: space-between;
}

.site-footer a {
    color: #7ea2ff;
    text-decoration: none;
    margin-left: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.table th,
.table td {
    border-bottom: 1px solid #252a3a;
    padding: 6px 4px;
    text-align: left;
}

.table th {
    color: #9ba5ce;
    font-weight: 500;
}

.badge {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #111321;
    border: 1px solid #343c5c;
}

@media (max-width: 900px) {
    .app-root {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding-bottom: 8px;
    }
    .menu {
        display: none;
    }
    .menu.open {
        display: flex;
    }
    .sidebar-toggle {
        display: inline-block;
    }
    .content-inner {
        padding: 16px;
    }
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}
