    :root {
        /* --primary: #3a86ff; */
        --primary: #4a6fa5;
        --secondary: #8338ec;
        --accent: #ff006e;
        --dark: #1a1a2e;
        --light: #f8f9fa;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .form-container {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 400px;
    }

    .input-group-text {
        cursor: pointer;
    }

    .forgot-password {
        /* text-align: right; */
        margin-bottom: 15px;
    }

    .register-link {
        text-align: center;
        margin-top: 15px;
    }

    /* registration  */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    #login {
        text-align: left;
        padding: 20px;
    }

    #mainregistrationForm {
        padding: 20px;
        text-align: left;
    }

    .form-container {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 500px;
    }



    #NotificationsHedingName {
        color: white;
    }

    .fordesingroomupdatebutton button {
        border: none;
        background: transparent;
    }

    .fordesingroomupdatebutton hr {
        padding: 2px;
        margin: 0px;
    }




    /* Mic Icons dasgbord  */
    .icon-item-Dashbord {
        position: relative;
        left: 85px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: transparent;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
        cursor: pointer;
    }

    @media (max-width: 500px) {
        .icon-item-Dashbord {
            left: 27px;
        }
    }

    @media (max-width: 380px) {
        .icon-item-Dashbord {
            left: 93px;
        }
    }

    @media (max-width: 320px) {
        .icon-item-Dashbord {
            left: 67px;
        }
    }

    .icon-item-Dashbord:hover {
        transform: scale(1.2);
        box-shadow: 0 5px 15px rgba(37, 117, 252, 0.5);
    }


    /* registration */
    .form-container {
        max-width: 500px;
        margin: 50px auto;
        padding: 30px;
        border-radius: 10px;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .otp-input {
        letter-spacing: 2px;
        font-size: 1.5rem;
        text-align: center;
    }

    .countdown {
        color: #dc3545;
        font-weight: bold;
    }

    .resend-otp {
        cursor: pointer;
        color: #0d6efd;
        text-decoration: underline;
    }

    .resend-otp.disabled {
        color: #6c757d;
        text-decoration: none;
        cursor: not-allowed;
    }

    #simple-message-container {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 500px;
        z-index: 1055;
    }

    /* Motion sensor Icon */
    .motion-icon {
        font-size: 60px;
        animation: shake 1s infinite;

        background: linear-gradient(45deg, #ff4e50, #f9d423);
        background-clip: text;
        /* Standard property */
        -webkit-background-clip: text;
        /* Vendor prefix for WebKit */

        /* color: transparent; */
        color: #ff4e50;
        -webkit-text-fill-color: transparent;
        /* Needed for WebKit */
        text-shadow: 2px 2px 10px rgba(255, 78, 80, 0.7);
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
    }

    /* Blink Security Icon Room Security */
    @keyframes blinkRed {
        0% {
            color: red;
        }

        20% {
            color: yellow;
        }

        40% {
            color: orange;
        }

        60% {
            color: white;
        }

        80% {
            color: crimson;
        }

        100% {
            color: red;
        }

    }

    .blink-red {
        animation: blinkRed 1s infinite;
    }

    .security-icon {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 2px solid transparent;
        border-radius: 50%;
        padding: 10px;
    }

    .security-icon:hover,
    .security-icon.clicked {
        transform: scale(1.2);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        border-color: rgb(51, 143, 235);
        background-color: rgba(255, 0, 0, 0.1);
    }

    .security-icon:active {
        transform: scale(1.1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    /* Spin Refresh Button Icon On Dashbord */

    .spinRefreshiconClass {
        font-size: 32px;
        color: #3498db;
        cursor: pointer;

    }

    .spinRefreshIcon {
        animation: fa-spin 1s infinite linear;
    }

    #loader {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
    }




    #login-page-gp3Logo {
        position: relative;
        height: 76px;
        width: auto;
        align-items: center;
        text-align: center;
    }

    #login-page-gp3Logo img {
        position: relative;
        height: auto;
        width: 208px;
    }

    /* aling room img center */
    .salectRoomsInList {
        align-items: center;
        text-align: center;
    }

    .profile-avatar {
        /* width: 80px;
            height: 80px; */
        width: 100px;
        height: 100px;
        background-color: #0d6efd;
        color: #fff;
        font-weight: bold;
        font-size: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-transform: uppercase;
    }

    .default-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }


    .load-setting-model-hedar {
        color: white;
        background: linear-gradient(to right, #4e73df, #2a5baf);

    }

    .load-setting-model-Content {
        box-shadow: 0 15px 35px rgba(19, 3, 255, 0.5);
    }

    .settings-section-title {
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 10px;
        background: linear-gradient(to right, var(--primary), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        display: inline-block;
    }

    .settings-section-title i {
        margin-right: 10px;
        color: var(--primary);
    }

    .settings-section-title-1 {
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 10px;
        background: linear-gradient(to right, var(--primary), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        display: inline-block;
    }

    .settings-section-title i {
        margin-right: 10px;
        color: var(--primary);
    }

    .DevicesImagesSalectOptionsImg {
        box-shadow: 0 15px 35px rgb(0 0 0 / 50%);
    }


    /* for spiiner */
    #refreshSpinnerWrapper {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 19999;
    }

    .spinRefreshiconClass1 {
        font-size: 48px;
        color: #3498db;
        cursor: default;
    }

    .spinRefreshIcon {
        animation: fa-spin 1s infinite linear;
    }

    /* 
        model switch update status */

    .switch-device-status {
        width: 115px;
        height: 45px;
        position: relative;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        overflow: hidden;
        cursor: pointer;
    }

    .switch-device-status::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        background: linear-gradient(90deg, rgb(233, 180, 180), rgb(251, 251, 200), rgb(206, 252, 206), rgb(196, 241, 241), rgb(245, 207, 245), rgb(236, 209, 209));
        background-size: 300% 300%;
        z-index: 1;
        border-radius: 14px;
        animation: none;
    }

    .switch-device-content {
        position: relative;
        z-index: 2;
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .switch-device-status.connecting::before {
        animation: move-border 2s linear infinite;
    }


    .switch-device-status.connecting .status-text {
        animation: pulse-connecting 1.5s ease-in-out infinite;
    }


    .switch-device-status.connected::before,
    .switch-device-status.disconnected::before {
        background: transparent;
    }

    .switch-device-status.connected .status-text {
        color: limegreen;
        animation: pulse-connected 1.5s ease-in-out infinite;
    }

    .switch-device-status.disconnected .status-text {
        color: red;
        animation: pulse-disconnected 1.5s ease-in-out infinite;
    }

    /*  @keyframes move-border {
            0% {
                background-position: 0% 50%;
            }

            100% {
                background-position: 300% 50%;
            }
        }*/

    @keyframes move-border {
        0% {
            background-position: 300% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    @keyframes pulse-connecting {

        0%,
        100% {
            /* color: white; */
            color: black;
            text-shadow: 0 0 3px rgba(255, 255, 255, 0.4);
        }

        50% {
            /* color: #dcdcdc; */
            color: black;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }
    }


    .status-text {
        text-align: left !important;
    }


    @keyframes pulse-connected {

        0%,
        100% {
            color: limegreen;
            text-shadow: 0 0 2px rgba(0, 255, 0, 0.5);
        }

        50% {
            color: #66ff66;
            text-shadow: 0 0 8px rgba(0, 255, 0, 0.9);
        }
    }

    @keyframes pulse-disconnected {

        0%,
        100% {
            color: red;
            text-shadow: 0 0 2px rgba(255, 0, 0, 0.4);
        }

        50% {
            color: #ff6666;
            text-shadow: 0 0 8px rgba(255, 0, 0, 0.9);
        }
    }


    @media (max-width: 500px) {
        .status-text {
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }



    /* For remove and updete */
    /* Style the options menu container */
    .options-menu {
        position: absolute;
        top: 30px;
        right: 30px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        animation: fadeIn 0.3s ease-in-out;
        transition: all 0.3s ease;
    }

    /* Fade-in animation for menu */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* General button styling */
    .options-menu button {
        width: 100%;
        padding: 10px 14px;
        margin: 6px 0;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Update button (green) */
    .options-menu button:first-child {
        background: #28a745;
        color: white;
    }

    .options-menu button:first-child:hover {
        background: #218838;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
    }

    /* Remove button (red) */
    .options-menu button:last-child {
        background: #dc3545;
        color: white;
    }

    .options-menu button:last-child:hover {
        background: #c82333;
        transform: scale(1.05) rotate(-1deg);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }

    /* Divider styling */
    .options-menu hr {
        border: none;
        height: 1px;
        background: #eee;
        margin: 8px 0;
    }




    /* ===Modal Background=== */

    .updatedandremovemodel {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease;
    }

    /* === Modal Content === */
    .updatedandremovemodel-content {
        background: #fff;
        padding: 20px;
        width: 320px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
        text-align: center;
        animation: slideIn 0.4s ease;
    }

    .updatedandremovemodel-content h2 {
        margin-bottom: 15px;
        font-size: 20px;
        color: #333;
    }

    .updatedandremovemodel-content input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 14px;
        margin-bottom: 20px;
        transition: all 0.3s ease;
    }

    .updatedandremovemodel-content input:focus {
        border-color: #28a745;
        outline: none;
        box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
    }

    .modal-actions {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    /* Save Button */
    #saveRoomBtn {
        flex: 1;
        padding: 10px;
        border: none;
        background: #28a745;
        color: white;
        font-size: 14px;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.3s;
    }

    #saveRoomBtn:hover {
        background: #218838;
    }

    /* Cancel Button */
    #closeRoomBtn {
        flex: 1;
        padding: 10px;
        border: none;
        background: #dc3545;
        color: white;
        font-size: 14px;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.3s;
    }

    #closeRoomBtn:hover {
        background: #c82333;
    }

    /* Animations */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideIn {
        from {
            transform: translateY(-40px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Save Electricity */
    /* Unique Container */
    #electricity-dashboard {
        display: flex;
        flex-direction: column;
        /* justify-content: center;
            align-items: center;
            min-height: 100vh; */
    }

    #ed-metrics {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        padding: 5px;
    }

    .ed-metric {
        background: rgba(20, 30, 48, 0.6);
        /* darker blend for gradient harmony */
        border-radius: 20px;
        text-align: center;
        padding: 35px 25px;
        width: 280px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        animation: ed-bounceIn 1s ease;
        transition: transform 0.3s ease, background 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .ed-metric:hover {
        transform: translateY(-8px) scale(1.05);
        /* background: rgba(36, 59, 85, 0.8);  */
        box-shadow: 0 0 25px #011e5a;
    }

    @keyframes ed-bounceIn {
        0% {
            transform: scale(0.5);
            opacity: 0;
        }

        60% {
            transform: scale(1.2);
            opacity: 1;
        }

        100% {
            transform: scale(1);
        }
    }

    @keyframes ed-pulseGlow {
        0% {
            text-shadow: 0 0 6px #00eaff, 0 0 12px #00eaff;
        }

        50% {
            text-shadow: 0 0 20px #00f7ff, 0 0 35px #00f7ff;
        }

        100% {
            text-shadow: 0 0 6px #00eaff, 0 0 12px #00eaff;
        }
    }

    .ed-metric h4 {
        font-size: 2.5rem;
        margin: 10px 0 0;
        color: #00f7ff;
        animation: ed-pulseGlow 2s infinite;
    }

    .ed-metric p {
        font-size: 1rem;
        margin: 8px 0 0;
        color: #d6e4f0;
        /* softer white-blue for readability */
    }

    .ed-time {
        display: block;
        font-size: 0.9rem;
        color: #ffd95e;
        margin-top: 5px;
    }

    .ed-icon {
        font-size: 3rem;
        color: #ffd95e;
        animation: ed-floatIcon 3s ease-in-out infinite;
    }

    @keyframes ed-floatIcon {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }