/* ========================================
   GLOBAL
======================================== */

/** {
    box-sizing: border-box;
}

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

body {
    background: #0b0d10;
    color: #f2f4f7;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

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


/* ========================================
   APP
======================================== */

/*.app {
    min-height: 100vh;
    background: #0b0d10;
}

.main-content {
    min-height: 100vh;
    padding-bottom: 115px;
}*/


/* ========================================
   PAGE
======================================== */

/*.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px;
}*/


/* ========================================
   PAGE HEADER
======================================== */

/*.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

    .page-header h1 {
        margin: 5px 0 8px;
        font-size: 34px;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

.subtitle {
    margin: 0;
    color: #7c8591;
    font-size: 14px;
}

.eyebrow {
    margin: 0;
    color: #6f7885;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}*/


/* ========================================
   PAGE ICON
======================================== */

/*.page-title-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #171b21;
    border: 1px solid #292f37;
    border-radius: 15px;
    font-size: 25px;
}*/


/* ========================================
   BOTTOM NAVIGATION
======================================== */

/*.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(650px, calc(100% - 32px));
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px;
    background: rgba(18, 22, 28, 0.97);
    border: 1px solid #292f37;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 9999;
}*/


/* ========================================
   MENU ITEM
======================================== */

/*.bottom-nav-item {
    position: relative;
    width: 20%;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #707985;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}*/


/* ========================================
   MENU ICON
======================================== */

/*.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}*/


/* ========================================
   ACTIVE ITEM
======================================== */

/*.bottom-nav-item.active {
    background: #252c34;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #323a43;
}

    .bottom-nav-item.active .nav-icon {
        transform: translateY(-1px);
        color: #ffffff;
    }*/


    /* ========================================
   ACTIVE DOT
======================================== */

    /*.bottom-nav-item.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 5px;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background: #ffffff;
        border-radius: 50%;
    }*/


/* ========================================
   HOVER
======================================== */

/*.bottom-nav-item:hover {
    background: #1d232a;
    color: #ffffff;
}

    .bottom-nav-item:hover .nav-icon {
        transform: translateY(-1px);
    }*/


/* ========================================
   MAIN CONTENT
======================================== */

/*.main-content {
    min-height: 100vh;
    padding-bottom: 120px;
}*/


/* ========================================
   NOTIFICATION BUTTON
======================================== */

/*.notification-button {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #171b21;
    color: #ffffff;
    border: 1px solid #292f37;
    border-radius: 12px;
    font-size: 18px;
}

    .notification-button span {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 7px;
        height: 7px;
        background: #ef6464;
        border-radius: 50%;
        border: 2px solid #171b21;
    }*/


/* ========================================
   HOME - WELCOME
======================================== */

/*.welcome-card {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: linear-gradient( 135deg, #171c22, #111419 );
    border: 1px solid #292f37;
    border-radius: 19px;
    margin-bottom: 18px;
    overflow: hidden;
}

.welcome-content h2 {
    margin: 8px 0;
    font-size: 25px;
}

.welcome-content p:last-child {
    margin: 0;
    color: #78818d;
    font-size: 14px;
}

.welcome-icon {
    font-size: 75px;
    opacity: 0.9;
}*/


/* ========================================
   HOME - STATISTICS
======================================== */

/*.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 21px;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 15px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2027;
    border-radius: 12px;
    font-size: 21px;
}

.stat-card p {
    margin: 0 0 5px;
    color: #707985;
    font-size: 12px;
}

.stat-card h2 {
    margin: 0;
    font-size: 21px;
}

.online-text {
    color: #58d887;
}*/


/* ========================================
   SECTION
======================================== */

/*.section {
    margin-top: 38px;
}

.section-header {
    margin-bottom: 17px;
}

    .section-header h2 {
        margin: 5px 0 0;
        font-size: 21px;
    }*/


/* ========================================
   QUICK ACCESS
======================================== */

/*.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-card {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 21px;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 15px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

    .quick-card:hover {
        transform: translateY(-3px);
        background: #171c22;
        border-color: #363d46;
    }

    .quick-card > span {
        font-size: 28px;
    }

    .quick-card strong {
        font-size: 15px;
    }

    .quick-card small {
        color: #707985;
        font-size: 11px;
    }*/


/* ========================================
   SECURITY
======================================== */

/*.security-status {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 27px;
    background: #12171c;
    border: 1px solid #293038;
    border-radius: 17px;
}

.security-shield {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2229;
    border-radius: 16px;
    font-size: 30px;
}

.security-info {
    flex: 1;
}

    .security-info h2 {
        margin: 5px 0;
        font-size: 21px;
    }

    .security-info p:last-child {
        margin: 0;
        color: #737d88;
        font-size: 13px;
    }*/


/* ========================================
   DANGER BUTTON
======================================== */

/*.danger-button {
    padding: 12px 17px;
    background: #2a171a;
    color: #ff8b8b;
    border: 1px solid #4b282d;
    border-radius: 9px;
    font-size: 12px;
    transition: 0.2s;
}

    .danger-button:hover {
        background: #351b1f;
    }*/


/* ========================================
   SENSOR GRID
======================================== */

/*.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.sensor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 14px;
}

.sensor-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2027;
    border-radius: 11px;
    font-size: 20px;
}

.sensor-content {
    flex: 1;
}

    .sensor-content h3 {
        margin: 0 0 4px;
        font-size: 14px;
    }

    .sensor-content p {
        margin: 0;
        color: #707985;
        font-size: 11px;
    }*/


/* ========================================
   STATUS BADGES
======================================== */

/*.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
}

    .status-badge.success {
        background: #12251a;
        color: #58d887;
    }*/


/* ========================================
   LIGHTS
======================================== */

/*.light-overview {
    display: flex;
    gap: 60px;
    padding: 21px 24px;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 14px;
}

    .light-overview span {
        display: block;
        color: #717b86;
        font-size: 11px;
    }

    .light-overview strong {
        display: block;
        margin-top: 5px;
        font-size: 24px;
    }

.lights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.light-card {
    padding: 22px;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 15px;
}

.light-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2027;
    border-radius: 13px;
    font-size: 23px;
}

.light-card h3 {
    margin: 19px 0 5px;
    font-size: 16px;
}

.light-card p {
    margin: 0 0 14px;
    color: #707985;
    font-size: 12px;
}

.light-status {
    color: #737d88;
    font-size: 11px;
}

    .light-status.on {
        color: #58d887;
    }*/


/* ========================================
   SWITCH
======================================== */

/*.switch {
    position: relative;
    width: 48px;
    height: 27px;
    padding: 0;
    background: #2a3038;
    border: none;
    border-radius: 20px;
    transition: 0.2s;
}

    .switch span {
        position: absolute;
        top: 4px;
        left: 4px;
        width: 19px;
        height: 19px;
        background: #8b939e;
        border-radius: 50%;
        transition: 0.2s;
    }

    .switch.active {
        background: #2b6542;
    }

        .switch.active span {
            left: 25px;
            background: #69e092;
        }*/


/* ========================================
   STATISTICS
======================================== */

/*.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.chart-card {
    padding: 25px;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 16px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .chart-header h2 {
        margin: 6px 0 0;
        font-size: 25px;
    }

    .chart-header > span {
        color: #6e7783;
        font-size: 11px;
    }

.chart {
    height: 200px;
    margin-top: 28px;
    border-bottom: 1px solid #292f36;
}

.chart-line {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

    .chart-line span {
        width: 17px;
        background: #3c454f;
        border-radius: 5px 5px 0 0;
    }

        .chart-line span:nth-child(1) {
            height: 35%;
        }

        .chart-line span:nth-child(2) {
            height: 50%;
        }

        .chart-line span:nth-child(3) {
            height: 42%;
        }

        .chart-line span:nth-child(4) {
            height: 66%;
        }

        .chart-line span:nth-child(5) {
            height: 55%;
        }

        .chart-line span:nth-child(6) {
            height: 78%;
        }

        .chart-line span:nth-child(7) {
            height: 68%;
        }

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: #626b76;
    font-size: 10px;
}*/


/* ========================================
   EVENTS
======================================== */

/*.events-container {
    overflow: hidden;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 15px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px;
    border-bottom: 1px solid #252b32;
}

    .event-item:last-child {
        border-bottom: none;
    }

.event-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c2229;
    border-radius: 10px;
    font-size: 17px;
}

.success-icon {
    color: #58d887;
}

.warning-event {
    background: #1c1712;
}

.warning-icon {
    color: #f2b35d;
}

.event-content {
    flex: 1;
}

    .event-content h3 {
        margin: 0 0 4px;
        font-size: 14px;
    }

    .event-content p {
        margin: 0;
        color: #707985;
        font-size: 11px;
    }

.event-item time {
    color: #68717c;
    font-size: 11px;
}*/


