﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #050816;
    color: #f5f7ff;
}

.app {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            #18245a 0%,
            #050816 45%
        );
}

.header {
    border-bottom: 1px solid #27305c;
    padding: 24px 7%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 42px;
}

.brand h1 {
    margin: 0;
    font-size: 30px;
}

.brand p {
    margin: 4px 0 0;
    color: #aab3d6;
}

.main {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 60px 0;
}

.hero {
    margin-bottom: 35px;
}

.hero h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.hero p {
    color: #aab3d6;
    font-size: 17px;
}

.analysis-card,
.status-card {
    background: rgba(15, 23, 55, 0.88);
    border: 1px solid #29335f;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-header {
    margin-bottom: 30px;
}

.card-header h3 {
    margin: 0 0 8px;
    font-size: 23px;
}

.card-header p {
    margin: 0;
    color: #aab3d6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-weight: 600;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 9px;
    border: 1px solid #374270;
    background: #080d22;
    color: #ffffff;
    font-size: 15px;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #7184ff;
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 32px;
}

button {
    border: none;
    border-radius: 9px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: #5d6df5;
    color: white;
}

.btn-primary:hover {
    background: #7180ff;
}

.btn-secondary {
    background: #182143;
    color: #dce2ff;
    border: 1px solid #374270;
}

.btn-secondary:hover {
    background: #222d55;
}

.status-card {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.status-icon {
    font-size: 30px;
}

.status-card h3 {
    margin: 0 0 6px;
}

.status-card p {
    margin: 0;
    color: #aab3d6;
}

footer {
    text-align: center;
    padding: 30px;
    color: #68739c;
    border-top: 1px solid #20294d;
}

@media (max-width: 700px) {

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

    .actions {
        flex-direction: column;
    }

    .hero h2 {
        font-size: 30px;
    }

}/* ============================================================
   GLOBAL ASTROSPHERE NAVIGATION
============================================================ */

.global-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 3%;
    border-bottom: 1px solid #27305c;
    background: rgba(10, 15, 35, 0.92);
    white-space: nowrap;
}

.global-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #cbd3f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.global-nav-form {
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex: 0 0 auto;
}

.global-nav-button {
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.global-nav-link:hover {
    background: #182044;
    border-color: #394579;
    color: #ffffff;
}

.global-nav-link[aria-current="page"] {
    background: #202a52;
    border-color: #4b5b9a;
    color: #ffffff;
}

/*
 * Keep the complete navigation on one row at normal desktop
 * widths. At narrower widths, allow horizontal scrolling rather
 * than wrapping the navigation into multiple rows.
 */
@media (max-width: 1150px) {

    .global-nav {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: thin;
        padding: 10px 3%;
    }

    .global-nav-link {
        flex: 0 0 auto;
    }
}

/* =========================================================
   PLANET PAGE TABS
   ========================================================= */

.planet-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px 0;
    padding: 0;
    border-bottom: 1px solid #27305c;
}

.planet-tab {
    appearance: none;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 7px 7px 0 0;
    background: transparent;
    color: #9da8d2;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.planet-tab:hover {
    background: rgba(70, 90, 160, 0.16);
    color: #ffffff;
}

.planet-tab.active {
    background: rgba(70, 100, 180, 0.18);
    border-color: #394579;
    border-bottom-color: #7f9cff;
    color: #ffffff;
}

