﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=IBM+Plex+Serif:wght@500;600&display=swap');

:root {
    --bg-card: rgba(255, 255, 255, 0.92);
    --line-soft: #d6e6f5;
    --text-strong: #163247;
    --text-soft: #5d7890;
    --accent-cyan: #2fa9cf;
    --accent-coral: #f28f56;
    --accent-amber: #e6a93e;
    --accent-mint: #41b993;
}

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--text-strong);
    background:
        radial-gradient(900px 500px at -5% -8%, rgba(168, 216, 255, 0.55) 0, transparent 55%),
        radial-gradient(700px 420px at 105% 6%, rgba(255, 210, 170, 0.48) 0, transparent 56%),
        linear-gradient(145deg, #f7fbff 0%, #eef7ff 52%, #fef7ef 100%);
}

h1, h2, h3 {
    font-family: 'IBM Plex Serif', Georgia, serif;
    margin: 0;
}

a { color: inherit; text-decoration: none; }

.hamburger-shell {
    min-height: 100vh;
    position: relative;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #d6e6f5;
    backdrop-filter: blur(6px);
}

.topbar-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #2e5775;
}

.hamburger-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #cfe1ef;
    background: #f2f8ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
}

.hamburger-btn span {
    height: 2px;
    width: 100%;
    background: #35627f;
    border-radius: 99px;
}

.slide-menu {
    position: fixed;
    top: 62px;
    left: 0;
    bottom: 0;
    width: 290px;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    background: linear-gradient(180deg, #d8e9f9, #ccddf0 45%, #d6e7f8);
    border-right: 1px solid #b7cce0;
    overflow-y: auto;
    z-index: 95;
    padding: 0.8rem 0.65rem 1rem;
}

.slide-menu.open {
    transform: translateX(0);
}

.menu-overlay {
    position: fixed;
    inset: 62px 0 0 0;
    background: rgba(18, 41, 57, 0.22);
    z-index: 90;
}

.brand-wrap {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin: 0 0 1rem;
}

.brand-badge {
    height: 42px;
    width: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #5cb6ff, #f9b06b);
    color: #1b3e58;
    font-weight: 800;
}

.brand-wrap p {
    margin: 0.12rem 0 0;
    font-size: 0.82rem;
    color: #4f6c86;
}

.side-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.link-btn,
.nav-item-link {
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.46rem 0.4rem;
    color: #1c3650;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.menu-icon {
    display: inline-block;
    width: 1rem;
    margin-right: 0.35rem;
    text-align: center;
    font-size: 0.78rem;
}

.menu-chevron {
    font-size: 0.78rem;
}

.link-btn:hover,
.nav-item-link:hover,
.nav-item-link.active {
    background: rgba(255, 255, 255, 0.65);
}

.master-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;    
    background: #f4efe7;
    border: 1px solid #c8d7e6;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.master-flyout {
    margin: 0.2rem 0 0.3rem 0.35rem;
    border: 1px solid #b8cfe3;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(73, 108, 134, 0.16);
}

.flyout-item {
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #ebf1f8;
    background: #fff;
    padding: 0.36rem 0.6rem;
    color: #1e3b52;
    font-size: 0.76rem;
    font-weight: 700;
    display: block;
}

.flyout-item:hover {
    background: #eff7ff;
}

.submenu-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-flyout {
    margin-left: 0.55rem;
    border-left: 2px solid #dce8f5;
}

.main-panel { padding: 1.25rem; }

.login-scene {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.login-panel {
    width: min(520px, 96vw);
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.92));
    box-shadow: 0 18px 42px rgba(118, 161, 192, 0.18);
    overflow: hidden;
    padding: 2rem;
    animation: float-up 0.5s ease;
}

.pulse-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.4;
}

.orb-1 {
    width: 180px;
    height: 180px;
    background: #9ad6ff;
    top: -90px;
    right: -85px;
}

.orb-2 {
    width: 140px;
    height: 140px;
    background: #ffd0aa;
    bottom: -65px;
    left: -70px;
}

.login-head .kicker,
.dash-header .kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: #5f8bab;
    margin-bottom: 0.6rem;
}

.login-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.login-head p {
    margin-top: 0.4rem;
    color: var(--text-soft);
}

.login-form {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.form-label {
    color: #2e5876;
    margin-bottom: 0.35rem;
}

.form-control {
    border-radius: 12px;
    border: 1px solid #bdd7eb;
    background: #f9fdff;
    color: #17364d;
    padding: 0.75rem 0.85rem;
}

.form-control:focus {
    border-color: #71b8e6;
    box-shadow: 0 0 0 0.15rem rgba(95, 175, 224, 0.22);
}

.login-btn {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, #6bb9ff, #f7b36f 82%);
    color: #11334c;
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.error-chip {
    margin: 0;
    color: #9c3f1f;
    background: #fff0e6;
    border: 1px solid #f8c7a7;
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
}

.dash-wrap {
    display: grid;
    gap: 1.15rem;
    animation: float-up 0.4s ease;
}

.dash-header {
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.86));
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.live-pill {
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    background: #e8fff7;
    border: 1px solid #b9ecd9;
    color: #2f7c61;
    font-size: 0.82rem;
}

.stats-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.stat-card {
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--line-soft);
    background: var(--bg-card);
    min-height: 130px;
    box-shadow: 0 8px 22px rgba(84, 130, 163, 0.08);
}