/* ========================================
   BUTTONS
======================================== */

/*.primary-button {
    padding: 12px 18px;
    background: #e8eaed;
    color: #111318;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
}

    .primary-button:hover {
        background: #ffffff;
    }

.secondary-button {
    margin-top: 20px;
    padding: 12px 18px;
    background: #171c22;
    color: #aeb5be;
    border: 1px solid #2a3038;
    border-radius: 9px;
    font-size: 12px;
}*/


/* ========================================
   USERS
======================================== */

/*.page-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.users-table-container {
    overflow-x: auto;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 15px;
}

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

    .users-table th {
        padding: 16px;
        text-align: left;
        color: #707985;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid #272d35;
    }

    .users-table td {
        padding: 17px 16px;
        border-bottom: 1px solid #22282f;
        font-size: 12px;
    }

    .users-table tr:last-child td {
        border-bottom: none;
    }

.table-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #252b33;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
}

.table-user strong,
.table-user small {
    display: block;
}

.table-user small {
    margin-top: 3px;
    color: #68717c;
    font-size: 10px;
}

.role {
    color: #aeb5be;
    font-size: 12px;
}

.table-actions {
    display: flex;
    gap: 7px;
}

.edit-button,
.delete-button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c2128;
    border: 1px solid #2a3038;
    border-radius: 8px;
    font-size: 13px;
}

    .edit-button:hover {
        background: #252c34;
    }

    .delete-button:hover {
        background: #321c20;
    }*/


/* ========================================
   SETTINGS
======================================== */

/*.settings-section {
    margin-bottom: 32px;
}

    .settings-section > .eyebrow {
        margin-bottom: 10px;
    }*/


/* ========================================
   SETTINGS GROUP
======================================== */

/*.settings-group {
    overflow: hidden;
    border-radius: 13px;
}*/


/* ========================================
   SETTINGS ITEM
======================================== */

/*.setting-item {
    min-height: 75px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #12161b;
    border: 1px solid #272d35;
    border-bottom: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .setting-item:hover {
        background: #171c22;
        border-color: #303741;
    }

    .setting-item:first-of-type {
        border-radius: 13px 13px 0 0;
    }

    .setting-item:last-child {
        border-bottom: 1px solid #272d35;
        border-radius: 0 0 13px 13px;
    }*/


/* ========================================
   SETTINGS LINK
======================================== */

/*.setting-link {
    width: 100%;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}*/


/* ========================================
   SETTINGS ICON
======================================== */

/*.setting-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2027;
    border: 1px solid #252b33;
    border-radius: 10px;
    font-size: 18px;
}*/


    /* ========================================
   SETTINGS ICON COLORS
======================================== */

    /*.setting-icon.blue {
        background: #151f2e;
        border-color: #263a55;
    }

    .setting-icon.green {
        background: #14241b;
        border-color: #263d2d;
    }

    .setting-icon.orange {
        background: #292017;
        border-color: #493521;
    }

    .setting-icon.red {
        background: #291719;
        border-color: #4a272b;
    }

    .setting-icon.purple {
        background: #211a2b;
        border-color: #382b4b;
    }

    .setting-icon.yellow {
        background: #292517;
        border-color: #494021;
    }*/


/* ========================================
   SETTINGS CONTENT
======================================== */

/*.setting-content {
    flex: 1;
    min-width: 0;
}

    .setting-content h3 {
        margin: 0 0 4px;
        color: #f2f4f7;
        font-size: 13px;
        font-weight: 600;
    }

    .setting-content p {
        margin: 0;
        color: #707985;
        font-size: 11px;
        line-height: 1.4;
    }*/


/* ========================================
   SETTINGS ARROW
======================================== */

/*.arrow {
    flex-shrink: 0;
    color: #656e79;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.2s ease, color 0.2s ease;
}

.setting-item:hover .arrow {
    color: #ffffff;
    transform: translateX(2px);
}*/


/* ========================================
   SETTINGS VALUE
======================================== */

/*.setting-value {
    flex-shrink: 0;
    color: #858e9a;
    font-size: 11px;
}

    .setting-value.success {
        color: #58d887;
    }

    .setting-value.warning {
        color: #f2b35d;
    }*/


/* ========================================
   SETTINGS STATUS
======================================== */

/*.setting-status {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    color: #58d887;
    font-size: 10px;
    font-weight: 500;
}

.setting-status-dot {
    width: 7px;
    height: 7px;
    background: #58d887;
    border-radius: 50%;
}*/


/* ========================================
   SETTINGS SWITCH
======================================== */

/*.settings-switch {
    position: relative;
    width: 48px;
    height: 27px;
    flex-shrink: 0;
    padding: 0;
    background: #2a3038;
    border: none;
    border-radius: 20px;
    transition: background 0.2s ease;
    cursor: pointer;
}

    .settings-switch span {
        position: absolute;
        top: 4px;
        left: 4px;
        width: 19px;
        height: 19px;
        background: #8b939e;
        border-radius: 50%;
        transition: left 0.2s ease, background 0.2s ease;
    }

    .settings-switch.active {
        background: #2b6542;
    }

        .settings-switch.active span {
            left: 25px;
            background: #69e092;
        }*/


/* ========================================
   SETTINGS PROFILE
======================================== */

/*.settings-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #12161b;
    border: 1px solid #272d35;
    border-radius: 13px;
    transition: background 0.2s ease;
}

    .settings-profile:hover {
        background: #171c22;
    }

.settings-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2027;
    border: 1px solid #292f37;
    border-radius: 13px;
    font-size: 21px;
}

.settings-profile-info {
    flex: 1;
}

    .settings-profile-info strong {
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .settings-profile-info span {
        display: block;
        color: #707985;
        font-size: 11px;
    }*/


/* ========================================
   SETTINGS DANGER
======================================== */

/*.settings-danger {
    color: #ff8585;
}

    .settings-danger .setting-icon {
        background: #291719;
        border-color: #4a272b;
    }

    .settings-danger:hover {
        background: #1c1517;
    }*/


/* ========================================
   SETTINGS FOOTER
======================================== */

/*.settings-footer {
    margin-top: 45px;
    text-align: center;
    color: #4e5660;
    font-size: 10px;
}

    .settings-footer strong {
        display: block;
        margin-bottom: 4px;
        color: #626b76;
        font-size: 11px;
    }

    .settings-footer span {
        color: #464d56;
    }*/


/* ========================================
   INPUTS
======================================== */

/*input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    background: #12161b;
    color: #ffffff;
    border: 1px solid #292f37;
    border-radius: 9px;
    outline: none;
}

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #4b5563;
    }*/


/* ========================================
   SCROLLBAR
======================================== */

/*::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #0b0d10;
}

::-webkit-scrollbar-thumb {
    background: #292f37;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #3a424c;
    }*/


/* ========================================
   TABLET
======================================== */

/*@media (max-width: 900px) {

    .page {
        padding: 35px 25px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }
}*/


/* ========================================
   PHONE
======================================== */