@media (max-width: 700px) {
    .planet-tabs {
        overflow-x: auto;
    }

    .planet-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* ============================================================
   ASTROSPHERE VISUAL EXPERIENCE V2
   Shared visual language across the application
   Frontend only ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â no backend/scientific logic changes
   ============================================================ */

:root {

    --astro-bg:
        #020611;

    --astro-bg-soft:
        #050b1b;

    --astro-panel:
        rgba(7, 15, 34, 0.88);

    --astro-panel-strong:
        rgba(9, 19, 42, 0.94);

    --astro-border:
        rgba(96, 132, 198, 0.24);

    --astro-border-hover:
        rgba(55, 137, 255, 0.48);

    --astro-text:
        #f4f7ff;

    --astro-text-soft:
        #aebbd2;

    --astro-text-muted:
        #71809c;

    --astro-blue:
        #3d9cff;

    --astro-blue-soft:
        rgba(42, 112, 220, 0.18);

    --astro-gold:
        #ffd84d;

    --astro-radius:
        16px;

    --astro-shadow:
        0 20px 50px rgba(0, 0, 0, 0.34);

    --astro-shadow-soft:
        0 12px 32px rgba(0, 0, 0, 0.24);
}

/* ============================================================
   APPLICATION BACKGROUND
   ============================================================ */

html {
    background:
        #020611;
}

body {

    min-height: 100vh;

    margin: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(30, 74, 145, 0.14),
            transparent 32%
        ),
        radial-gradient(
            circle at 8% 45%,
            rgba(31, 91, 190, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 42%,
            rgba(90, 52, 180, 0.07),
            transparent 28%
        ),
        var(--astro-bg);

    color:
        var(--astro-text);

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}

/* ============================================================
   GLOBAL HEADINGS
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color:
        var(--astro-text);

    letter-spacing:
        -0.015em;
}

/* ============================================================
   SHARED NAVIGATION
   ============================================================ */

body > nav,
.navigation,
.main-navigation,
.site-navigation,
.navbar {

    background:
        linear-gradient(
            180deg,
            rgba(5, 13, 30, 0.96),
            rgba(2, 8, 21, 0.94)
        );

    border-bottom:
        1px solid
        var(--astro-border);

    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.24);

    backdrop-filter:
        blur(18px);
}

