:root {
    --inter: "Inter", sans-serif;
    --outfit: "Outfit", sans-serif;
    --primary: #0F1A1E;
    --secondary: #1F363C;
    --light: #878F57;
    --textwhite: #F6F8EB;

    --page-bg: #071419;
    --page-bg-soft: #0a1b20;
    --panel: rgba(18, 45, 52, 0.78);
    --panel-strong: rgba(23, 54, 62, 0.92);
    --panel-soft: rgba(14, 37, 43, 0.78);
    --border: rgba(168, 189, 192, 0.16);
    --border-strong: rgba(168, 189, 192, 0.24);
    --muted: #a6b0ae;
    --available: #9ac43c;
    --reserved: #f0b72c;
    --sold: #fb5b4c;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --sidebar-width: 248px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--textwhite);
    background:
        radial-gradient(circle at 75% 0%, rgba(31, 70, 79, 0.22), transparent 36%),
        linear-gradient(135deg, #071419 0%, #0a1b20 46%, #08161a 100%);
    font-family: var(--inter);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    color: inherit;
}

svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 1.85;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    padding: 28px 12px 22px;
    border-right: 1px solid var(--border-strong);
    background:
        linear-gradient(180deg, rgba(6, 24, 29, 0.98), rgba(7, 22, 27, 0.99)),
        var(--primary);
}

.sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 42px;
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 39px;
    padding: 0 10px;
    border: 3px solid #8d9f3f;
    border-radius: 8px 8px 8px 4px;
    font-family: var(--outfit);
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.2px;
}

.brand::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 105px;
    width: 27px;
    height: 7px;
    border-left: 3px solid #8d9f3f;
    border-bottom: 3px solid #8d9f3f;
    transform: skewX(-38deg);
    background: #07181d;
}

.brand__garden {
    color: #9eae52;
    font-weight: 500;
}

.brand__sun {
    color: var(--textwhite);
    font-weight: 700;
}




.icon-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar__close,
.mobile-menu {
    display: none;
}


.sidebar__nav {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 12px;
    color: #eef1e9;
    transition: 180ms ease;
}

.nav-link svg {
    width: 25px;
    height: 25px;
}

.nav-link:hover {
    background: rgba(135, 143, 87, 0.12);
    color: #fff;
}

.nav-link.is-active {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(135, 143, 87, 0.28), rgba(135, 143, 87, 0.18));
    box-shadow: inset 0 0 0 1px rgba(160, 171, 96, 0.05);
}

.nav-link.is-active svg {
    color: #b1c05c;
}

.sidebar__architecture {
    position: absolute;
    inset: auto 0 0;
    height: 320px;
    opacity: 0.15;
    pointer-events: none;
}

.sidebar__architecture img{
    width: 15vw;
}

.architecture-building {
    position: absolute;
    bottom: 22px;
    border: 1px solid #aab5a1;
    background:
        repeating-linear-gradient(90deg, transparent 0 16px, rgba(170, 181, 161, 0.55) 17px 18px),
        repeating-linear-gradient(0deg, transparent 0 18px, rgba(170, 181, 161, 0.48) 19px 20px);
    clip-path: polygon(18% 8%, 100% 0, 100% 100%, 0 100%, 0 24%);
}

.architecture-building--back {
    right: 16px;
    width: 110px;
    height: 230px;
}

.architecture-building--front {
    left: 22px;
    width: 125px;
    height: 170px;
    clip-path: polygon(0 30%, 65% 0, 100% 8%, 100% 100%, 0 100%);
}

.architecture-tree {
    position: absolute;
    bottom: 17px;
    left: 12px;
    width: 2px;
    height: 64px;
    background: #aab5a1;
}

.architecture-tree::before,
.architecture-tree::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 50px;
    height: 34px;
    border: 1px solid #aab5a1;
    border-radius: 50%;
    transform: translateX(-50%);
}

.architecture-tree::before {
    top: -24px;
}

.architecture-tree::after {
    top: -5px;
    width: 38px;
    height: 26px;
}

.sidebar-overlay {
    display: none;
}

.main-content {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 36px 28px 40px;
}

.topbar {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto;
    align-items: start;
    gap: 28px;
    margin-bottom: 26px;
}

.page-heading h1 {
    margin: 0;
    font-family: var(--outfit);
    font-size: clamp(34px, 3vw, 45px);
    line-height: 1;
    letter-spacing: -1.2px;
}

.page-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.global-search {
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(290px, 28vw);
    height: 46px;
    padding: 0 15px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: rgba(11, 34, 40, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.global-search:focus-within {
    border-color: rgba(164, 176, 93, 0.55);
    box-shadow: 0 0 0 3px rgba(135, 143, 87, 0.1);
}

.global-search svg {
    flex: 0 0 auto;
    color: #e8ede3;
}

.global-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--textwhite);
    background: transparent;
}

