:root {
    --bg: #070a12;
    --bg-2: #0b1020;
    --panel: #101624;
    --panel-2: #131b2d;
    --border: rgba(255,255,255,0.08);

    --white: #f8fafc;
    --muted: #8b96aa;
    --muted-2: #647089;

    --blue: #4f8cff;
    --cyan: #22d3ee;
    --purple: #8b5cf6;
    --green: #22c55e;
    --orange: #f59e0b;
    --red: #ef4444;

    --gradient: linear-gradient(
        135deg,
        #4f8cff,
        #8b5cf6,
        #22d3ee
    );

    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(
            circle at 75% 5%,
            rgba(79,140,255,0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 20% 90%,
            rgba(139,92,246,0.06),
            transparent 25%
        ),
        var(--bg);

    color: var(--white);
    min-height: 100vh;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.app {
    min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    width: 255px;

    background:
        linear-gradient(
            180deg,
            rgba(16,22,36,0.98),
            rgba(7,10,18,0.98)
        );

    border-right: 1px solid var(--border);

    padding: 28px 18px;

    display: flex;
    flex-direction: column;

    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    margin-bottom: 26px;
}

.brand-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    background: var(--gradient);

    color: white;

    font-family: "Space Grotesk";
    font-size: 20px;
    font-weight: 700;

    box-shadow: 0 10px 30px rgba(79,140,255,0.25);
}

.brand h1 {
    font-family: "Space Grotesk";
    font-size: 19px;
}

.brand span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 8px 25px;
    padding: 9px 12px;

    border: 1px solid rgba(34,197,94,0.15);
    background: rgba(34,197,94,0.05);

    border-radius: 10px;

    color: #86efac;
    font-size: 11px;
    font-weight: 600;
}

.status-dot,
.green-dot {
    width: 7px;
    height: 7px;

    background: var(--green);

    border-radius: 50%;

    box-shadow: 0 0 10px var(--green);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 13px;

    border: 0;
    background: transparent;

    color: var(--muted);

    padding: 13px 14px;

    border-radius: 11px;

    font-size: 13px;
    text-align: left;

    transition: 0.25s;
}

.nav-item span {
    width: 22px;
    font-size: 17px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: white;
}

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(79,140,255,0.18),
            rgba(79,140,255,0.04)
        );

    color: white;

    border-left: 2px solid var(--blue);
}

.sidebar-bottom {
    margin-top: auto;
}

.algorithm-mini,
.college-badge {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    margin-top: 10px;

    background: rgba(255,255,255,0.025);
}

.algorithm-mini span,
.college-badge span {
    display: block;

    color: var(--muted-2);

    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 700;

    margin-bottom: 7px;
}

.algorithm-mini strong {
    font-family: "Space Grotesk";
    font-size: 13px;
    color: var(--cyan);
}

.college-badge strong {
    font-size: 11px;
    color: var(--muted);
}


/* MAIN */

.main {
    margin-left: 255px;
    min-height: 100vh;
    padding: 0 42px 60px;
}

.topbar {
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    margin-bottom: 32px;
}

.breadcrumb {
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 7px;
}

.breadcrumb span {
    color: var(--blue);
}

.topbar h2 {
    font-family: "Space Grotesk";
    font-size: 22px;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 15px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 600;

    transition: 0.2s;
}

.btn.secondary {
    color: white;
    background: var(--panel);
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    border-color: var(--blue);
}

.btn.danger-outline {
    color: #fca5a5;
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.2);
}

.btn:hover {
    transform: translateY(-1px);
}


/* SECTIONS */

.page-section {
    display: none;
    animation: sectionIn 0.35s ease;
}

.page-section.active {
    display: block;
}

@keyframes sectionIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* HERO */