body > nav a,
.navigation a,
.main-navigation a,
.site-navigation a,
.navbar a {

    color:
        #cbd5e9;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    font-weight:
        700;

    text-decoration:
        none;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

body > nav a:hover,
.navigation a:hover,
.main-navigation a:hover,
.site-navigation a:hover,
.navbar a:hover {

    color:
        #ffffff;

    background:
        rgba(42, 101, 190, 0.16);
}

/* ============================================================
   GENERIC PANELS / CARDS
   ============================================================ */

.card,
.panel,
.info-card,
.fact-card,
.info-panel,
.scientific-card,
.context-card,
.relationship-card,
.result-card,
.object-card {

    background:
        linear-gradient(
            145deg,
            var(--astro-panel),
            rgba(3, 9, 23, 0.94)
        );

    border:
        1px solid
        var(--astro-border);

    border-radius:
        var(--astro-radius);

    box-shadow:
        var(--astro-shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    backdrop-filter:
        blur(16px);
}

.card:hover,
.panel:hover,
.info-card:hover,
.fact-card:hover,
.info-panel:hover,
.scientific-card:hover,
.context-card:hover,
.relationship-card:hover,
.result-card:hover,
.object-card:hover {

    border-color:
        rgba(61, 137, 255, 0.34);

    box-shadow:
        var(--astro-shadow),
        0 0 28px rgba(38, 105, 220, 0.06);
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */

button,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.action-button {

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    font-weight:
        700;

    border-radius:
        11px;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

button:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.action-button:hover {

    transform:
        translateY(-1px);

}

/* Default buttons */

button,
.btn {

    border:
        1px solid
        rgba(94, 126, 190, 0.28);

    background:
        linear-gradient(
            180deg,
            rgba(18, 35, 70, 0.92),
            rgba(7, 15, 34, 0.94)
        );

    color:
        #edf3ff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 22px rgba(0,0,0,0.16);
}

button:hover,
.btn:hover {

    border-color:
        rgba(61, 137, 255, 0.46);

    background:
        linear-gradient(
            180deg,
            rgba(29, 67, 125, 0.92),
            rgba(9, 23, 51, 0.96)
        );
}

/* Primary */

.btn-primary {

    background:
        linear-gradient(
            135deg,
            #1768c7,
            #0b3d83
        ) !important;

    border-color:
        rgba(75, 165, 255, 0.52) !important;

    color:
        white !important;

    box-shadow:
        0 0 25px rgba(32, 117, 235, 0.14);
}

/* Secondary */

.btn-secondary {

    background:
        rgba(11, 22, 47, 0.90) !important;

    border-color:
        rgba(95, 127, 188, 0.30) !important;

    color:
        #dce6f8 !important;
}

/* ============================================================
   GOLD / SOLAR ACTIONS
   ============================================================ */

button[data-action="solar"],
.solar-action,
.enter-solar-system {

    color:
        #ffe16a !important;

    background:
        linear-gradient(
            135deg,
            rgba(116, 87, 5, 0.78),
            rgba(48, 35, 4, 0.92)
        ) !important;

    border-color:
        rgba(255, 210, 54, 0.40) !important;

    box-shadow:
        0 0 25px rgba(255, 196, 0, 0.08);
}

/* ============================================================
   INPUTS / SEARCH / TEXT AREAS
   ============================================================ */

input,
select,
textarea {

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color:
        #edf3ff;

    background:
        rgba(6, 15, 34, 0.88);

    border:
        1px solid
        rgba(91, 124, 184, 0.28);

    border-radius:
        11px;

    outline:
        none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {

    border-color:
        rgba(61, 137, 255, 0.58);

    box-shadow:
        0 0 0 3px rgba(61, 137, 255, 0.09);
}

input::placeholder,
textarea::placeholder {

    color:
        #64728f;
}

/* ============================================================
   AI ASSISTANT
   ============================================================ */

.ai-assistant-panel {

    background:
        linear-gradient(
            145deg,
            rgba(7, 16, 37, 0.96),
            rgba(3, 8, 21, 0.98)
        ) !important;

    border:
        1px solid
        rgba(73, 126, 205, 0.30) !important;

    border-radius:
        18px !important;

    box-shadow:
        0 24px 60px rgba(0,0,0,0.36),
        inset 0 1px 0 rgba(255,255,255,0.04) !important;

    backdrop-filter:
        blur(18px);
}

.ai-assistant-header {

    border-bottom-color:
        rgba(100, 130, 184, 0.18) !important;
}

.ai-assistant-eyebrow {

    color:
        #55a9ff !important;
}

.ai-assistant-status {

    color:
        #77d5a2 !important;
}

/* ============================================================
   SCIENTIFIC CONTEXT
   ============================================================ */

.celestial-context,
.scientific-context,
.current-scientific-context {

    background:
        linear-gradient(
            145deg,
            rgba(8, 18, 39, 0.88),
            rgba(3, 9, 22, 0.94)
        );

    border:
        1px solid
        rgba(86, 125, 190, 0.25);

    border-radius:
        16px;

    box-shadow:
        var(--astro-shadow-soft);

    backdrop-filter:
        blur(16px);
}

/* ============================================================
   TABLES / DATA
   ============================================================ */

table {

    border-collapse:
        separate;

    border-spacing:
        0;

    overflow:
        hidden;

    border:
        1px solid
        rgba(91, 124, 184, 0.20);

    border-radius:
        14px;

    background:
        rgba(5, 12, 28, 0.72);
}

th {

    background:
        rgba(19, 39, 76, 0.60);

    color:
        #eaf1ff;

    font-weight:
        750;
}

td {

    color:
        #aebbd2;

    border-top:
        1px solid
        rgba(91, 124, 184, 0.12);
}

/* ============================================================
   LINKS
   ============================================================ */

a {

    transition:
        color .18s ease,
        opacity .18s ease;
}

main a:not(.btn):not(.galaxy-control):not(.galaxy-v2-nav a) {

    color:
        #69b5ff;
}

main a:not(.btn):not(.galaxy-control):not(.galaxy-v2-nav a):hover {

    color:
        #a6d5ff;
}

/* ============================================================
   DIVIDERS
   ============================================================ */

hr {

    border:
        0;

    border-top:
        1px solid
        rgba(98, 128, 183, 0.16);
}

/* ============================================================
   SCROLLBARS
   ============================================================ */

* {

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(73, 115, 181, 0.52)
        rgba(3, 9, 22, 0.75);
}

*::-webkit-scrollbar {

    width:
        8px;

    height:
        8px;
}

*::-webkit-scrollbar-track {

    background:
        rgba(3, 9, 22, 0.75);
}

*::-webkit-scrollbar-thumb {

    background:
        rgba(73, 115, 181, 0.52);

    border-radius:
        8px;
}

*::-webkit-scrollbar-thumb:hover {

    background:
        rgba(75, 145, 235, 0.72);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    body {
        background:
            radial-gradient(
                circle at 50% 0%,
                rgba(30, 74, 145, 0.11),
                transparent 38%
            ),
            var(--astro-bg);
    }

}

/* ============================================================
   ASTROSPHERE ADMINISTRATION UI
   ============================================================ */

.page-shell {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 60px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

.page-header-with-action {
    align-items: center;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.7;
}

.page-header h1 {
    margin: 0;
}

.page-subtitle {
    margin: 10px 0 0;
    max-width: 760px;
    opacity: 0.75;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    display: block;
    padding: 26px;
    border: 1px solid rgba(94, 126, 190, 0.25);
    border-radius: 14px;
    background: rgba(12, 19, 42, 0.72);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(61, 137, 255, 0.5);
    background: rgba(18, 28, 58, 0.88);
}

.feature-card h2 {
    margin: 0 0 10px;
}

.feature-card p {
    margin: 0 0 20px;
    opacity: 0.75;
}

.feature-card strong {
    display: block;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 6px;
}

.feature-card span {
    font-size: 13px;
    opacity: 0.65;
}

.table-card,
.form-card {
    border: 1px solid rgba(94, 126, 190, 0.25);
    border-radius: 14px;
    background: rgba(12, 19, 42, 0.72);
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th,
.table-card td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(94, 126, 190, 0.14);
}

.table-card th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.table-card tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background: rgba(48, 180, 108, 0.14);
    color: #6ee7a8;
}

.status-inactive {
    background: rgba(220, 80, 80, 0.14);
    color: #ff9292;
}

.form-card {
    max-width: 760px;
    padding: 28px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
}

.form-group small {
    display: block;
    margin-top: 7px;
    opacity: 0.65;
    font-size: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 10px;
}

.alert-error {
    border: 1px solid rgba(220, 80, 80, 0.35);
    background: rgba(220, 80, 80, 0.1);
    color: #ffaaaa;
}

.empty-state {
    padding: 60px 30px;
    text-align: center;
}

.empty-state h2 {
    margin-top: 0;
}

.empty-state p {
    opacity: 0.7;
    margin-bottom: 24px;
}

@media (max-width: 800px) {
    .page-shell {
        width: min(100% - 24px, 1400px);
        padding-top: 25px;
    }

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

    .page-header,
    .page-header-with-action {
        flex-direction: column;
        align-items: stretch;
    }

    .form-card {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }
}

/* ASTROSPHERE ADMIN UI V2 */

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.page-header-actions .button {
    margin: 0;
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    display: inline-flex !important;
    margin: 0;
}

.table-actions .button {
    margin: 0;
}

.button-action {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 9px;
    border: 1px solid rgba(72, 117, 190, 0.55);
    background: rgba(12, 29, 61, 0.92);
    color: #e8f1ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.button-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
    text-decoration: none;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.button-action-edit {
    border-color: rgba(38, 144, 255, 0.75);
    color: #69b4ff;
    background: rgba(15, 55, 104, 0.72);
}

.button-action-edit:hover {
    background: rgba(22, 76, 143, 0.92);
}

.button-action-reset {
    border-color: rgba(91, 128, 180, 0.70);
    color: #d9e7ff;
    background: rgba(18, 35, 67, 0.90);
}

.button-action-reset:hover {
    background: rgba(28, 54, 96, 0.96);
}

.button-action-warning {
    border-color: rgba(224, 161, 20, 0.78);
    color: #ffd66b;
    background: rgba(82, 61, 10, 0.55);
}

.button-action-warning:hover {
    background: rgba(111, 81, 8, 0.78);
}

.button-action-success {
    border-color: rgba(28, 190, 127, 0.72);
    color: #55e4ae;
    background: rgba(8, 78, 54, 0.55);
}

.button-action-success:hover {
    background: rgba(8, 104, 70, 0.76);
}

.button-action-danger {
    border-color: rgba(239, 68, 68, 0.78);
    color: #ff8585;
    background: rgba(92, 20, 28, 0.55);
}

.button-action-danger:hover {
    background: rgba(126, 24, 34, 0.78);
}

.button-primary {
    box-shadow: 0 5px 16px rgba(0, 96, 255, 0.16);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions .button {
    min-height: 44px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 900px) {

    .page-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .table-actions {
        justify-content: flex-start;
    }

    .table-actions .button-action {
        min-width: 0;
    }
}

@media (max-width: 640px) {

    .page-header-actions .button {
        width: 100%;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .table-actions form,
    .table-actions .button {
        width: 100%;
    }

    .table-actions .button {
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .button {
        width: 100%;
    }
}

/* ASTROSPHERE ADMIN UI V2 - COMPACT ACTION BUTTONS */
.button-action {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.2;
    gap: 6px;
    border-radius: 8px;
    white-space: nowrap;
}

.button-action .button-icon {
    font-size: 12px;
    line-height: 1;
}

.table-actions {
    gap: 7px;
    align-items: center;
}

.table-actions form {
    display: inline-flex !important;
    margin: 0;
}

/* ASTROSPHERE ADMIN UI V2 - KEEP TABLE ACTIONS ON ONE LINE */
.table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
}

.table-actions form {
    display: inline-flex !important;
    flex: 0 0 auto;
    margin: 0;
}

.table-actions .button-action {
    flex: 0 0 auto;
}

.admin-table th:last-child,
.admin-table td:last-child {
    white-space: nowrap;
    min-width: 420px;
}


/* ASTROSPHERE ROLES & PERMISSIONS TYPOGRAPHY */

.roles-permissions-page .feature-card > strong {
    font-size: 24px;
    line-height: 1.1;
    margin-top: 4px;
}

.roles-permissions-page .feature-card > span {
    font-size: 12px;
    line-height: 1.3;
}

.roles-permissions-page .feature-card ul {
    margin-top: 10px;
    padding-left: 24px;
}

.roles-permissions-page .feature-card li {
    margin-bottom: 9px;
}

.roles-permissions-page .feature-card li strong {
    font-size: 16px;
    line-height: 1.3;
}

.roles-permissions-page .feature-card li span,
.roles-permissions-page .feature-card li p {
    font-size: 12px;
    line-height: 1.45;
}

/* ============================================================
   SPACE EXPLORATION GLOBAL NAVIGATION
   ============================================================ */

.global-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.global-nav-dropdown-toggle {
    appearance: none;
    font: inherit;
    cursor: pointer;
    color: inherit;
    background: transparent;
}

.global-nav-dropdown-toggle.active {
    background: #202a52;
    border-color: #4b5b9a;
    color: #ffffff;
}

.global-nav-chevron {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.global-nav-dropdown.open .global-nav-chevron {
    transform: rotate(180deg);
}

.global-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;

    width: 290px;

    display: none;

    padding: 8px;

    border: 1px solid #394579;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(20, 28, 58, 0.98),
            rgba(10, 15, 35, 0.98)
        );

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(14px);
}

.global-nav-dropdown.open .global-nav-dropdown-menu {
    display: block;
}

.global-nav-dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid transparent;
    border-radius: 8px;

    color: #c9d2ec;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.global-nav-dropdown-link:hover,
.global-nav-dropdown-link.active {
    background: #182044;
    border-color: #394579;
    color: #ffffff;
}

.global-nav-dropdown-link strong {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.global-nav-dropdown-link small {
    display: block;
    margin-top: 3px;

    color: #8995b5;

    font-size: 11px;
    line-height: 1.35;
}

.global-nav-dropdown-link:hover small,
.global-nav-dropdown-link.active small {
    color: #aeb9d5;
}

.nav-item-icon {
    width: 24px;
    flex: 0 0 24px;

    text-align: center;

    font-size: 17px;
    line-height: 20px;
}


/* Mobile */

@media (max-width: 700px) {

    .global-nav-dropdown {
        flex: 0 0 auto;
    }

    .global-nav-dropdown-menu {
        position: fixed;

        top: auto;
        left: 10px;
        right: 10px;

        width: auto;

        margin-top: 4px;
    }

}




/* Global navigation stacking context */
.global-nav {
    position: relative;
    z-index: 2000;
}