.stat-card h3 {
    font-size: 1rem;
    color: #4d7087;
}

.stat-card p {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    margin-top: 0.8rem;
    font-weight: 700;
}

.stat-card.coral p { color: var(--accent-coral); }
.stat-card.cyan p { color: var(--accent-cyan); }
.stat-card.amber p { color: var(--accent-amber); }
.stat-card.mint p { color: var(--accent-mint); }

.panel-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.panel-card {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: var(--bg-card);
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(84, 130, 163, 0.08);
}

.panel-card ul {
    margin: 0.7rem 0 0;
    padding-left: 1rem;
    color: var(--text-soft);
    display: grid;
    gap: 0.45rem;
}

.ok-dot {
    display: inline-block;
    height: 9px;
    width: 9px;
    border-radius: 99px;
    background: #3cbe85;
    margin-right: 0.35rem;
}

.action-row {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.6rem;
}

.master-page {
    display: grid;
    gap: 1rem;
}

.master-header {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.9));
    padding: 1rem 1.2rem;
}

.master-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    color: #5f8bab;
}

.master-header h2 {
    margin-top: 0.25rem;
    font-size: 2rem;
}

.master-header p {
    margin: 0.35rem 0 0;
    color: var(--text-soft);
}

.master-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.master-card {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(84, 130, 163, 0.08);
    padding: 1rem;
}

.master-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.master-muted {
    color: var(--text-soft);
    margin: 0.2rem 0 0.9rem;
}

.master-form {
    display: grid;
    gap: 0.7rem;
}

.master-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.master-primary {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(120deg, #6bb9ff, #f7b36f 82%);
    color: #11334c;
    font-weight: 700;
}

.master-secondary {
    border-radius: 10px;
    background: #f2f8ff;
    border: 1px solid #c9dff0;
    color: #214963;
    font-weight: 600;
}

.master-table-wrap {
    overflow-x: auto;
}

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

.master-table th,
.master-table td {
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid #e8f0f7;
    text-align: left;
    font-size: 0.92rem;
}

.master-table th {
    color: #4f7087;
    font-weight: 700;
}

.status-pill {
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pill.ok {
    background: #e6fff4;
    color: #2f7c61;
    border: 1px solid #b9ecd9;
}

.status-pill.off {
    background: #fff2e9;
    color: #9d5a31;
    border: 1px solid #f6d1b7;
}

@media (max-width: 980px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
    .master-grid { grid-template-columns: 1fr; }
    .reception-wrap { grid-template-columns: 1fr; }
    .reception-right { order: -1; }
}

@media (max-width: 640px) {
    .stats-grid,
    .panel-grid { grid-template-columns: 1fr; }
    .reception-kpi-grid { grid-template-columns: 1fr; }
    .reception-form-grid { grid-template-columns: 1fr; }
    .reception-search-grid { grid-template-columns: 1fr; }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-panel { padding: 1.3rem; }
}

@keyframes float-up {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.reception-wrap {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1rem;
    animation: float-up 0.35s ease;
}

.reception-left {
    display: grid;
    gap: 1rem;
}

.reception-card {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(84, 130, 163, 0.08);
    padding: 1rem;
}

.reception-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.reception-card-head h3 {
    margin-top: 0.2rem;
    font-size: 1.15rem;
}

.reception-search-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.reception-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 0.6rem;
}

.reception-entry {
    border: 1px solid #bfd8ec;
    background: linear-gradient(145deg, #fffaf3 0%, #f7fbff 58%, #fdf6ee 100%);
}

.reception-entry .reception-card-head {
    padding: 0.1rem 0 0.5rem;
    border-bottom: 1px dashed #c9dceb;
}

.reception-entry-form {
    gap: 0.9rem;
}

.reception-entry .reception-search-grid,
.reception-entry .reception-form-grid {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid #d6e6f4;
    border-radius: 14px;
    padding: 0.75rem;
}

.entry-section-title {
    grid-column: 1 / -1;
    font-size: 0.74rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #5a7e97;
    font-weight: 700;
    margin: 0.15rem 0 0.1rem;
}

.reception-entry .form-label {
    font-size: 0.79rem;
    letter-spacing: 0.01em;
    color: #2b5877;
}

.reception-entry .form-control {
    background: #ffffff;
    border: 1px solid #b9d3e8;
}

.reception-entry .master-actions {
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 0.15rem;
}

.reception-entry .master-primary,
.reception-entry .master-secondary {
    min-width: 130px;
}

.reception-kpi-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    margin-top: 0.2rem;
}

.reception-kpi {
    border: 1px solid #d8e8f5;
    border-radius: 12px;
    background: linear-gradient(120deg, #f8fcff, #fef8f1);
    padding: 0.8rem 0.85rem;
}

.reception-kpi span {
    display: block;
    color: #52748b;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.reception-kpi strong {
    font-size: 1.35rem;
    color: #1a3e56;
}