.hero {
    min-height: 355px;

    display: grid;
    grid-template-columns: 1.3fr 0.7fr;

    position: relative;
    overflow: hidden;

    padding: 45px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(79,140,255,0.13),
            rgba(139,92,246,0.07),
            rgba(34,211,238,0.04)
        );

    border: 1px solid rgba(79,140,255,0.14);

    margin-bottom: 22px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    right: -250px;
    top: -300px;

    background: rgba(79,140,255,0.1);

    filter: blur(30px);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--cyan);

    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;

    margin-bottom: 17px;
}

.eyebrow span {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--cyan);

    box-shadow: 0 0 10px var(--cyan);
}

.hero h1 {
    max-width: 650px;

    font-family: "Space Grotesk";

    font-size: clamp(35px, 4vw, 58px);

    line-height: 1.03;

    letter-spacing: -2px;

    margin-bottom: 18px;
}

.hero h1 span {
    background: var(--gradient);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 600px;

    color: var(--muted);

    line-height: 1.7;
    font-size: 13px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-top: 25px;
}

.hero-btn {
    border: 0;

    color: white;

    background: var(--gradient);

    padding: 13px 18px;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 700;

    box-shadow: 0 10px 30px rgba(79,140,255,0.18);

    transition: 0.25s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79,140,255,0.3);
}

.hero-link {
    border: 0;
    background: transparent;

    color: var(--muted);

    font-size: 11px;
}

.hero-link:hover {
    color: white;
}


/* HERO HASH CARD */

.hero-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hash-card {
    width: 260px;

    padding: 22px;

    background: rgba(10,15,28,0.82);

    border: 1px solid rgba(255,255,255,0.09);

    border-radius: 18px;

    backdrop-filter: blur(15px);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.35),
        0 0 60px rgba(79,140,255,0.08);

    transform: rotate(3deg);
}

.hash-card-top {
    display: flex;
    justify-content: space-between;

    color: var(--muted-2);

    font-size: 8px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.live-badge {
    color: #86efac;
}

.hash-formula {
    font-family: "Space Grotesk";

    font-size: 28px;

    margin: 28px 0;

    text-align: center;
}

.hash-formula span {
    color: var(--blue);
}

.hash-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    font-size: 14px;
}

.hash-example strong {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: rgba(79,140,255,0.14);

    color: var(--cyan);

    font-size: 18px;
}

.hash-line {
    height: 1px;
    background: var(--border);
    margin: 25px 0 10px;
}

.hash-footer {
    display: flex;
    justify-content: space-between;

    color: var(--muted-2);

    font-size: 8px;
}

.orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(1px);
}

.orb-one {
    width: 100px;
    height: 100px;

    background: rgba(79,140,255,0.1);

    top: 20px;
    right: 20px;
}

.orb-two {
    width: 70px;
    height: 70px;

    background: rgba(139,92,246,0.12);

    bottom: 15px;
    left: 30px;
}


/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;

    margin-bottom: 22px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 15px;

    transition: 0.25s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79,140,255,0.25);
}

.stat-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    font-size: 17px;
}

.stat-icon.blue {
    background: rgba(79,140,255,0.1);
    color: var(--blue);
}

.stat-icon.purple {
    background: rgba(139,92,246,0.1);
    color: var(--purple);
}

.stat-icon.green {
    background: rgba(34,197,94,0.1);
    color: var(--green);
}

.stat-icon.orange {
    background: rgba(245,158,11,0.1);
    color: var(--orange);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 3px;
}

.stat-card strong {
    display: block;
    font-family: "Space Grotesk";
    font-size: 21px;
}

.stat-card small {
    color: var(--muted-2);
    font-size: 8px;
}


/* PANELS */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 18px;

    margin-bottom: 18px;
}