/*@media (max-width: 600px) {

    .main-content {
        padding-bottom: 100px;
    }

    .page {
        padding: 25px 16px;
    }

    .page-header {
        margin-bottom: 25px;
    }

        .page-header h1 {
            font-size: 27px;
        }

    .subtitle {
        font-size: 12px;
    }

    .page-title-icon {
        width: 47px;
        height: 47px;
        font-size: 21px;
    }*/


    /* ====================================
       BOTTOM MENU
    ==================================== */

    /*.bottom-nav {
        width: calc(100% - 20px);
        height: 67px;
        bottom: 9px;
        border-radius: 18px;
        padding: 6px;
    }

    .bottom-nav-item {
        height: 55px;
        border-radius: 13px;
        font-size: 9px;
    }

    .nav-icon {
        font-size: 18px;
    }*/


    /* ====================================
       HOME
    ==================================== */

    /*.welcome-card {
        min-height: 170px;
        padding: 22px;
    }

        .welcome-card h2 {
            font-size: 21px;
        }

    .welcome-icon {
        font-size: 52px;
    }

    .stats-grid {
        gap: 10px;
    }*/


    /* ====================================
       QUICK
    ==================================== */

    /*.quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quick-card {
        min-height: 125px;
        padding: 17px;
    }

        .quick-card > span {
            font-size: 24px;
        }*/


    /* ====================================
       SECURITY
    ==================================== */

    /*.security-status {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .danger-button {
        width: 100%;
    }

    .device-grid {
        grid-template-columns: 1fr;
    }*/


    /* ====================================
       LIGHTS
    ==================================== */

    /*.lights-grid {
        grid-template-columns: 1fr;
    }

    .light-overview {
        gap: 40px;
    }*/


    /* ====================================
       STATISTICS
    ==================================== */

    /*.statistics-grid {
        grid-template-columns: 1fr;
    }

    .chart-card {
        padding: 20px;
    }*/


    /* ====================================
       EVENTS
    ==================================== */

    /*.event-item {
        padding: 16px;
    }

        .event-item time {
            align-self: flex-start;
        }*/


    /* ====================================
       USERS
    ==================================== */

    /*.page-actions {
        justify-content: stretch;
    }

    .primary-button {
        width: 100%;
    }*/


    /* ====================================
       SETTINGS
    ==================================== */

    /*.settings-section {
        margin-bottom: 25px;
    }

    .setting-item {
        min-height: 70px;
        padding: 14px;
        gap: 11px;
    }

    .setting-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .setting-content h3 {
        font-size: 12px;
    }

    .setting-content p {
        font-size: 10px;
    }

    .setting-status {
        font-size: 9px;
    }

    .setting-value {
        font-size: 10px;
    }

    .settings-switch {
        width: 46px;
        height: 26px;
    }

        .settings-switch span {
            width: 18px;
            height: 18px;
        }

        .settings-switch.active span {
            left: 24px;
        }

    .settings-profile {
        padding: 15px;
    }

    .settings-avatar {
        width: 44px;
        height: 44px;
    }
}*/


/* ========================================
   VERY SMALL PHONES
======================================== */

/*@media (max-width: 380px) {

    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bottom-nav {
        width: calc(100% - 12px);
    }

    .bottom-nav-item {
        font-size: 8px;
    }

    .nav-icon {
        font-size: 17px;
    }

    .quick-card {
        padding: 14px;
    }*/


    /* ====================================
       SETTINGS
    ==================================== */

    /*.setting-item {
        padding: 12px;
        gap: 9px;
    }

    .setting-icon {
        width: 37px;
        height: 37px;
        font-size: 16px;
    }

    .setting-content h3 {
        font-size: 11px;
    }

    .setting-content p {
        font-size: 9px;
    }

    .arrow {
        font-size: 21px;
    }
}*/

/* ========================================
   MODALS
======================================== */

/*.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
}

.modal {
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #12161b;
    border: 1px solid #292f37;
    border-radius: 17px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    animation: modalOpen 0.18s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}*/


/* ========================================
   MODAL HEADER
======================================== */

/*.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 22px 18px;
    border-bottom: 1px solid #272d35;
}

    .modal-header h2 {
        margin: 0 0 6px;
        font-size: 19px;
    }

    .modal-header p {
        margin: 0;
        color: #707985;
        font-size: 11px;
    }*/


/* ========================================
   MODAL CLOSE
======================================== */

/*.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #1c2128;
    color: #8b939e;
    border: 1px solid #2a3038;
    border-radius: 8px;
    font-size: 19px;
    line-height: 1;
    transition: 0.2s;
}

    .modal-close:hover {
        background: #292f37;
        color: #ffffff;
    }*/


/* ========================================
   MODAL BODY
======================================== */

/*.modal-body {
    padding: 22px;
}*/


/* ========================================
   FORM
======================================== */

/*.form-group {
    margin-bottom: 17px;
}

    .form-group label {
        display: block;
        margin-bottom: 7px;
        color: #aeb5be;
        font-size: 11px;
        font-weight: 600;
    }

.form-input {
    width: 100%;
    padding: 12px 13px;
    background: #0f1216;
    color: #ffffff;
    border: 1px solid #292f37;
    border-radius: 9px;
    outline: none;
    font-size: 12px;
    transition: border-color 0.2s;
}

    .form-input:focus {
        border-color: #505965;
    }

    .form-input::placeholder {
        color: #5f6873;
    }*/


/* ========================================
   CHECKBOX
======================================== */

/*.form-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
}

    .form-checkbox input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: #69e092;
        cursor: pointer;
    }

    .form-checkbox label {
        color: #aeb5be;
        font-size: 11px;
        cursor: pointer;
    }*/


/* ========================================
   MODAL FOOTER
======================================== */

/*.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 18px 22px 22px;
    border-top: 1px solid #272d35;
}

    .modal-footer .primary-button,
    .modal-footer .secondary-button {
        width: auto;
        margin-top: 0;
    }*/


/* ========================================
   DELETE BUTTON
======================================== */

/*.delete-confirm-button {
    padding: 12px 18px;
    background: #321c20;
    color: #ff8585;
    border: 1px solid #4b282d;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
}

    .delete-confirm-button:hover {
        background: #432126;
    }*/


/* ========================================
   DELETE MODAL
======================================== */

/*.delete-modal {
    max-width: 440px;
}

    .delete-modal .modal-body p {
        margin: 0;
        color: #aeb5be;
        font-size: 13px;
        line-height: 1.5;
    }

    .delete-modal .modal-body strong {
        color: #ffffff;
    }*/


/* ========================================
   MODAL MOBILE
======================================== */

/*@media (max-width: 600px) {

    .modal-overlay {
        padding: 12px;
        align-items: center;
    }

    .modal {
        max-width: 100%;
        border-radius: 15px;
    }

    .modal-header {
        padding: 19px 18px 16px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-footer {
        padding: 16px 18px 18px;
    }

        .modal-footer .primary-button,
        .modal-footer .secondary-button,
        .modal-footer .delete-confirm-button {
            flex: 1;
        }
}*/

/*.user-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
}

.user-modal {
    width: 500px;
    max-width: 100%;
    background: #12161b;
    color: #f2f4f7;
    border: 1px solid #292f37;
    border-radius: 17px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.user-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px;
    border-bottom: 1px solid #272d35;
}

    .user-modal-header h2 {
        margin: 0 0 6px;
        font-size: 19px;
    }

    .user-modal-header p {
        margin: 0;
        color: #707985;
        font-size: 11px;
    }

.user-modal-close {
    width: 32px;
    height: 32px;
    background: #1c2128;
    color: white;
    border: 1px solid #2a3038;
    border-radius: 8px;
    font-size: 20px;
}

.user-modal-body {
    padding: 22px;
}

.user-form-group {
    margin-bottom: 16px;
}

    .user-form-group label {
        display: block;
        margin-bottom: 7px;
        color: #aeb5be;
        font-size: 11px;
    }

    .user-form-group input,
    .user-form-group select {
        width: 100%;
        padding: 12px;
        background: #0f1216;
        color: white;
        border: 1px solid #292f37;
        border-radius: 9px;
    }

.user-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}

    .user-checkbox input {
        width: 16px;
        height: 16px;
    }

    .user-checkbox label {
        color: #aeb5be;
        font-size: 11px;
    }

.user-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px;
    border-top: 1px solid #272d35;
}

.user-cancel-button,
.user-save-button {
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}

.user-cancel-button {
    background: #171c22;
    color: #aeb5be;
    border: 1px solid #2a3038;
}

.user-save-button {
    background: #e8eaed;
    color: #111318;
    border: none;
}*/

/* ========================================
   DELETE USER MODAL
======================================== */

/*.user-delete-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
}

.user-delete-modal {
    width: 440px;
    max-width: 100%;
    background: #12161b;
    color: #f2f4f7;
    border: 1px solid #292f37;
    border-radius: 17px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.user-delete-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px;
    border-bottom: 1px solid #272d35;
}

    .user-delete-header h2 {
        margin: 0 0 6px;
        font-size: 19px;
    }

    .user-delete-header p {
        margin: 0;
        color: #707985;
        font-size: 11px;
    }

.user-delete-close {
    width: 32px;
    height: 32px;
    background: #1c2128;
    color: white;
    border: 1px solid #2a3038;
    border-radius: 8px;
    font-size: 20px;
}

.user-delete-body {
    padding: 22px;
}

    .user-delete-body p {
        margin: 0;
        color: #aeb5be;
        font-size: 13px;
    }

    .user-delete-body strong {
        color: white;
    }

.user-delete-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px;
    border-top: 1px solid #272d35;
}

.user-delete-cancel {
    padding: 12px 18px;
    background: #171c22;
    color: #aeb5be;
    border: 1px solid #2a3038;
    border-radius: 9px;
}

.user-delete-confirm {
    padding: 12px 18px;
    background: #321c20;
    color: #ff8585;
    border: 1px solid #4b282d;
    border-radius: 9px;
    font-weight: 600;
}

    .user-delete-confirm:hover {
        background: #432126;
    }

.launch-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient( circle at 50% 45%, #111820 0%, #07090c 45%, #030405 100% );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: launchAppear 0.8s ease-out forwards;
}

.launch-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}*/


/* ---------------- GRID ---------------- */

/*.grid-floor {
    position: absolute;
    width: 180%;
    height: 55%;
    left: -40%;
    bottom: -25%;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 55px 55px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center bottom;
    opacity: 0;
    animation: gridAppear 2s ease-out 0.7s forwards, gridMove 8s linear infinite;
}*/


/* ---------------- CONTENT ---------------- */

/*.launch-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}*/


/* ---------------- HOUSE ---------------- */

/*.house-scene {
    width: 340px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.house {
    position: relative;
    width: 260px;
    height: 190px;
    transform-style: preserve-3d;
    transform: rotateX(4deg) rotateY(-20deg) rotateZ(0deg) translateY(30px) scale(.75);
    opacity: 0;
    animation: houseAppear 1.5s cubic-bezier(.2,.8,.2,1) 0.5s forwards, houseFloat 5s ease-in-out 2s infinite;
}*/


/* ---------------- BASE ---------------- */

/*.house-base {
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 250px;
    height: 12px;
    background: #151a20;
    border: 1px solid rgba(255,255,255,.15);
    transform: translateZ(30px);
    box-shadow: 0 0 30px rgba(120,180,255,.12);
}*/


/* ---------------- FRONT WALL ---------------- */

/*.house-front {
    position: absolute;
    left: 20px;
    bottom: 12px;
    width: 200px;
    height: 130px;
    background: linear-gradient( 135deg, #1c242d, #0e1318 );
    border: 1px solid rgba(255,255,255,.14);
    transform: translateZ(35px);
    box-shadow: inset 0 0 30px rgba(255,255,255,.025);
}*/


/* ---------------- SIDE WALL ---------------- */

/*.house-side {
    position: absolute;
    left: 220px;
    bottom: 12px;
    width: 55px;
    height: 130px;
    background: linear-gradient( 135deg, #11171d, #080b0f );
    border: 1px solid rgba(255,255,255,.1);
    transform: skewY(-28deg) translateZ(0);
}*/


/* ---------------- ROOF ---------------- */

/*.roof {
    position: absolute;
    width: 145px;
    height: 85px;
    background: linear-gradient( 135deg, #202a35, #0b1015 );
    border: 1px solid rgba(255,255,255,.18);
    top: 5px;
}*/


/* left roof */

/*.roof-left {
    left: 17px;
    transform: rotate(27deg) skewX(-25deg) translateZ(45px);
    transform-origin: right bottom;
}*/


/* right roof */

/*.roof-right {
    left: 130px;
    transform: rotate(-27deg) skewX(25deg) translateZ(45px);
    transform-origin: left bottom;
}*/


/* ---------------- DOOR ---------------- */

/*.house-door {
    position: absolute;
    left: 101px;
    bottom: 12px;
    width: 42px;
    height: 82px;
    background: linear-gradient( 180deg, #151d25, #080c10 );
    border: 1px solid rgba(255,255,255,.2);
    transform: translateZ(38px);
    overflow: hidden;
}


.door-light {
    position: absolute;
    left: 5px;
    right: 5px;
    top: 5px;
    height: 35px;
    background: radial-gradient( circle, rgba(180,220,255,.5), rgba(100,160,255,.08), transparent );
    opacity: 0;
    animation: lightOn .8s ease-out 3.1s forwards;
}*/


/* ---------------- WINDOWS ---------------- */

/*.house-window {
    position: absolute;
    width: 45px;
    height: 42px;
    background: #090d11;
    border: 1px solid rgba(255,255,255,.2);
    transform: translateZ(40px);
    overflow: hidden;
}


.window-left {
    left: 38px;
    bottom: 73px;
}


.window-right {
    right: 30px;
    bottom: 73px;
}


.window-side {
    left: 229px;
    bottom: 72px;
    transform: skewY(-28deg) translateZ(3px);
}


.house-window::before,
.house-window::after {
    content: "";
    position: absolute;
    background: rgba(170,210,255,.65);
    opacity: 0;
    animation: windowLight .8s ease-out 3.2s forwards;
}


.house-window::before {
    inset: 4px;
}


.house-window::after {
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255,255,255,.25);
}


.house-window span:first-child {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 1px;
    background: rgba(255,255,255,.2);
    z-index: 2;
}*/


/* ---------------- HOUSE GLOW ---------------- */

/*.house-glow {
    position: absolute;
    width: 230px;
    height: 80px;
    left: 20px;
    bottom: -10px;
    background: radial-gradient( ellipse, rgba(120,180,255,.22), transparent 70% );
    filter: blur(20px);
    opacity: 0;
    animation: glowAppear 1.5s ease-out 2.8s forwards;
}*/


/* ---------------- TITLE ---------------- */

/*.launch-title {
    margin-top: 5px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: titleAppear 1s ease-out 3.7s forwards;
}


.launch-logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(150,200,255,.25);
}


.launch-status {
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(255,255,255,.45);
}


.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: #7ee787;
    box-shadow: 0 0 10px rgba(126,231,135,.8);
    animation: statusPulse 1.4s ease-in-out infinite;
}*/


/* ---------------- ANIMATIONS ---------------- */

/*@keyframes launchAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes gridAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes gridMove {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 0 55px, 55px 0;
    }
}


@keyframes houseAppear {

    0% {
        opacity: 0;
        transform: rotateX(20deg) rotateY(-45deg) translateY(100px) scale(.45);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: rotateX(4deg) rotateY(-20deg) translateY(30px) scale(.75);
    }
}


@keyframes houseFloat {

    0%, 100% {
        transform: rotateX(4deg) rotateY(-20deg) translateY(30px) scale(.75);
    }

    50% {
        transform: rotateX(5deg) rotateY(-16deg) translateY(20px) scale(.75);
    }
}


@keyframes windowLight {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes lightOn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes glowAppear {

    from {
        opacity: 0;
        transform: scale(.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes titleAppear {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes statusPulse {

    0%, 100% {
        opacity: .5;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}*/


/* ---------------- FINISH ---------------- */

/*.launch-finished {
    animation: launchExit .7s ease-in forwards;
}


@keyframes launchExit {

    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: scale(1.04);
    }
}*/


/* ---------------- MOBILE ---------------- */

/*@media (max-width: 600px) {

    .house-scene {
        transform: scale(.8);
    }

    .launch-logo {
        font-size: 26px;
        letter-spacing: 6px;
    }

    .launch-status {
        font-size: 9px;
        letter-spacing: 3px;
    }
}*/


/* =========================================================
   MY HOME — 3D SMART HOME UI
   ASP.NET Core Blazor
   ========================================================= */

/* =========================================================
   ROOT
   ========================================================= */

:root {
    --bg: #07090d;
    --bg-2: #0b0f16;
    --surface: #10151d;
    --surface-2: #151b25;
    --surface-3: #1b2330;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.13);
    --text: #f5f7fa;
    --muted: #8b95a5;
    --muted-2: #687383;
    --accent: #6ea8ff;
    --accent-2: #4285ff;
    --green: #42e69a;
    --red: #ff5f6d;
    --orange: #ffb454;
    --yellow: #ffd166;
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.32);
    --radius: 24px;
    --radius-small: 16px;
    
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient( circle at 15% 10%, rgba(65, 115, 255, 0.12), transparent 32% ), radial-gradient( circle at 85% 20%, rgba(0, 210, 255, 0.06), transparent 30% ), radial-gradient( circle at 50% 100%, rgba(90, 80, 255, 0.06), transparent 35% ), #07090d;
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

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

/* =========================================================
   GLOBAL 3D SCENE
   ========================================================= */

.app {
    min-height: 100vh;
    perspective: 1400px;
    perspective-origin: 50% 35%;
    position: relative;
}

    .app::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( rgba(255,255,255,0.015) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,0.015) 1px, transparent 1px );
        background-size: 55px 55px;
        mask-image: linear-gradient( to bottom, black, transparent 75% );
        opacity: 0.35;
    }

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    min-height: 100vh;
    
    transform-style: preserve-3d;
}

.page {
    width: min(1200px, calc(100% - 50px));
    margin: 0 auto;
    padding: 50px 0 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: pageEnter 0.55s ease both;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(18px) translateZ(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
    transform-style: preserve-3d;
}

    .page-header > div:first-child {
        transform: translateZ(35px);
    }

.eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #718096;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 25px rgba(0,0,0,0.35);
}

