/*!
| Immersive Spaces Agent Dashboard Mockup
| Version: v1.3.0
| Purpose: Static UI mockup only, no backend logic
*/

:root {
    --bg: #eef2f6;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --line: #e5e7eb;
    --text: #17212f;
    --muted: #6b7280;
    --muted-strong: #475467;
    --shadow-shell: 0 28px 70px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.06);
    --radius-shell: 30px;
    --accent: #17324f;
    --blue-start: #3757d5;
    --blue-end: #6d84f7;
    --coral-start: #d55f4b;
    --coral-end: #f09463;
    --gold-start: #d7a645;
    --gold-end: #f2d37e;
    --sidebar-width: 92px;
    --rail-width: 340px;
    --font-stack: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent 28%),
        linear-gradient(180deg, #f4f7fa 0%, #e9eef3 100%);
    color: var(--text);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-shell {
    min-height: 100vh;
    padding: 28px;
}

.kiosk-frame {
    max-width: 1600px;
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--rail-width);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: var(--radius-shell);
    box-shadow: var(--shadow-shell);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.sidebar {
    background: rgba(248, 250, 252, 0.96);
    border-right: 1px solid var(--line);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(180deg, #21374f 0%, #0f2237 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    box-shadow: 0 10px 24px rgba(15, 34, 55, 0.22);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
}

.nav-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #ffffff;
    color: #7a8596;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
}

.nav-icon:hover,
.nav-icon:focus-visible {
    outline: none;
    transform: translateY(-1px);
    color: var(--accent);
    border-color: #cfd7e2;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.nav-icon.is-active {
    background: linear-gradient(180deg, #1f3650 0%, #11253b 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(17, 37, 59, 0.28);
}

.main-panel {
    background: rgba(255,255,255,0.94);
    padding: 28px 28px 34px;
}

.topbar {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8b95a5;
}

.topbar-copy h1,
.section-heading-row h2,
.rail-header h2 {
    margin: 0;
    font-size: 1.95rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--text);
}

.topbar-search {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.topbar-search svg {
    width: 18px;
    height: 18px;
    color: #8b95a5;
    flex: 0 0 auto;
}

.topbar-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 0.98rem;
}

.topbar-search input::placeholder {
    color: #98a2b3;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.icon-chip {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: #667085;
    display: grid;
    place-items: center;
}

.icon-chip svg {
    width: 20px;
    height: 20px;
}

.hero-row {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px 22px 20px;
    color: #ffffff;
    min-height: 138px;
    box-shadow: var(--shadow-card);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
}

.hero-card-blue {
    background: linear-gradient(135deg, var(--blue-start) 0%, var(--blue-end) 100%);
}

.hero-card-coral {
    background: linear-gradient(135deg, var(--coral-start) 0%, var(--coral-end) 100%);
}

.hero-card-gold {
    background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: #2a2a2a;
}

.hero-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-card h2 {
    margin: 14px 0 8px;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-subtext {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.content-section {
    margin-top: 28px;
}

.section-heading-row,
.rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ghost-button,
.soft-button,
.profile-button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ghost-button {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--muted-strong);
}

.ghost-button-small {
    min-height: 40px;
    padding: 0 14px;
}

.soft-button {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: var(--muted-strong);
}

.profile-button {
    width: 100%;
    background: linear-gradient(180deg, #18314a 0%, #102235 100%);
    color: #ffffff;
    border: 1px solid transparent;
}

.listing-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.listing-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.listing-thumb {
    position: relative;
    height: 148px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--line);
}

.listing-thumb-ocean {
    background-image:
        linear-gradient(180deg, rgba(10,25,47,0.05), rgba(10,25,47,0.20)),
        linear-gradient(135deg, #9fd0f0 0%, #e9d3bd 48%, #7ab0c8 100%);
}

.listing-thumb-city {
    background-image:
        linear-gradient(180deg, rgba(10,25,47,0.08), rgba(10,25,47,0.24)),
        linear-gradient(135deg, #d6dce7 0%, #a9b4c5 35%, #e4c8a5 100%);
}

.listing-thumb-harbor {
    background-image:
        linear-gradient(180deg, rgba(10,25,47,0.05), rgba(10,25,47,0.24)),
        linear-gradient(135deg, #9bc4cb 0%, #dfe8ea 40%, #86a7af 100%);
}

.listing-thumb-office {
    background-image:
        linear-gradient(180deg, rgba(10,25,47,0.08), rgba(10,25,47,0.22)),
        linear-gradient(135deg, #e6ddcf 0%, #cdbba6 40%, #9f8d76 100%);
}

.listing-card-body {
    padding: 16px 18px 18px;
}

.listing-card-body h3,
.appointment-card h3,
.profile-head h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.listing-card-body p,
.appt-service,
.profile-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(219, 227, 237, 0.95);
    color: #445268;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.right-rail {
    background: rgba(248, 250, 252, 0.96);
    border-left: 1px solid var(--line);
    padding: 28px 24px;
}

.appointment-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.appointment-card,
.profile-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.appointment-card {
    padding: 18px;
}

.appt-time {
    margin: 0;
    color: #8b95a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.appt-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.profile-card {
    margin-top: 18px;
    padding: 20px;
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, #21374f 0%, #0f2237 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 20px rgba(15, 34, 55, 0.18);
}

.profile-button {
    margin-top: 18px;
}

@media (max-width: 1400px) {
    .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .kiosk-frame {
        grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    }

    .right-rail {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 980px) {
    .app-shell {
        padding: 16px;
    }

    .kiosk-frame {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        justify-content: space-between;
        padding: 18px;
        gap: 18px;
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: center;
    }

    .main-panel {
        padding: 20px;
    }

    .topbar {
        grid-template-columns: 1fr;
    }

    .hero-row,
    .listing-grid {
        grid-template-columns: 1fr;
    }

    .right-rail {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .app-shell {
        padding: 10px;
    }

    .kiosk-frame {
        border-radius: 20px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .nav-icon,
    .icon-chip {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .topbar-copy h1,
    .section-heading-row h2,
    .rail-header h2 {
        font-size: 1.55rem;
    }

    .hero-card h2 {
        font-size: 2.1rem;
    }

    .listing-card-body,
    .appointment-card,
    .profile-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .appt-actions,
    .section-heading-row,
    .rail-header {
        flex-direction: column;
        align-items: stretch;
    }
}