.panel {
    background:
        linear-gradient(
            145deg,
            rgba(19,27,45,0.92),
            rgba(12,17,29,0.92)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.panel-label {
    display: block;

    color: var(--muted-2);

    font-size: 8px;
    letter-spacing: 1.7px;

    font-weight: 800;

    margin-bottom: 5px;
}

.panel h3 {
    font-family: "Space Grotesk";
    font-size: 17px;
}

.availability,
.large-status {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #86efac;

    font-size: 9px;
}


/* PARKING */

.parking-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 10px;
}

.parking-slot {
    min-height: 95px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;

    border-radius: 12px;

    border: 1px dashed rgba(255,255,255,0.1);

    background: rgba(255,255,255,0.018);

    transition:
        0.3s ease;
}

.parking-slot {
    cursor: pointer;
    user-select: none;
}

.parking-slot:hover {
    border-color: rgba(79,140,255,0.4);
    transform: translateY(-2px);
}

.parking-slot:active {
    transform: scale(0.97);
}

.parking-slot .chain-badge {
    position: absolute;
    top: 6px;
    right: 7px;
    background: rgba(79,140,255,0.2);
    border: 1px solid rgba(79,140,255,0.4);
    color: var(--cyan);
    font-size: 7px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

.parking-slot .slot-number {
    position: absolute;

    top: 8px;
    left: 9px;

    color: var(--muted-2);

    font-size: 8px;
}

.parking-slot .car-icon {
    font-size: 21px;

    margin-bottom: 7px;

    filter: grayscale(1);
    opacity: 0.45;
}

.parking-slot .vehicle-number {
    max-width: 85px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 8px;
    font-weight: 700;

    color: var(--muted);
}

.parking-slot.occupied {
    background:
        linear-gradient(
            145deg,
            rgba(79,140,255,0.11),
            rgba(139,92,246,0.05)
        );

    border-style: solid;

    border-color: rgba(79,140,255,0.25);
}

.parking-slot.occupied .car-icon {
    filter: none;
    opacity: 1;
}

.parking-slot.occupied .vehicle-number {
    color: #dbeafe;
}

.parking-slot.search-highlight {
    border: 1px solid var(--cyan) !important;

    background:
        linear-gradient(
            145deg,
            rgba(34,211,238,0.18),
            rgba(79,140,255,0.12)
        ) !important;

    box-shadow:
        0 0 0 4px rgba(34,211,238,0.08),
        0 0 35px rgba(34,211,238,0.2);

    transform: scale(1.05);

    z-index: 5;

    animation: searchPulse 1.2s infinite alternate;
}

@keyframes searchPulse {
    from {
        box-shadow:
            0 0 0 3px rgba(34,211,238,0.05),
            0 0 15px rgba(34,211,238,0.1);
    }

    to {
        box-shadow:
            0 0 0 5px rgba(34,211,238,0.1),
            0 0 35px rgba(34,211,238,0.3);
    }
}

.parking-slot.probe-collision {
    border-color: rgba(245,158,11,0.9) !important;
    background: rgba(245,158,11,0.16) !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15), 0 0 20px rgba(245,158,11,0.25) !important;
    transform: scale(1.03);
    z-index: 4;
}

.parking-large-grid .parking-slot .car-icon {
    font-size: 32px;
}

.parking-large-grid .parking-slot .vehicle-number {
    max-width: 85%;
    font-size: 11px;
}

.parking-large-grid .parking-slot .slot-number {
    font-size: 10px;
}

.parking-large-grid .parking-slot .chain-badge {
    top: 8px;
    right: 9px;
    font-size: 9px;
    padding: 2px 7px;
}

.legend {
    display: flex;
    gap: 18px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 9px;
}

.legend > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 9px;
    height: 9px;

    border-radius: 3px;
}

.legend-box.available {
    border: 1px dashed var(--muted-2);
}

.legend-box.occupied {
    background: var(--blue);
}

.legend-box.highlighted {
    background: var(--cyan);
}


/* OPERATION PANEL */

.operation-panel label {
    display: block;

    color: var(--muted);

    font-size: 9px;
    margin-bottom: 7px;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px 13px;

    border: 1px solid var(--border);

    background: rgba(0,0,0,0.15);

    border-radius: 10px;

    margin-bottom: 10px;

    transition: 0.2s;
}

.input-wrap:focus-within {
    border-color: rgba(79,140,255,0.6);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.07);
}

.input-wrap span {
    color: var(--muted-2);
    font-size: 14px;
}

.input-wrap input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: white;

    font-size: 11px;
}

.input-wrap input::placeholder {
    color: #4f5b70;
}

.primary-btn,
.danger-btn {
    width: 100%;

    border: 0;

    padding: 12px;

    border-radius: 9px;

    color: white;

    font-size: 10px;
    font-weight: 700;

    transition: 0.2s;
}

.primary-btn {
    background: var(--gradient);
    box-shadow: 0 8px 20px rgba(79,140,255,0.13);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(79,140,255,0.23);
}

.danger-btn {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.18);
    color: #fca5a5;
}

.danger-btn:hover {
    background: rgba(239,68,68,0.17);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 9px;
}

.quick-actions button {
    padding: 10px;

    border-radius: 9px;

    background: rgba(255,255,255,0.03);

    color: var(--muted);

    border: 1px solid var(--border);

    font-size: 9px;
}

.quick-actions button:hover {
    color: white;
    border-color: rgba(255,255,255,0.16);
}


/* SEARCH RESULT */

.search-result {
    margin-top: 14px;

    border-radius: 12px;

    overflow: hidden;

    border: 1px solid rgba(34,197,94,0.2);

    background: rgba(34,197,94,0.04);

    animation: resultIn 0.3s ease;
}

.search-result-error {
    border-color: rgba(239,68,68,0.2);
    background: rgba(239,68,68,0.04);
}

@keyframes resultIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px;

    border-bottom: 1px solid var(--border);
}

.result-icon {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: rgba(34,197,94,0.12);

    color: var(--green);

    font-size: 11px;
}

.search-result-error .result-icon {
    background: rgba(239,68,68,0.14) !important;
    color: #f87171 !important;
}

.search-result-error strong#resultStatus,
.search-result-error strong#opResultStatus {
    color: #fca5a5 !important;
}

.search-result-success .result-icon {
    background: rgba(34,197,94,0.12) !important;
    color: var(--green) !important;
}

.search-result-success strong#resultStatus,
.search-result-success strong#opResultStatus {
    color: #86efac !important;
}

.result-actions-bar {
    padding: 8px 12px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.view-slot-btn {
    font-size: 10px;
    padding: 7px 12px;
}

.result-title small {
    display: block;

    color: var(--muted-2);

    font-size: 7px;
    letter-spacing: 1px;
}

.result-title strong {
    display: block;

    color: #86efac;

    font-size: 10px;

    margin-top: 2px;
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;

    padding: 10px;
}

.result-details div {
    padding: 7px;
}

.result-details span {
    display: block;

    color: var(--muted-2);

    font-size: 7px;
    margin-bottom: 3px;
}

.result-details strong {
    font-size: 9px;
    color: #dbeafe;
}


/* TECHNIQUE */

.technique-panel {
    margin-bottom: 20px;
}

.technique-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.formula-mini {
    padding: 8px 11px;

    border: 1px solid rgba(34,211,238,0.13);

    background: rgba(34,211,238,0.04);

    color: var(--cyan);

    border-radius: 8px;

    font-family: "Space Grotesk";
    font-size: 9px;
}

.technique-options {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;
}

.technique-option {
    display: flex;
    align-items: center;
    gap: 9px;

    text-align: left;

    padding: 12px;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: rgba(255,255,255,0.018);

    color: var(--muted);

    transition: 0.2s;
}

.technique-option:hover {
    border-color: rgba(79,140,255,0.3);
    color: white;
}

.technique-option.active {
    border-color: rgba(79,140,255,0.4);

    background:
        linear-gradient(
            135deg,
            rgba(79,140,255,0.12),
            rgba(139,92,246,0.05)
        );

    color: white;
}

.technique-option > span {
    color: var(--blue);

    font-family: "Space Grotesk";
    font-size: 10px;
}

.technique-option strong {
    display: block;
    font-size: 9px;
}

.technique-option small {
    display: block;

    color: var(--muted-2);

    font-size: 7px;

    margin-top: 3px;
}


/* SECTION HEADING */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 25px;
}

