﻿:root {
    --hub-bg: #f2f5f9;
    --hub-surface: #ffffff;
    --hub-text: #1f2a37;
    --hub-muted: #6b7280;
    --hub-primary: #0f766e;
    --hub-primary-dark: #115e59;
    --hub-sidebar-a: #0f172a;
    --hub-sidebar-b: #1e293b;
    --hub-border: #e5e7eb;
    --hub-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--hub-text);
    background: var(--hub-bg);
}

.hub-layout {
    min-height: 100vh;
    margin: 0 !important;
}

.hub-sidebar {
    background: linear-gradient(180deg, var(--hub-sidebar-a) 0%, var(--hub-sidebar-b) 100%);
    padding: 1.25rem !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #e5e7eb;
}

.hub-brand h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #f8fafc;
}

.hub-brand p {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.hub-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #062925;
    background: linear-gradient(140deg, #7dd3fc, #5eead4);
}

.hub-user-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.8rem;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 15px;
}

.hub-user-box span {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.hub-menu.ui.menu {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hub-menu.ui.menu .item {
    color: #d1d5db;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    font-weight: 600;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 0.95rem;
}

.hub-menu.ui.menu .item i.icon {
    float: none !important;
    margin: 0 !important;
    width: 1.25rem;
    opacity: 0.9;
}

.hub-menu.ui.menu .item:hover {
    background: rgba(15, 118, 110, 0.25);
    color: #ffffff;
}

.hub-menu.ui.menu .item.active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.45) 0%, rgba(45, 212, 191, 0.22) 100%);
    color: #ffffff;
    border: 1px solid rgba(94, 234, 212, 0.25);
}

.hub-logout-form {
    margin-top: auto;
}

.hub-main {
    padding: 1.25rem 1.5rem !important;
}

.hub-shell {
    max-width: 1360px;
    margin: 0 auto;
}

.hub-topbar {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-left: 5px solid var(--hub-primary);
    border-radius: 14px;
    box-shadow: var(--hub-shadow);
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hub-topbar h2 {
    margin: 0;
    font-size: 1.35rem;
}

.hub-topbar span {
    color: var(--hub-muted);
    font-size: 0.85rem;
}

.hub-content > .ui.segment,
.hub-content > .ui.form.segment,
.hub-content > .ui.clearing.segment,
.hub-content > table.ui.table,
.hub-content > .ui.cards {
    border-radius: 14px;
    border-color: var(--hub-border);
    box-shadow: var(--hub-shadow);
}

.hub-message {
    margin-top: 0.75rem !important;
    border-radius: 12px !important;
}

.ui.primary.button,
.ui.teal.button {
    background: var(--hub-primary) !important;
}

.ui.primary.button:hover,
.ui.teal.button:hover {
    background: var(--hub-primary-dark) !important;
}

.ui.table {
    border-radius: 14px;
    overflow: visible;
}

.ui.table thead th {
    background: #f8fafc;
    font-weight: 700;
}

.ui.form .field > label {
    font-weight: 700;
    color: #374151;
}

.ui.form input,
.ui.form .dropdown,
.ui.form select,
.ui.form textarea {
    border-radius: 10px !important;
}

.hub-access-table td,
.hub-access-table th {
    overflow: visible !important;
}

.hub-access-table .ui.dropdown .menu {
    z-index: 2000 !important;
}

.hub-users-accordion .title {
    background: #f8fafc;
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hub-users-accordion .content {
    padding: 0.4rem 0 0.9rem !important;
}

.hub-muted-text {
    color: var(--hub-muted);
    font-size: 0.88rem;
}

.hub-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hub-kpi-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--hub-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: var(--hub-shadow);
}

.hub-kpi-card p {
    margin: 0;
    color: var(--hub-muted);
    font-size: 0.82rem;
}

.hub-kpi-card h3 {
    margin: 0.5rem 0 0;
    font-size: 2rem;
    color: #0f172a;
}

.hub-login-bg {
    background:
        radial-gradient(circle at 10% 10%, #99f6e4 0%, rgba(153, 246, 228, 0) 45%),
        radial-gradient(circle at 90% 90%, #bfdbfe 0%, rgba(191, 219, 254, 0) 40%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.hub-login-grid {
    min-height: 100vh;
}

.hub-login-card {
    border-radius: 18px !important;
    border: 1px solid var(--hub-border) !important;
    box-shadow: var(--hub-shadow) !important;
}

.hub-login-brand {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
}

.hub-login-brand h2 {
    margin: 0;
    font-size: 1.35rem;
}

.hub-login-brand p {
    margin: 0;
    color: var(--hub-muted);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .hub-main {
        padding: 1rem !important;
    }

    .hub-shell {
        max-width: 100%;
    }

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