.global-search input::placeholder {
    color: #9ba4a2;
}

.notification-button {
    border-radius: 50%;
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #0a1b20;
    border-radius: 50%;
    background: var(--reserved);
}

.profile {
    position: relative;
}

.profile__trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.profile__avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--textwhite);
    background: linear-gradient(145deg, #9ba64f, #737d3d);
    box-shadow: 0 8px 24px rgba(135, 143, 87, 0.16);
    font-weight: 600;
}

.profile__text {
    display: grid;
    gap: 2px;
    min-width: 104px;
    text-align: left;
}

.profile__text strong {
    font-size: 15px;
}

.profile__text small {
    color: var(--muted);
    font-size: 13px;
}

.profile__trigger > svg {
    width: 17px;
    height: 17px;
    color: #dce0d8;
}

.profile-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    background: #10292f;
    box-shadow: var(--shadow);
}

.profile-menu a,
.profile-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    color: var(--textwhite);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-grid {
    display: grid;
    gap: 14px;
}

.dashboard-grid--totals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.dashboard-grid--status {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, 0.95fr);
    margin-bottom: 16px;
}

.metric-card,
.status-card,
.progress-card,
.panel {
    border: 1px solid var(--border);
    background:
        linear-gradient(145deg, rgba(18, 48, 56, 0.87), rgba(14, 38, 45, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.012);
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 118px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    transition: 180ms ease;
}

.metric-card:hover,
.lamella-card:hover {
    border-color: rgba(157, 169, 91, 0.3);
    transform: translateY(-2px);
}

.metric-card__icon,
.status-card__icon,
.lamella-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #ebefdf;
    background: rgba(135, 143, 87, 0.27);
}

.metric-card__icon {
    width: 66px;
    height: 66px;
}

.metric-card__icon svg {
    width: 32px;
    height: 32px;
}

.metric-card span {
    display: block;
    margin-bottom: 4px;
    color: #eef0e9;
    font-size: 16px;
}

.metric-card strong {
    display: block;
    font-family: var(--outfit);
    font-size: 37px;
    line-height: 1;
}

.status-card,
.progress-card {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    padding: 22px 26px;
    border-radius: var(--radius-md);
}

.status-card__top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
}

.status-card__icon {
    width: 49px;
    height: 49px;
}

.status-card__icon svg {
    width: 27px;
    height: 27px;
}

.status-card__top > span {
    font-size: 16px;
}

.status-card > strong {
    display: block;
    margin-left: 64px;
    font-family: var(--outfit);
    font-size: 35px;
    line-height: 1;
}

.status-card > small {
    display: block;
    margin-top: 14px;
    margin-left: 64px;
    font-size: 14px;
    font-weight: 600;
}

.status-card__building {
    position: absolute;
    right: 24px;
    bottom: -14px;
    
   
    clip-path: polygon(45% 0, 100% 18%, 100% 100%, 0 100%, 0 25%);
    
   
}
.status-card__building img{
    width: 6vw;
}


.status-card--available .status-card__icon {
    color: #b7df4e;
    background: rgba(132, 167, 50, 0.27);
}

.status-card--available > small {
    color: #a8d846;
}

.status-card--reserved .status-card__icon {
    color: var(--reserved);
    background: rgba(240, 183, 44, 0.2);
}

.status-card--reserved > small {
    color: var(--reserved);
}

.status-card--sold .status-card__icon {
    color: var(--sold);
    background: rgba(251, 91, 76, 0.18);
}

.status-card--sold > small {
    color: var(--sold);
}

.progress-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-card > span {
    font-size: 16px;
    font-weight: 600;
}

.progress-card > strong {
    margin: 13px 0 15px;
    color: #9ca955;
    font-family: var(--outfit);
    font-size: 37px;
    line-height: 1;
}

.progress-card small {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(214, 221, 219, 0.13);
}

.progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a2ae58, #859448);
    transition: width 900ms cubic-bezier(.21, .75, .31, 1);
}

.dashboard-lower {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(310px, 1fr);
    gap: 16px;
    align-items: start;
}

.panel {
    border-radius: var(--radius-lg);
}

.panel--lamellas {
    padding: 18px 18px 16px;
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 39px;
    margin-bottom: 14px;
}

.panel__header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--outfit);
    font-size: 18px;
    font-weight: 600;
}

.panel-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d9ddd5;
    font-size: 13px;
    white-space: nowrap;
}

.panel-link:hover {
    color: #aab75d;
}

.panel-link svg {
    width: 16px;
    height: 16px;
}

.lamella-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.lamella-card {
    min-width: 0;
    padding: 15px 14px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: rgba(12, 36, 42, 0.54);
    transition: 180ms ease;
}