.section-heading h1 {
    font-family: "Space Grotesk";
    font-size: 34px;
    margin-bottom: 5px;
}

.section-heading p {
    color: var(--muted);
    font-size: 12px;
}


/* LARGE PARKING */

.parking-large-panel {
    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 28px;
}

.parking-large-grid {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 15px;
}

.parking-large-grid .parking-slot {
    min-height: 150px;
}

.parking-summary {
    display: grid;
    grid-template-columns: repeat(3,1fr);

    border-top: 1px solid var(--border);

    margin-top: 25px;
    padding-top: 20px;

    gap: 20px;
}

.parking-summary div {
    text-align: center;
}

.parking-summary span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    margin-bottom: 5px;
}

.parking-summary strong {
    font-family: "Space Grotesk";
    font-size: 23px;
}


/* OPERATIONS */

.operations-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);

    gap: 16px;
}

.operation-card {
    position: relative;

    padding: 25px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;
}

.operation-card::before {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -40px;
    top: -40px;

    border-radius: 50%;

    background: rgba(79,140,255,0.06);

    filter: blur(15px);
}

.operation-number {
    color: var(--blue);

    font-family: "Space Grotesk";

    font-size: 11px;

    margin-bottom: 22px;
}

.operation-card h3 {
    font-family: "Space Grotesk";

    font-size: 20px;

    margin-bottom: 9px;
}

.operation-card p {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;

    min-height: 60px;

    margin-bottom: 20px;
}


/* ACTIVITY */

.activity-panel {
    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;
}

.activity-header,
.activity-row {
    display: grid;
    grid-template-columns: 0.6fr 1fr 1.5fr 1fr;

    gap: 20px;

    padding: 16px 22px;
}

.activity-header {
    color: var(--muted-2);

    font-size: 8px;
    letter-spacing: 1.2px;

    border-bottom: 1px solid var(--border);
}

.activity-row {
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.035);

    font-size: 10px;

    color: var(--muted);
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-row strong {
    color: white;
}

.activity-success {
    color: #86efac;
}

.activity-error {
    color: #fca5a5;
}

.empty-activity {
    text-align: center;

    padding: 50px;

    color: var(--muted-2);

    font-size: 11px;
}


/* PROJECT */

.project-hero {
    display: grid;

    grid-template-columns: 1.4fr 0.6fr;

    gap: 20px;

    padding: 45px;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(34,211,238,0.1),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            rgba(79,140,255,0.12),
            rgba(139,92,246,0.06)
        );

    border: 1px solid rgba(79,140,255,0.13);

    margin-bottom: 20px;
}

.project-hero h1 {
    font-family: "Space Grotesk";

    font-size: 45px;

    line-height: 1.05;

    margin: 15px 0;
}

.project-hero h1 span {
    background: var(--gradient);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.project-hero p {
    max-width: 650px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.8;
}

.project-code {
    align-self: center;

    padding: 24px;

    background: rgba(7,10,18,0.6);

    border: 1px solid var(--border);

    border-radius: 15px;
}

.project-code span {
    color: var(--muted-2);

    font-size: 8px;
    letter-spacing: 1.5px;
}

.project-code div {
    font-family: "Space Grotesk";

    font-size: 25px;

    margin: 20px 0;

    color: var(--cyan);
}

.project-code small {
    color: var(--muted);

    font-size: 9px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);

    gap: 15px;

    margin-bottom: 20px;
}

.info-card {
    position: relative;

    padding: 24px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 16px;
}

.info-number {
    color: var(--blue);

    font-family: "Space Grotesk";

    font-size: 10px;
}

.info-card h3 {
    font-family: "Space Grotesk";

    font-size: 18px;

    margin: 18px 0 8px;
}