.subtitle {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.page-title-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 30px;
    border-radius: 22px;
    background: linear-gradient( 145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025) );
    border: 1px solid var(--border-light);
    box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 18px 40px rgba(0,0,0,0.45);
    transform: translateZ(55px) rotateX(4deg) rotateY(-8deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .page-title-icon:hover {
        transform: translateZ(70px) rotateX(0) rotateY(-12deg) scale(1.05);
        box-shadow: inset 0 1px rgba(255,255,255,0.12), 0 25px 60px rgba(0,0,0,0.55), 0 0 35px rgba(80,130,255,0.12);
    }

/* =========================================================
   NOTIFICATION BUTTON
   ========================================================= */

.notification-button {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    color: white;
    font-size: 21px;
    border-radius: 19px;
    background: linear-gradient( 145deg, #171e29, #0e131b );
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 1px rgba(255,255,255,0.08);
    transform: translateZ(45px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .notification-button:hover {
        transform: translateZ(65px) translateY(-3px);
        box-shadow: 0 22px 45px rgba(0,0,0,0.5), 0 0 25px rgba(80,140,255,0.15);
    }

    .notification-button span {
        width: 8px;
        height: 8px;
        position: absolute;
        top: 10px;
        right: 10px;
        border-radius: 50%;
        background: var(--red);
        box-shadow: 0 0 12px rgba(255,95,109,0.8);
    }

/* =========================================================
   3D SURFACE BASE
   ========================================================= */

.welcome-card,
.stat-card,
.security-status,
.light-overview,
.light-card,
.notification-card,
.users-table-container,
.settings-group,
.setting-item,
.chart-card,
.events-container,
.sensor-card {
    position: relative;
    transform-style: preserve-3d;
    background: linear-gradient( 145deg, rgba(27,34,46,0.96), rgba(12,16,23,0.98) );
    border: 1px solid var(--border);
    box-shadow: 0 25px 55px rgba(0,0,0,0.35), inset 0 1px rgba(255,255,255,0.055);
    overflow: hidden;
}

    .welcome-card::before,
    .stat-card::before,
    .security-status::before,
    .light-card::before,
    .notification-card::before,
    .users-table-container::before,
    .setting-item::before,
    .chart-card::before,
    .sensor-card::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 135deg, rgba(255,255,255,0.06), transparent 35% );
        opacity: 0.55;
    }

/* =========================================================
   WELCOME CARD
   ========================================================= */

.welcome-card {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 38px 42px;
    margin-bottom: 28px;
    border-radius: 30px;
    transform: translateZ(35px) rotateX(1deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .welcome-card:hover {
        transform: translateZ(55px) translateY(-4px) rotateX(1deg);
        box-shadow: 0 35px 75px rgba(0,0,0,0.48), 0 0 50px rgba(75,130,255,0.06), inset 0 1px rgba(255,255,255,0.08);
    }

.welcome-content {
    position: relative;
    z-index: 2;
    transform: translateZ(35px);
}

    .welcome-content h2 {
        margin: 0;
        font-size: 27px;
        letter-spacing: -0.025em;
    }

    .welcome-content p:not(.eyebrow) {
        margin: 10px 0 0;
        color: var(--muted);
        line-height: 1.5;
    }

.welcome-icon {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 48px;
    border-radius: 30px;
    background: radial-gradient( circle at 35% 25%, rgba(120,170,255,0.2), transparent 55% ), rgba(255,255,255,0.035);
    border: 1px solid rgba(130,170,255,0.12);
    box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 20px 45px rgba(0,0,0,0.45);
    transform: translateZ(70px) rotateY(-10deg);
    transition: transform 0.4s ease;
}

.welcome-card:hover .welcome-icon {
    transform: translateZ(90px) rotateY(-15deg) rotateX(5deg);
}

/* =========================================================
   STATS GRID
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
    transform-style: preserve-3d;
}

.stat-card {
    min-height: 130px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 22px;
    transform: translateZ(25px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .stat-card:hover {
        transform: translateZ(48px) translateY(-5px) rotateX(2deg);
        box-shadow: 0 30px 55px rgba(0,0,0,0.45), 0 0 35px rgba(80,130,255,0.06), inset 0 1px rgba(255,255,255,0.08);
    }

.stat-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 25px;
    border-radius: 18px;
    background: linear-gradient( 145deg, rgba(90,135,255,0.15), rgba(90,135,255,0.03) );
    border: 1px solid rgba(100,145,255,0.12);
    box-shadow: inset 0 1px rgba(255,255,255,0.07), 0 10px 25px rgba(0,0,0,0.35);
    transform: translateZ(25px);
}

.stat-card p {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 13px;
}

.stat-card h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.online-text {
    color: var(--green);
    text-shadow: 0 0 18px rgba(66,230,154,0.25);
}

.offline-text {
    color: var(--red);
    text-shadow: 0 0 18px rgba(255,95,109,0.2);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .section-header h2 {
        margin: 0;
        font-size: 25px;
        letter-spacing: -0.025em;
    }

/* =========================================================
   SECURITY
   ========================================================= */

.security-status {
    min-height: 180px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 32px;
    margin-bottom: 35px;
    border-radius: 28px;
    transform: translateZ(40px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .security-status:hover {
        transform: translateZ(60px) translateY(-4px);
        box-shadow: 0 35px 70px rgba(0,0,0,0.48), 0 0 45px rgba(255,90,100,0.05), inset 0 1px rgba(255,255,255,0.08);
    }

.security-shield {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    font-size: 42px;
    border-radius: 28px;
    background: radial-gradient( circle at 35% 25%, rgba(255,80,95,0.18), transparent 60% ), rgba(255,255,255,0.025);
    border: 1px solid rgba(255,100,110,0.12);
    box-shadow: 0 20px 45px rgba(0,0,0,0.4), inset 0 1px rgba(255,255,255,0.07);
    transform: translateZ(65px) rotateY(-8deg);
}

.security-info {
    transform: translateZ(35px);
}

    .security-info h2 {
        margin: 4px 0 8px;
        font-size: 26px;
    }

    .security-info p:last-child {
        margin: 0;
        color: var(--muted);
    }

.danger-button {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 15px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient( 145deg, rgba(255,85,100,0.22), rgba(180,35,55,0.14) );
    border: 1px solid rgba(255,100,110,0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35), inset 0 1px rgba(255,255,255,0.06);
    transform: translateZ(40px);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

    .danger-button:hover {
        transform: translateZ(55px) translateY(-3px);
        background: linear-gradient( 145deg, rgba(255,85,100,0.3), rgba(180,35,55,0.2) );
        box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 25px rgba(255,80,100,0.08);
    }

.device-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* =========================================================
   LIGHTS
   ========================================================= */

.light-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    padding: 0;
    margin-bottom: 38px;
    border-radius: 24px;
    overflow: hidden;
    transform: translateZ(35px);
}

    .light-overview > div {
        min-height: 130px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px;
        background: linear-gradient( 145deg, rgba(26,33,44,0.96), rgba(12,16,22,0.98) );
        position: relative;
        transform-style: preserve-3d;
    }

        .light-overview > div:first-child {
            box-shadow: inset -1px 0 rgba(255,255,255,0.05);
        }

    .light-overview span {
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 7px;
    }

    .light-overview strong {
        font-size: 38px;
        color: var(--text);
        transform: translateZ(20px);
    }

.lights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    transform-style: preserve-3d;
}

.light-card {
    min-height: 255px;
    padding: 22px;
    border-radius: 24px;
    transform: translateZ(30px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .light-card:hover {
        transform: translateZ(60px) translateY(-7px) rotateX(2deg) rotateY(-1deg);
        box-shadow: 0 35px 65px rgba(0,0,0,0.5), 0 0 40px rgba(255,190,80,0.05), inset 0 1px rgba(255,255,255,0.08);
    }

.light-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    transform-style: preserve-3d;
}

.room-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    font-size: 27px;
    border-radius: 20px;
    background: linear-gradient( 145deg, rgba(255,205,90,0.15), rgba(255,150,50,0.035) );
    border: 1px solid rgba(255,190,90,0.13);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35), inset 0 1px rgba(255,255,255,0.07);
    transform: translateZ(35px);
}

.light-card h3 {
    margin: 0 0 7px;
    font-size: 19px;
}

.light-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.light-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #7d8795;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.05);
}

    .light-status.on {
        color: var(--yellow);
        background: rgba(255,200,80,0.08);
        border-color: rgba(255,200,80,0.14);
        box-shadow: 0 0 18px rgba(255,200,80,0.08);
    }

/* =========================================================
   3D SWITCH
   ========================================================= */

.switch {
    width: 52px;
    height: 30px;
    padding: 3px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 20px;
    background: #242b35;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 3px 7px rgba(0,0,0,0.45), 0 8px 18px rgba(0,0,0,0.3);
    transform: translateZ(30px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

    .switch span {
        width: 22px;
        height: 22px;
        display: block;
        border-radius: 50%;
        background: linear-gradient( 145deg, #f5f6f8, #aeb6c0 );
        box-shadow: 0 4px 8px rgba(0,0,0,0.4);
        transform: translateX(0);
        transition: transform 0.25s ease;
    }

    .switch.active {
        background: linear-gradient( 145deg, #ffca55, #e89c20 );
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.15), 0 0 22px rgba(255,190,60,0.18);
    }

        .switch.active span {
            transform: translateX(21px);
        }

/* =========================================================
   NOTIFICATIONS
   ========================================================= */

.push-notification-settings {
    margin-bottom: 25px;
    transform: translateZ(35px);
}

.push-button {
    min-height: 50px;
    padding: 0 20px;
    cursor: pointer;
    color: white;
    border-radius: 15px;
    background: linear-gradient( 145deg, #1c5edb, #1646a6 );
    border: 1px solid rgba(120,170,255,0.25);
    box-shadow: 0 18px 35px rgba(0,0,0,0.4), 0 0 25px rgba(50,120,255,0.1), inset 0 1px rgba(255,255,255,0.12);
    transform: translateZ(35px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .push-button:hover {
        transform: translateZ(50px) translateY(-3px);
        box-shadow: 0 25px 45px rgba(0,0,0,0.5), 0 0 35px rgba(50,120,255,0.16), inset 0 1px rgba(255,255,255,0.15);
    }

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform-style: preserve-3d;
}

.notification-card {
    display: flex;
    gap: 20px;
    padding: 22px;
    border-radius: 22px;
    transform: translateZ(25px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .notification-card:hover {
        transform: translateZ(48px) translateX(4px);
        box-shadow: 0 28px 55px rgba(0,0,0,0.45), inset 0 1px rgba(255,255,255,0.08);
    }

.notification-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 25px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 1px rgba(255,255,255,0.06), 0 10px 25px rgba(0,0,0,0.3);
    transform: translateZ(30px);
}

.notification-content {
    min-width: 0;
    transform: translateZ(20px);
}

    .notification-content h3 {
        margin: 0 0 6px;
        font-size: 17px;
    }

    .notification-content p {
        margin: 0 0 10px;
        color: var(--muted);
        line-height: 1.5;
        font-size: 13px;
    }

.notification-time {
    color: var(--muted-2);
    font-size: 11px;
}

.empty-notifications {
    padding: 70px 30px;
    text-align: center;
    border-radius: 28px;
    background: linear-gradient( 145deg, rgba(25,31,41,0.95), rgba(11,15,21,0.98) );
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35), inset 0 1px rgba(255,255,255,0.05);
    transform: translateZ(30px);
}

.empty-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 35px;
    border-radius: 25px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.empty-notifications h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.empty-notifications p {
    margin: 0;
    color: var(--muted);
}

/* =========================================================
   USERS
   ========================================================= */

.page-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    transform: translateZ(40px);
}

.primary-button {
    min-height: 50px;
    padding: 0 20px;
    cursor: pointer;
    color: white;
    border-radius: 15px;
    background: linear-gradient( 145deg, #3979ef, #2459c4 );
    border: 1px solid rgba(120,170,255,0.2);
    box-shadow: 0 17px 35px rgba(0,0,0,0.4), 0 0 25px rgba(60,120,255,0.08), inset 0 1px rgba(255,255,255,0.12);
    transform: translateZ(30px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .primary-button:hover {
        transform: translateZ(48px) translateY(-3px);
        box-shadow: 0 24px 45px rgba(0,0,0,0.5), 0 0 35px rgba(60,120,255,0.14), inset 0 1px rgba(255,255,255,0.15);
    }

.users-table-container {
    border-radius: 25px;
    overflow: auto;
    transform: translateZ(30px);
    box-shadow: 0 28px 65px rgba(0,0,0,0.42), inset 0 1px rgba(255,255,255,0.05);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

    .users-table th {
        padding: 18px 20px;
        text-align: left;
        color: var(--muted-2);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        background: rgba(255,255,255,0.025);
        border-bottom: 1px solid var(--border);
    }

    .users-table td {
        padding: 20px;
        color: #d7dce3;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.055);
    }

    .users-table tbody tr {
        transition: background 0.2s ease, transform 0.2s ease;
    }

        .users-table tbody tr:hover {
            background: rgba(255,255,255,0.025);
        }

.table-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    color: white;
    font-weight: 800;
    background: linear-gradient( 145deg, #315fbd, #1a315e );
    border: 1px solid rgba(120,160,255,0.16);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35), inset 0 1px rgba(255,255,255,0.1);
    transform: translateZ(20px);
}

.table-user strong {
    display: block;
    margin-bottom: 4px;
    color: white;
    font-size: 14px;
}

.table-user small {
    color: var(--muted-2);
    font-size: 11px;
}

.role {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 9px;
    color: #9dbfff;
    background: rgba(80,130,255,0.08);
    border: 1px solid rgba(100,145,255,0.12);
    font-size: 11px;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 9px;
    color: #8b95a5;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
    font-weight: 700;
}

    .status-badge.success {
        color: var(--green);
        background: rgba(66,230,154,0.07);
        border-color: rgba(66,230,154,0.12);
        box-shadow: 0 0 15px rgba(66,230,154,0.05);
    }

/* =========================================================
   SETTINGS
   ========================================================= */

.settings-section {
    margin-bottom: 35px;
    transform-style: preserve-3d;
}

    .settings-section > .eyebrow {
        margin-left: 5px;
        margin-bottom: 12px;
    }

.settings-group {
    border-radius: 25px;
    overflow: hidden;
    transform: translateZ(30px);
    box-shadow: 0 25px 55px rgba(0,0,0,0.38);
}

.setting-item {
    background: linear-gradient( 145deg, rgba(25,31,41,0.96), rgba(11,15,21,0.98) );
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.055);
    overflow: visible;
    transition: background 0.25s ease, transform 0.25s ease;
}

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

    .setting-item:hover {
        background: linear-gradient( 145deg, rgba(31,39,51,0.98), rgba(13,18,25,1) );
        transform: translateZ(12px);
    }

.setting-link {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 22px;
    cursor: pointer;
    transform-style: preserve-3d;
}

.setting-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 21px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 10px 22px rgba(0,0,0,0.3), inset 0 1px rgba(255,255,255,0.06);
    transform: translateZ(28px);
}

    .setting-icon.blue {
        background: rgba(70,125,255,0.1);
        border-color: rgba(80,135,255,0.14);
    }

    .setting-icon.red {
        background: rgba(255,80,95,0.09);
        border-color: rgba(255,90,105,0.13);
    }

.setting-content {
    flex: 1;
    transform: translateZ(20px);
}

    .setting-content h3 {
        margin: 0 0 5px;
        font-size: 16px;
        color: white;
    }

    .setting-content p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }

.arrow {
    color: #697484;
    font-size: 30px;
    line-height: 1;
    transform: translateZ(20px);
    transition: transform 0.25s ease, color 0.25s ease;
}

.setting-item:hover .arrow {
    color: white;
    transform: translateZ(35px) translateX(4px);
}

.setting-value {
    color: var(--muted);
    font-size: 12px;
}

.settings-footer {
    padding: 35px 10px;
    text-align: center;
    color: var(--muted-2);
    font-size: 12px;
}

    .settings-footer strong {
        display: block;
        margin-bottom: 6px;
        color: #c9d0da;
        font-size: 13px;
    }

/* =========================================================
   FORM ELEMENTS
   ========================================================= */

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: white;
    background: rgba(5,8,12,0.75);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 13px;
    outline: none;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    input:focus,
    select:focus,
    textarea:focus {
        border-color: rgba(90,145,255,0.55);
        box-shadow: 0 0 0 3px rgba(70,125,255,0.08), inset 0 3px 10px rgba(0,0,0,0.25);
    }

    input::placeholder,
    textarea::placeholder {
        color: #586272;
    }

select {
    appearance: auto;
}

.user-form-group {
    margin-bottom: 18px;
}

    .user-form-group label {
        display: block;
        margin-bottom: 8px;
        color: #b5bdc9;
        font-size: 12px;
        font-weight: 600;
    }

.user-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
}

    .user-checkbox input {
        width: 18px;
        min-height: 18px;
        accent-color: var(--accent);
    }

    .user-checkbox label {
        color: #aeb7c3;
        font-size: 13px;
    }

/* =========================================================
   USER MODAL
   ========================================================= */

.user-modal-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    perspective: 1200px;
    animation: overlayIn 0.25s ease both;
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.user-modal {
    width: min(520px, 100%);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    border-radius: 28px;
    background: linear-gradient( 145deg, #1b2330, #0d1219 );
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow: 0 45px 100px rgba(0,0,0,0.65), 0 0 70px rgba(70,120,255,0.08), inset 0 1px rgba(255,255,255,0.08);
    transform: translateZ(100px) rotateX(2deg);
    animation: modalIn 0.35s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(25px) translateZ(-100px) rotateX(8deg) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(100px) rotateX(2deg) scale(1);
    }
}

.user-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

    .user-modal-header h2 {
        margin: 0 0 6px;
        font-size: 22px;
    }

    .user-modal-header p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }

.user-modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    cursor: pointer;
    color: #b8c0cc;
    font-size: 25px;
    border-radius: 12px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.07);
    transition: background 0.2s ease, color 0.2s ease;
}

    .user-modal-close:hover {
        color: white;
        background: rgba(255,80,95,0.12);
    }

.user-modal-body {
    padding: 25px 28px;
}

.user-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px 25px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.user-cancel-button,
.user-save-button {
    min-height: 46px;
    padding: 0 18px;
    cursor: pointer;
    border-radius: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-cancel-button {
    color: #aab3c0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
}

.user-save-button {
    color: white;
    background: linear-gradient( 145deg, #3979ef, #2459c4 );
    border: 1px solid rgba(120,170,255,0.2);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

    .user-cancel-button:hover,
    .user-save-button:hover {
        transform: translateY(-2px);
    }

/* =========================================================
   GENERIC BUTTONS
   ========================================================= */

.button,
.secondary-button,
.save-button,
.cancel-button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 13px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .button:hover,
    .secondary-button:hover,
    .save-button:hover,
    .cancel-button:hover {
        transform: translateY(-2px);
    }

/* =========================================================
   SENSOR CARDS
   ========================================================= */

.sensor-card {
    padding: 22px;
    border-radius: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .sensor-card:hover {
        transform: translateZ(45px) translateY(-5px);
        box-shadow: 0 30px 60px rgba(0,0,0,0.45);
    }

    .sensor-card h3 {
        margin: 12px 0 5px;
        font-size: 17px;
    }

    .sensor-card p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
    }

/* =========================================================
   BADGES
   ========================================================= */

.badge,
.status,
.sensor-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
}

    .badge.success,
    .status.success,
    .sensor-status.success {
        color: var(--green);
        background: rgba(66,230,154,0.07);
        border: 1px solid rgba(66,230,154,0.12);
    }

    .badge.warning,
    .status.warning,
    .sensor-status.warning {
        color: var(--orange);
        background: rgba(255,180,84,0.07);
        border: 1px solid rgba(255,180,84,0.12);
    }

    .badge.danger,
    .status.danger,
    .sensor-status.danger {
        color: var(--red);
        background: rgba(255,95,109,0.07);
        border: 1px solid rgba(255,95,109,0.12);
    }

/* =========================================================
   STATISTICS
   ========================================================= */

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

.chart-card {
    padding: 25px;
    border-radius: 25px;
    transform: translateZ(25px);
}

    .chart-card h3 {
        margin: 0 0 20px;
        font-size: 17px;
    }

.chart {
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-top: 20px;
}

.chart-bar {
    flex: 1;
    min-width: 10px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient( to top, #2459c4, #6ea8ff );
    box-shadow: 0 0 20px rgba(70,130,255,0.12), inset 0 1px rgba(255,255,255,0.15);
}

/* =========================================================
   EVENTS
   ========================================================= */

.events-container {
    border-radius: 25px;
    overflow: hidden;
    transform: translateZ(25px);
}

.event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

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

    .event-item:hover {
        background: rgba(255,255,255,0.025);
    }

.event-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.06);
}

.event-warning {
    color: var(--orange);
}

.event-success {
    color: var(--green);
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #07090d;
}

::-webkit-scrollbar-thumb {
    background: #252d39;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #354052;
    }

/* ========================================
   BOTTOM NAVIGATION
======================================== */

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(650px, calc(100% - 32px));
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px;
    background: rgba(18, 22, 28, 0.97);
    border: 1px solid #292f37;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 9999;
}


/* ========================================
   MENU ITEM
======================================== */

.bottom-nav-item {
    position: relative;
    width: 20%;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #707985;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


/* ========================================
   MENU ICON
======================================== */

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}


/* ========================================
   ACTIVE ITEM
======================================== 
*/
.bottom-nav-item.active {
    background: #252c34;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #323a43;
}

    .bottom-nav-item.active .nav-icon {
        transform: translateY(-1px);
        color: #ffffff;
    }

/*
 ========================================
   ACTIVE DOT
======================================== */

.bottom-nav-item.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 5px;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background: #ffffff;
        border-radius: 50%;
    }


/* ========================================
   HOVER
======================================== 
*/
.bottom-nav-item:hover {
    background: #1d232a;
    color: #ffffff;
}

    .bottom-nav-item:hover .nav-icon {
        transform: translateY(-1px);
    }

/* =========================================================
   LAUNCH SCREEN
   ========================================================= */

.launch-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient( circle at 50% 30%, rgba(50,100,220,0.13), transparent 35% ), #05070a;
    perspective: 1200px;
}

.launch-background {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(255,255,255,0.02) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,0.02) 1px, transparent 1px );
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(60deg) scale(1.5);
    transform-origin: center bottom;
    opacity: 0.45;
}

