/* ==========================================================================
   GLOBALŪS NUSTATYMAI IR ANIMACIJA
   ========================================================================== */
:root {
    --bg-0: #05080d;
    --surface: #0d1420;
    --surface-alt: #121b2c;
    --border: #1c2942;
    --border-soft: rgba(59, 130, 246, 0.18);

    --blue: #3b82f6;
    --blue-bright: #60a5fa;
    --blue-dark: #1d4ed8;

    --orange: #ff7a29;
    --orange-bright: #ffa057;

    --text: #eef2f9;
    --text-dim: #8a97ad;
    --text-faint: #566178;

    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

html {
    overflow-y: scroll;
    scrollbar-width: none;
    width: 100vw;
    min-height: 100vh;
}

html::-webkit-scrollbar {
    display: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
    50% { opacity: 0.4; box-shadow: 0 0 2px currentColor; }
}

body {
    /* Ta pati taktinė HUD fono sistema kaip /parama/ puslapyje */
    background: var(--bg-0);
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        radial-gradient(ellipse at 50% -10%, #0d1b32 0%, #05080d 60%);
    background-size: 42px 42px, 42px 42px, 100% 100%;
    background-attachment: fixed;

    font-family: var(--font-body);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   NAVIGACIJA (identiška kitiems puslapiams)
   ========================================================================== */
.navbar {
    background-color: #081121;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(59, 130, 246, 0.12);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-group-left {
    display: flex;
    align-items: center;
    width: 200px;
    flex-shrink: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--surface);
}

.nav-group-center {
    display: flex;
    gap: 4px;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    text-align: center;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.12);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--orange);
    box-shadow: 0 0 6px var(--orange);
}

.nav-group-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 200px;
    flex-shrink: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid var(--border);
    min-width: 50px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--blue);
    border-radius: 50%;
    color: var(--blue);
    animation: pulse-dot 2s ease-in-out infinite;
    margin-right: 5px;
}

.status-text {
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
}

@media (max-width: 850px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    .nav-group-center {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(8, 17, 33, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 40px 20px;
        box-sizing: border-box;
    }
    .nav-group-center.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
        padding: 14px 0;
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.2s, color 0.2s;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .nav-item:hover {
        color: var(--blue-bright);
        background-color: rgba(37, 99, 235, 0.2);
        border-radius: 8px;
    }
    .nav-group-right {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot { animation: none; }
}

/* ==========================================================================
   PAGRINDINIS KONTEINERIS IR KORTELĖS
   ========================================================================== */
.config-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.config-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.card-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--orange-bright);
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.card-header-top i {
    font-size: 12px;
}

.config-card h3 {
    margin: 0 0 20px 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.grid-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(28, 41, 66, 0.6);
}

.grid-row-2:last-child {
    border-bottom: none;
}

.setting-col {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-name {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.setting-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}

.code-box-wrapper {
    background-color: var(--bg-0);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #cbd5e1;
    word-break: break-all;
}

.copy-btn {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 15px;
}

.copy-btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue);
    color: #ffffff;
}

@media (max-width: 768px) {
    .grid-row-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}