.info-card p {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}

.algorithms-section {
    padding: 25px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 18px;

    margin-bottom: 20px;
}

.algorithms-section h2 {
    font-family: "Space Grotesk";

    font-size: 25px;

    margin: 7px 0 20px;
}

.algorithm-list {
    display: grid;

    grid-template-columns: repeat(5,1fr);

    gap: 10px;
}

.algorithm-list > div {
    padding: 15px;

    border-radius: 11px;

    background: rgba(255,255,255,0.025);

    border: 1px solid var(--border);
}

.algorithm-list span {
    display: block;

    color: var(--blue);

    font-family: "Space Grotesk";

    font-size: 9px;

    margin-bottom: 12px;
}

.algorithm-list strong {
    display: block;

    font-size: 10px;

    margin-bottom: 5px;
}

.algorithm-list small {
    color: var(--muted-2);

    font-size: 8px;

    line-height: 1.5;
}

.project-footer {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 10px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: rgba(255,255,255,0.02);
}

.project-footer span {
    display: block;

    color: var(--muted-2);

    font-size: 7px;
    letter-spacing: 1px;

    margin-bottom: 5px;
}

.project-footer strong {
    font-size: 9px;
}

.green-text {
    color: #86efac;
}


/* TOAST */

.toast {
    position: fixed;

    right: 25px;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 17px;

    background: #111827;

    border: 1px solid var(--border);

    border-radius: 11px;

    box-shadow: 0 15px 50px rgba(0,0,0,0.4);

    transform: translateY(100px);

    opacity: 0;

    pointer-events: none;

    transition: 0.3s;

    z-index: 1000;

    font-size: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: rgba(34,197,94,0.12);

    color: var(--green);
}


/* UTILITIES */

.hidden {
    display: none !important;
}

.mobile-nav {
    display: none;
}


/* RESPONSIVE */

@media (max-width: 1200px) {

    .main {
        padding-left: 25px;
        padding-right: 25px;
    }

    .technique-options {
        grid-template-columns: repeat(3,1fr);
    }

    .algorithm-list {
        grid-template-columns: repeat(3,1fr);
    }

}

@media (max-width: 950px) {

    .sidebar {
        width: 75px;
        padding: 20px 10px;
    }

    .brand {
        justify-content: center;
        padding: 0;
    }

    .brand > div:last-child,
    .system-status,
    .nav-item:not(.active)::after,
    .sidebar-bottom {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 14px;
    }

    .nav-item span {
        margin: 0;
    }

    .main {
        margin-left: 75px;
    }

    .hero,
    .project-hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .operations-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(11, 16, 32, 0.96);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        padding: 0 4px;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: transparent;
        border: 0;
        color: var(--muted);
        font-size: 9px;
        font-weight: 600;
        padding: 6px 0;
        border-radius: 8px;
        transition: 0.2s;
    }

    .mobile-nav-item .m-icon {
        font-size: 16px;
        line-height: 1;
    }

    .mobile-nav-item.active {
        color: var(--cyan);
        background: rgba(79, 140, 255, 0.1);
    }

    .main {
        padding: 0 14px 85px !important;
    }

    .toast {
        bottom: 75px !important;
    }

    .topbar {
        height: auto;
        padding: 20px 0;

        align-items: flex-start;
        gap: 15px;
    }

    .top-actions {
        display: none;
    }

    .hero {
        padding: 28px 22px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .parking-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .parking-large-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .technique-options {
        grid-template-columns: 1fr;
    }

    .algorithm-list {
        grid-template-columns: 1fr;
    }

    .project-footer {
        grid-template-columns: 1fr 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .activity-panel {
        overflow-x: auto;
    }

    .activity-header,
    .activity-row {
        min-width: 600px;
    }

}

@media (max-width: 430px) {

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .parking-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .parking-large-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-hero {
        padding: 25px;
    }

    .project-hero h1 {
        font-size: 32px;
    }

}