.grid-floor {
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: -30%;
    height: 65%;
    background: linear-gradient( rgba(100,150,255,0.07) 1px, transparent 1px ), linear-gradient( 90deg, rgba(100,150,255,0.07) 1px, transparent 1px );
    background-size: 50px 50px;
    transform: perspective(450px) rotateX(65deg);
    transform-origin: center bottom;
    mask-image: linear-gradient( to top, black, transparent );
}

.launch-content {
    position: relative;
    z-index: 3;
    text-align: center;
    transform-style: preserve-3d;
    animation: launchContentIn 1s ease both;
}

@keyframes launchContentIn {
    from {
        opacity: 0;
        transform: translateY(25px) translateZ(-80px);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.house-scene {
    position: relative;
    width: 320px;
    height: 250px;
    margin: 0 auto 25px;
    transform-style: preserve-3d;
    transform: rotateX(-8deg) rotateY(-25deg);
}

.house {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.house-base {
    position: absolute;
    width: 220px;
    height: 130px;
    left: 50%;
    top: 80px;
    transform: translateX(-50%) translateZ(0);
    background: linear-gradient( 145deg, #202a39, #0c1118 );
    border: 1px solid rgba(120,160,255,0.15);
    box-shadow: 30px 30px 60px rgba(0,0,0,0.6), inset 0 1px rgba(255,255,255,0.08);
}

.house-front {
    position: absolute;
    width: 220px;
    height: 130px;
    left: 50%;
    top: 80px;
    transform: translateX(-50%) translateZ(55px);
    background: linear-gradient( 145deg, #1d2736, #0c121a );
    border: 1px solid rgba(120,160,255,0.13);
}

.house-side {
    position: absolute;
    width: 55px;
    height: 130px;
    left: calc(50% + 110px);
    top: 80px;
    transform-origin: left;
    transform: rotateY(90deg);
    background: #0b1017;
    border: 1px solid rgba(120,160,255,0.08);
}

.roof {
    position: absolute;
    width: 240px;
    height: 80px;
    left: 50%;
    top: 30px;
    transform: translateX(-50%) rotateX(55deg) translateZ(30px);
    transform-style: preserve-3d;
}

.roof-left,
.roof-right {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient( 145deg, #29364b, #111722 );
    border: 1px solid rgba(120,160,255,0.12);
}

.roof-left {
    left: 0;
    transform-origin: right;
    transform: rotateY(-18deg);
}

.roof-right {
    right: 0;
    transform-origin: left;
    transform: rotateY(18deg);
}

.house-door {
    position: absolute;
    width: 34px;
    height: 65px;
    left: calc(50% - 17px);
    top: 145px;
    background: linear-gradient( 145deg, #172236, #080d14 );
    border: 1px solid rgba(110,168,255,0.15);
    box-shadow: inset 0 0 15px rgba(70,130,255,0.06);
}

.door-light {
    position: absolute;
    width: 5px;
    height: 5px;
    right: 5px;
    top: 30px;
    border-radius: 50%;
    background: #6ea8ff;
    box-shadow: 0 0 12px rgba(110,168,255,0.9);
}

.house-window {
    position: absolute;
    width: 34px;
    height: 28px;
    background: rgba(90,145,255,0.12);
    border: 1px solid rgba(110,168,255,0.18);
    box-shadow: inset 0 0 15px rgba(70,130,255,0.1), 0 0 10px rgba(70,130,255,0.08);
}

    .house-window:nth-child(1) {
        left: 38px;
        top: 130px;
    }

    .house-window:nth-child(2) {
        right: 38px;
        top: 130px;
    }

.house-glow {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 240px;
    height: 100px;
    transform: translateX(-50%) translateZ(-20px);
    background: radial-gradient( ellipse, rgba(70,130,255,0.18), transparent 70% );
    filter: blur(20px);
}

.launch-title {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: white;
    text-shadow: 0 0 35px rgba(90,150,255,0.25);
}

.launch-logo {
    margin-top: 7px;
    color: #718096;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.launch-status {
    margin-top: 25px;
    color: #647184;
    font-size: 12px;
    letter-spacing: 0.12em;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {

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

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

    .page {
        width: min(900px, calc(100% - 40px));
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {



    .main-content {
        padding-bottom: 95px;
    }

    .page {
        width: calc(100% - 28px);
        padding-top: 28px;
        padding-bottom: 45px;
    }

    .page-header {
        margin-bottom: 28px;
        gap: 15px;
    }

    h1 {
        font-size: 31px;
    }

    .subtitle {
        font-size: 13px;
    }

    .page-title-icon {
        width: 55px;
        height: 55px;
        border-radius: 17px;
        font-size: 23px;
    }

    .notification-button {
        width: 52px;
        height: 52px;
    }

    .welcome-card {
        padding: 26px;
        min-height: 170px;
        border-radius: 23px;
    }

    .welcome-content h2 {
        font-size: 22px;
    }

    .welcome-icon {
        width: 72px;
        height: 72px;
        font-size: 34px;
        border-radius: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-card {
        min-height: 105px;
        padding: 20px;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
    }

    .security-status {
        grid-template-columns: auto 1fr;
        gap: 18px;
        padding: 22px;
    }

    .security-shield {
        width: 66px;
        height: 66px;
        font-size: 31px;
        border-radius: 20px;
    }

    .security-info h2 {
        font-size: 20px;
    }

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

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

    .light-overview {
        border-radius: 20px;
    }

        .light-overview > div {
            min-height: 100px;
            padding: 22px;
        }

        .light-overview strong {
            font-size: 30px;
        }

    .lights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .light-card {
        min-height: 220px;
        padding: 17px;
        border-radius: 20px;
    }

    .room-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        border-radius: 16px;
    }

    .light-card h3 {
        font-size: 16px;
    }

    .light-card p {
        font-size: 11px;
    }

    .switch {
        width: 46px;
        height: 27px;
    }

        .switch span {
            width: 19px;
            height: 19px;
        }

        .switch.active span {
            transform: translateX(18px);
        }

    .notification-card {
        padding: 18px;
        gap: 14px;
    }

    .notification-icon {
        width: 50px;
        height: 50px;
        font-size: 21px;
    }

    .page-actions {
        justify-content: stretch;
    }

    .primary-button {
        width: 100%;
    }

    .users-table-container {
        margin-left: -2px;
        margin-right: -2px;
        border-radius: 20px;
    }

    .settings-group {
        border-radius: 20px;
    }

    .setting-link {
        min-height: 78px;
        padding: 14px 16px;
        gap: 13px;
    }

    .setting-icon {
        width: 45px;
        height: 45px;
        border-radius: 14px;
    }

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



    .user-modal-overlay,
    .modal-overlay {
        padding: 12px;
    }

    .user-modal {
        max-height: calc(100vh - 24px);
        border-radius: 23px;
    }

    .user-modal-header,
    .user-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .user-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .launch-title {
        font-size: 32px;
    }

    .house-scene {
        transform: scale(0.8) rotateX(-8deg) rotateY(-25deg);
    }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .page {
        width: calc(100% - 20px);
    }

    .page-header {
        align-items: flex-start;
    }

    h1 {
        font-size: 28px;
    }

    .page-title-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

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

    .light-card {
        min-height: 190px;
    }

    .light-card-top {
        margin-bottom: 18px;
    }


}

/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

```css
/* =========================================
   MY HOME — CONTROL CENTER
   ========================================= */

.control-center-page {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            #0b1829 0%,
            #05090f 45%,
            #010204 100%
        );

    z-index: 1000;
}


/* =========================================
   CANVAS
   ========================================= */

#controlCenterCanvas {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: block;

    outline: none;
    border: 0;

    touch-action: none;

    z-index: 0;
}


/* =========================================
   VIGNETTE
   ========================================= */

.control-center-page::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 1;

    background:
        radial-gradient(
            circle at center,
            transparent 52%,
            rgba(0, 0, 0, .18) 75%,
            rgba(0, 0, 0, .65) 100%
        );
}


/* =========================================
   OVERLAY
   ========================================= */

.control-center-overlay {
    position: absolute;
    inset: 0;

    z-index: 5;

    pointer-events: none;
}


/* =========================================
   BRAND
   ========================================= */

.control-center-brand {
    position: absolute;

    top: clamp(18px, 3.5vh, 36px);
    left: clamp(18px, 2.8vw, 38px);
}


.control-center-eyebrow {
    color: #5799e8;

    font-size: clamp(8px, .65vw, 10px);

    font-weight: 800;

    letter-spacing: clamp(2px, .3vw, 4px);

    margin-bottom: 7px;
}


.control-center-title {
    color: #f4f7fb;

    font-size: clamp(18px, 1.65vw, 25px);

    font-weight: 750;

    letter-spacing: clamp(1.5px, .25vw, 3px);

    line-height: 1;
}


.control-center-subtitle {
    margin-top: 8px;

    color: #667386;

    font-size: clamp(9px, .75vw, 12px);

    letter-spacing: .5px;
}


/* =========================================
   STATUS
   ========================================= */

.control-center-status {
    position: absolute;

    top: clamp(18px, 3.5vh, 36px);
    right: clamp(18px, 2.8vw, 38px);

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        clamp(7px, .7vw, 10px)
        clamp(10px, 1.1vw, 16px);

    border: 1px solid rgba(92, 155, 235, .2);

    border-radius: 999px;

    background: rgba(7, 14, 24, .65);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    color: #8290a2;

    font-size: clamp(8px, .6vw, 10px);

    font-weight: 800;

    letter-spacing: 1.5px;
}


.control-center-status .status-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background: #39d98b;

    box-shadow:
        0 0 6px #39d98b,
        0 0 12px rgba(57, 217, 139, .35);
}


/* =========================================
   HELP
   ========================================= */

.control-center-help {
    position: absolute;

    left: 50%;
    bottom: clamp(14px, 2.5vh, 26px);

    transform: translateX(-50%);

    padding: 7px 14px;

    border: 1px solid rgba(255, 255, 255, .07);

    border-radius: 999px;

    background: rgba(5, 9, 15, .6);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    color: #596678;

    font-size: clamp(8px, .65vw, 10px);

    letter-spacing: .6px;

    white-space: nowrap;
}


.mobile-help {
    display: none;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .control-center-brand {
        top: 20px;
        left: 20px;
    }

    .control-center-status {
        top: 20px;
        right: 20px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .control-center-brand {
        top: 17px;
        left: 17px;
    }

    .control-center-title {
        font-size: 17px;
    }

    .control-center-subtitle {
        font-size: 8px;
    }

    .control-center-status {
        top: 17px;
        right: 17px;

        padding: 6px 9px;

        font-size: 7px;
    }

    .desktop-help {
        display: none;
    }

    .mobile-help {
        display: inline;
    }

    .control-center-help {
        bottom: 14px;
    }
}


/* =========================================
   VERY SMALL PHONES
   ========================================= */

@media (max-width: 380px) {

    .control-center-subtitle {
        display: none;
    }

    .control-center-status {
        padding: 6px 8px;
    }

    .control-center-help {
        font-size: 7px;
    }
}
```
