
/* ========================================
   LAB KIVOTOS
   DESIGN SYSTEM
======================================== */

:root {

    --background: #0b1018;

    --sidebar: #0d1520;

    --panel: #111b29;

    --panel-hover: #162438;

    --border: #26384f;

    --text: #e5f1ff;

    --muted: #8296ab;

    --blue: #79c8ff;

    --green: #60d7a0;

    --yellow: #f4be70;

}


/* ========================================
   GLOBAL
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    background: var(--background);

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;

}

html {
    scroll-behavior: smooth;
}


/* ========================================
   DEVELOPMENT NOTICE BANNER
======================================== */

.banner {

    position: fixed;

    top: 20px;
    left: 50%;
    border: 1px solid var(--blue);
    padding: 20px;
    border-radius: 10px;
    background: var(--panel);
    
    
    transform: translateX(-40%);
    transition: opacity 1s ease;

}

.banner.hidden {
    opacity: 0;
    pointer-events: none;
}


/* ========================================
   DASHBOARD LAYOUT
======================================== */

.dashboard {

    display: flex;

    min-height: 100vh;

}


/* ========================================
   SIDEBAR
======================================== */

.sidebar {

    width: 255px;

    background: var(--sidebar);

    border-right: 1px solid var(--border);

    padding: 28px 18px;

    display: flex;

    flex-direction: column;

}

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 55px;

}

.brand-icon {

    width: 55px;
    height: 55px;

    background: #172f49;

    color: var(--blue);

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-weight: bold;

}

.brand-icon img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 8px;

}


.brand h2 {

    font-size: 15px;

    letter-spacing: 1px;

}

.brand span {

    font-size: 9px;

    color: var(--muted);

}

.sidebar-section {

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 15px;

    padding-left: 12px;

}

nav {

    display: flex;

    flex-direction: column;

    gap: 6px;

}

.nav-item {

    text-decoration: none;

    color: var(--muted);

    padding: 13px 14px;

    border-radius: 7px;

    transition: 0.2s;

}

.nav-item:hover {

    background: var(--panel-hover);

    color: var(--text);

}

.nav-item.active {

    background: #172f49;

    color: var(--blue);

}

.sidebar-bottom {

    margin-top: auto;

}

.connection-status {

    color: var(--yellow);

    font-size: 11px;

    margin-bottom: 15px;

}

.status-dot {

    display: inline-block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--yellow);

    margin-right: 6px;

}

.sidebar-bottom p {

    color: var(--muted);

    font-size: 10px;

}


/* ========================================
   MAIN CONTENT
======================================== */

.main-content {

    flex: 1;

    min-width: 0;

    padding: 40px;

    max-width: 1600px;

    margin: 0 auto;

}


/* ========================================
   TOP BAR
======================================== */

.topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    margin-bottom: 32px;

}

.eyebrow {

    font-size: 10px;

    letter-spacing: 2px;

    color: var(--blue);

}

.topbar h1 {

    font-size: 26px;

    margin-top: 8px;

}

.topbar-right {

    display: flex;

    align-items: center;

    gap: 20px;

}

#clock {

    color: var(--muted);

    font-family: monospace;

}

.system-badge {

    background: #14372d;

    color: var(--green);

    padding: 7px 10px;

    border-radius: 5px;

    font-size: 10px;

    font-weight: 600;

}


/* ========================================
   WELCOME PANEL
======================================== */

.welcome-panel {

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 35px;

    margin-bottom: 24px;

}

.welcome-panel h2 {

    font-size: 30px;

    margin-top: 15px;

    margin-bottom: 12px;

}

.welcome-panel p {

    color: #a0b3c8;

    line-height: 1.8;

    max-width: 650px;

}

.welcome-footer {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 25px;

}

.welcome-footer > span:last-child {

    color: var(--muted);

    font-size: 11px;

}


/* ========================================
   METRIC CARDS
======================================== */

.metrics {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 24px;

}

.metric-card {

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 24px;

    transition: 0.2s;

}

.metric-card:hover {

    border-color: var(--blue);

    transform: translateY(-2px);

}

.metric-label {

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 1.5px;

}

.metric-number {

    font-size: 38px;

    font-weight: 600;

    margin: 15px 0;

}

.metric-status {

    color: var(--green);

    font-size: 11px;

}

.metric-status.blue {

    color: var(--blue);

}

.warning {

    color: var(--yellow);

}


/* ========================================
   CONTENT GRID
======================================== */

.content-grid {

    display: grid;

    grid-template-columns: 1.5fr 1fr;

    gap: 20px;

}

.panel {

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 25px;

    min-width: 0;

}

.panel-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}

.panel-header h3 {

    font-size: 12px;

    letter-spacing: 1px;

}

.live-badge {

    color: var(--blue);

    background: #172f49;

    padding: 6px 9px;

    border-radius: 4px;

    font-size: 10px;

}


/* ========================================
   EVENT LOG
======================================== */

.event-log {

    display: flex;

    flex-direction: column;

    gap: 20px;

    font-family: monospace;

    font-size: 12px;

}

.event {

    color: #b6c6d8;

    line-height: 1.6;

}

.event-time {

    color: var(--muted);

    margin-right: 10px;

}

.info {

    color: var(--green);

    margin-right: 8px;

}

.network {

    color: var(--blue);

    margin-right: 8px;

}

.warn {

    color: var(--yellow);

    margin-right: 8px;

}


/* ========================================
   YUUKA ADMIN PANEL
======================================== */

.admin-profile {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;

}

.admin-avatar {

    width: 60px;
    height: 60px;

    border-radius: 10px;

    background: #172f49;

    color: var(--blue);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 26px;

}

.admin-avatar img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 10px;

    overflow: hidden;

}


.admin-profile h2 {

    font-size: 20px;

    margin-bottom: 5px;

}

.admin-role {

    color: var(--muted);

    font-size: 10px;

}

.admin-message {

    background: var(--background);

    border: 1px solid var(--border);

    border-radius: 7px;

    padding: 20px;

    margin-bottom: 20px;

}

.admin-message p {

    color: #a0b3c8;

    line-height: 1.8;

    margin-top: 12px;

}

button {

    background: #172f49;

    color: var(--blue);

    border: 1px solid #294f70;

    border-radius: 6px;

    padding: 12px 16px;

    width: 100%;

    cursor: pointer;

    font-weight: 600;

    font-size: 11px;

    letter-spacing: 1px;

    transition: 0.2s;

}

button:hover {

    background: #234566;

}


/* ========================================
   FOOTER
======================================== */

footer {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    border-top: 1px solid var(--border);

    margin-top: 40px;

    padding-top: 20px;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 1px;

}


/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1000px) {

    .content-grid {

        grid-template-columns: 1fr;

    }

}

@media (max-width: 750px) {

    .dashboard {

        flex-direction: column;

    }

    .sidebar {

        width: 100%;

        padding: 20px;

    }

    .brand {

        margin-bottom: 20px;

    }

    .sidebar-section,
    .sidebar-bottom {

        display: none;

    }

    nav {

        flex-direction: row;

        flex-wrap: wrap;

    }

    .main-content {

        padding: 20px;

    }

    .metrics {

        grid-template-columns: 1fr;

    }

    .topbar {

        align-items: flex-start;

        flex-direction: column;

    }

    .welcome-panel {

        padding: 24px;

    }

    .welcome-panel h2 {

        font-size: 24px;

    }

    footer {

        flex-direction: column;

    }

}