.lamella-card.is-hidden {
    display: none;
}

.lamella-card__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.lamella-card__icon {
    width: 41px;
    height: 41px;
}

.lamella-card__icon svg {
    width: 21px;
    height: 21px;
}

.lamella-card h3 {
    margin: 0;
    font-size: 16px;
}

.lamella-stats {
    display: grid;
    gap: 8px;
    margin: 0;
}

.lamella-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lamella-stats dt,
.lamella-stats dd {
    margin: 0;
    font-size: 12.5px;
}

.lamella-stats dt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d1d7d2;
}

.lamella-stats dd {
    color: #fff;
    font-weight: 500;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.dot--available {
    color: var(--available);
    background: var(--available);
}

.dot--reserved {
    color: var(--reserved);
    background: var(--reserved);
}

.dot--sold {
    color: var(--sold);
    background: var(--sold);
}

.lamella-card__progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.lamella-card__progress .progress-track {
    height: 8px;
}

.lamella-card__progress strong {
    min-width: 49px;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
}

.empty-state {
    margin: 30px 0;
    color: var(--muted);
    text-align: center;
}

.dashboard-side {
    display: grid;
    gap: 14px;
}

.changes-panel,
.filters-panel {
    padding: 18px 18px 14px;
}

.changes-list {
    display: grid;
}

.change-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    border-bottom: 1px solid rgba(168, 189, 192, 0.12);
}

.change-item:last-child {
    border-bottom: 0;
}

.change-item__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.change-item__icon--reserved {
    color: var(--reserved);
}

.change-item__icon--sold {
    color: var(--sold);
}

.change-item__icon--available {
    color: var(--available);
}

.change-item__content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.change-item__content strong {
    overflow: hidden;
    color: #f1f3ed;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.change-item__content small,
.change-item > span {
    color: #9da7a4;
    font-size: 11px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.filters-grid label {
    display: grid;
    gap: 4px;
    min-height: 59px;
    padding: 8px 11px 7px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: rgba(6, 23, 28, 0.48);
}

.filters-grid label:focus-within {
    border-color: rgba(164, 176, 93, 0.5);
}

.filters-grid span {
    color: #9ba5a2;
    font-size: 11px;
}

.filters-grid select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--textwhite);
    background: transparent;
    cursor: pointer;
}

.filters-grid option {
    color: #fff;
    background: #102b31;
}

@media (max-width: 1270px) {
    .main-content {
        padding-inline: 22px;
    }

    .dashboard-grid--totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid--status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lamella-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    :root {
        --sidebar-width: 220px;
    }

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

    .topbar__actions {
        justify-content: space-between;
    }

    .global-search {
        width: min(420px, 48vw);
    }

    .dashboard-lower {
        grid-template-columns: 1fr;
    }

    .dashboard-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 320px);
        transform: translateX(-102%);
        transition: transform 220ms ease;
        box-shadow: 22px 0 60px rgba(0, 0, 0, 0.4);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar__close,
    .mobile-menu {
        display: inline-grid;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        border: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: 180ms ease;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .main-content {
        padding: 22px 16px 30px;
    }

    .topbar {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        margin-bottom: 22px;
    }

    .mobile-menu {
        align-self: start;
        margin-top: 2px;
        border: 1px solid var(--border);
        background: rgba(14, 38, 45, 0.75);
    }

    .page-heading h1 {
        font-size: 34px;
    }

    .topbar__actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .global-search {
        flex: 1;
        width: auto;
    }

    .profile__text,
    .profile__trigger > svg {
        display: none;
    }

    .dashboard-grid--totals,
    .dashboard-grid--status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-side {
        grid-template-columns: 1fr;
    }

    .sidebar__architecture img{
    width: 93vw;
}

.status-card__building img{
    width: 26vw;
}

}

@media (max-width: 560px) {
    .page-heading p {
        font-size: 14px;
    }

    .topbar__actions {
        gap: 8px;
    }

    .notification-button {
        display: none;
    }

    .profile__avatar {
        width: 42px;
        height: 42px;
    }

    .dashboard-grid--totals,
    .dashboard-grid--status,
    .lamella-grid,
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 94px;
        padding: 16px 18px;
    }

    .metric-card__icon {
        width: 54px;
        height: 54px;
    }

    .metric-card__icon svg {
        width: 27px;
        height: 27px;
    }

    .metric-card strong {
        font-size: 32px;
    }

    .status-card,
    .progress-card {
        min-height: 145px;
    }

    .panel--lamellas,
    .changes-panel,
    .filters-panel {
        padding: 15px 12px 12px;
    }

    .panel__header {
        align-items: flex-start;
    }

    .panel__header h2 {
        font-size: 16px;
    }

    .panel-link {
        font-size: 12px;
    }

    .change-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .change-item > span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
