@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('./icons.css');

html, body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-image: url("/images/pages/background.png");
    background-color: #cccccc;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--dxds-color-border-success-default-rest);
}

.invalid {
    outline: 1px solid var(--dxds-color-border-danger-default-rest);
}

.validation-message {
    color: var(--dxds-color-content-danger-default-rest);
}

.button-link {
    text-decoration: unset;
}

.company-name {
    margin-bottom: 1rem;
    padding: 4px;
    color: #343434;
    font-weight: bold;
    font-family: 'Ultra', sans-serif;
    font-size: 36px;
    line-height: 42px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px white, 0 3px #777;
    background-color: #a6cbff;
    border-left: 4px solid #0044a3;
}

.headline h3 {
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 1px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 12px 0;
    grid-gap: 22px;
}

    .headline h3:after, .headline h3:before {
        content: " ";
        display: block;
        border-bottom: 2px solid #ccc;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.title.title-secondary {
    padding: 0.313rem 0 0;
    color: var(--dxds-color-content-secondary-default-rest);
}

.title-header-text {
    font-size: var(--dxds-font-size-headline-lg);
    font-weight: var(--dxds-font-weight-headline-default);
    letter-spacing: var(--dxds-letter-spacing-headline-lg);
    line-height: var(--dxds-line-height-headline-lg);
}

.title-content-text {
    font-size: var(--dxds-font-size-base-lg);
    font-weight: var(--dxds-font-weight-base-default);
    letter-spacing: var(--dxds-letter-spacing-base-lg);
    line-height: var(--dxds-line-height-base-lg);
}

.main-container {
    position: relative;
    flex-grow: 1;
    justify-content: center;
    width: 100%;
    padding: 6px;
    overflow: hidden;
}

.main-content {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.main-content-plant {
    background-image: radial-gradient(circle, #5C0067 0%, #001EFF 100%);
}

.main-content-alarms {
    position: relative;
    background-color: #FFF9F7 !important;
    margin-bottom: 0.2rem;
    overflow-y: auto;
    overflow-x: hidden;
}

@supports (anchor-name: --plant-anchor) {
    .main-content-plant {
        anchor-name: --plant-anchor;
    }

    .main-content-alarms {
        position: absolute;
        top: anchor(--plant-anchor bottom);
        bottom: 1rem;
        height: auto;
        width: anchor-size(--plant-anchor);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.block-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    height: auto;
    max-width: 100%;
    width: 31.25rem;
}

.or {
    align-items: center;
    display: flex;
    flex-direction: row;
    padding: 0.3125rem 0;
}

.or .or-line {
    opacity: 0.2;
    width: 100%;
    border-bottom: 1px solid var(--dxds-color-content-neutral-default-rest);
}

.or .or-text {
    padding: 0 0.625rem 0 0.625rem;
    font-size: var(--dxds-font-size-caption-md);
    line-height: var(--dxds-line-height-caption-md);
    color: var(--dxds-color-content-neutral-subdued-rest);
}

.links-container {
    align-items: center;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.links-container .dot {
    border-radius: 50%;
    height: 0.3125rem;
    margin: 0 0.1875rem;
    opacity: 0.7;
    width: 0.3125rem;
    background-color: var(--dxds-color-surface-neutral-default-rest);
}

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    background: var(--dxds-color-surface-info-subdued-rest);
}

.info-message.info-panel {
    margin-bottom: 0.625rem;
}

.alert-pw {
    height: 46px;
}

.alert-pw-svg {
    width: 44px;
    height: 44px;
}

.blink {
    color: #F52727;
    /* Apply the animation */
    animation: blink-animation 2s steps(1, start) infinite;
}

@keyframes blink-animation {
    50% {
        opacity: 0;
    }
}

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    font-size: 1.875rem;
    height: 4.3125rem;
}

.title-content-text-secondary {
    font-size: var(--dxds-font-size-title-md);
    line-height: var(--dxds-line-height-title-md);
    border-bottom: 1px solid gray;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.logo-image {
    width: 100%;
    /* Limits height so a tall logo doesn't push the dropdowns off-screen on mobile */
    max-height: clamp(100px, 20vh, 180px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-picture {
    max-height: 100%;
    width: auto;
    object-fit: contain; /* Prevents stretching */
}


/* Login Form */
.login-container {
    width: 100%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.login-card {
    background: #151520;
    border: 1px solid #2a2a35;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 10px 5px 5px silver;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #00ff88, transparent);
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .login-card:hover::before {
        opacity: 1;
    }

    .login-card:hover {
        box-shadow: 10px 5px 5px silver;
        transform: translateY(-2px);
    }

.login-header {
    text-align: center;
    margin-bottom: 4px;
}

.logo-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #00ff88, #0099ff);
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
    animation: pulse 2s ease-in-out infinite alternate;
}

.login-header h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-header p {
    color: #a0a0b0;
    font-size: 16px;
    font-weight: 400;
}

/* Form Group & Input Styles */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

    .input-wrapper input {
        width: 100%;
        background: #1a1a25;
        border: 1px solid #2a2a35;
        border-radius: 6px;
        padding: 24px 16px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 400;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
    }

        .input-wrapper input:focus {
            border-color: #00ff88;
            background: rgba(26, 26, 37, 0.8);
            box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1), 0 4px 20px rgba(0, 255, 136, 0.1);
        }

            .input-wrapper input:focus + label,
            .input-wrapper input:valid + label {
                transform: translateY(-32px) translateX(4px) scale(0.85);
                color: #00ff88;
                font-weight: 500;
            }

    .input-wrapper label {
        position: absolute;
        left: 16px;
        top: 28px;
        color: #a0a0b0;
        font-size: 16px;
        font-weight: 400;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        transform-origin: left top;
    }

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #0099ff);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.input-wrapper input:focus ~ .input-line {
    width: 100%;
}

/* Password Toggle */
.password-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #a0a0b0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

    .password-toggle:hover {
        color: #00ff88;
        background: rgba(0, 255, 136, 0.1);
    }


/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .remember-wrapper input[type="checkbox"] {
        display: none;
    }

.custom-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #2a2a35;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .custom-checkbox::after {
        content: '';
        width: 8px;
        height: 8px;
        background: #00ff88;
        border-radius: 1px;
        transform: scale(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

.remember-wrapper input[type="checkbox"]:checked + .checkbox-label .custom-checkbox {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

    .remember-wrapper input[type="checkbox"]:checked + .checkbox-label .custom-checkbox::after {
        transform: scale(1);
    }

.checkbox-label {
    color: #a0a0b0;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.remember-wrapper:hover .checkbox-label {
    color: #ffffff;
}

.forgot-password {
    color: #a0a0b0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .forgot-password:hover {
        color: #00ff88;
    }

/* Neon Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ff88, #0099ff);
    border: none;
    border-radius: 6px;
    padding: 24px 32px;
    color: #0a0a0f;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.2);
}

    .login-btn:hover .btn-glow {
        left: 100%;
    }

.login-btn:active {
    transform: translateY(0);
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #0a0a0f;
    border-radius: 50%;
    opacity: 0;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    opacity: 1;
}

/* Divider */
.divider {
    text-align: center;
    margin: 32px 0 24px;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #2a2a35, transparent);
        transform: translateY(-50%);
    }

    .divider span {
        background: #151520;
        color: #a0a0b0;
        padding: 0 24px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        position: relative;
        z-index: 1;
    }

/* Signup Link */
.signup-link {
    text-align: center;
}

    .signup-link p {
        color: #a0a0b0;
        font-size: 14px;
    }

    .signup-link a {
        color: #00ff88;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .signup-link a:hover {
            color: #0099ff;
            text-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
        }

/* Error States */
.error-message {
    color: #ff0080;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    margin-left: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 0, 128, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 128, 0.2);
}

    .error-message.show {
        opacity: 1;
        transform: translateY(0);
    }

.form-group.error .input-wrapper input {
    border-color: #ff0080;
    background: rgba(255, 0, 128, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .success-message.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff88, #0099ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0a0a0f;
    margin: 0 auto 24px;
    animation: successPulse 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.success-message h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.success-message p {
    color: #a0a0b0;
    font-size: 16px;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1), transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.glow-orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08), transparent 70%);
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.06), transparent 70%);
    animation-delay: -2s;
}

.glow-orb-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(255, 0, 128, 0.04), transparent 70%);
    animation-delay: -4s;
}

/* Animations */
@keyframes pulse {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.6));
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Main Layout */
.logo {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto !important;
    max-height: 60px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 2px;
}

.navigation-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px; /* Adjust as needed */
    min-height: 80px; /* Ensures the header doesn't collapse */
}

.drawer-content {
    padding: 2px !important;
}

.page-content-container-xtra {
    position: relative;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: #FDFEE7;
    padding: 6px 0 6px 6px;
    min-height: 100vh; /* Minimum height is 100% of the screen */
    height: auto !important; /* Allows it to grow beyond the screen for many alarms */
    overflow: visible; /* Ensures content doesn't 'spill out' of the background */
}

/* Forms */
.form-card {
    background: #F0FAFA;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 10px 5px 5px silver;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard */
/* Buttons */
/* 1. Grid: Increase gap to prevent glows from overlapping */
.alarm-container {
    min-height: 300px; /* Ensures the 'peach' box doesn't collapse to zero when loading */
    display: flex;
    flex-direction: column;
}

/* Fix the 'No Data' image size for mobile */
.img-middle img {
    max-width: 80%;
    height: auto;
    margin-top: 2rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 25px; /* Increased gap */
    padding: 30px;
}

    /* If you apply a 'modal-open' class to the grid container */
    .button-grid.modal-open .square-btn {
        filter: brightness(0.5) blur(1px);
        pointer-events: none; /* Extra safety */
        transition: filter 0.3s ease;
    }

/* 2. Base Button: Add the 'Bevel' edge */
.square-btn {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.3); /* Subtle dark border */
    overflow: visible; /* Allow glow to show */
    position: relative;
    padding: 0 !important;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
    cursor: pointer;
    user-select: none; /* Prevents text highlighting while clicking fast */
}

    /* This targets the button while the mouse is held down or the finger is touching */
    .square-btn:active {
        /* 1. Physical Movement: Move it down slightly */
        transform: translateY(2px) scale(0.98);
        /* 2. Shadow Flattening: Reduce the outer glow and deepen the inner shadow */
        box-shadow: inset 0px 10px 20px rgba(0,0,0,0.7), 0px 2px 5px rgba(0,0,0,0.2) !important;
        /* 3. Smooth the transition so it doesn't 'snap' instantly */
        transition: all 0.05s ease-in-out;
    }

        /* Optional: Make the Icon 'dim' slightly when pressed to simulate the light being covered */
        .square-btn:active i {
            filter: brightness(0.8) drop-shadow(0 0 5px rgba(255,255,255,0.5));
            transform: scale(0.95);
        }

/* 3. The Inner Content: This creates the "Inset" depth */
.square-btn__content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    box-sizing: border-box;
    border-radius: 19px;
    /* This creates the 'pressed in' look from your image */
    overflow: hidden; /* Prevents background bleeding */
    background: transparent; /* Let the button background show through */
    box-shadow: none; /* Let the .square-btn-on handle the shadow */
}

/* 4. Top Left Icon: Needs to be absolutely positioned in the corner */
.square-btn__svg {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    z-index: 10;
}

/* 5. Central Icon: Add the glow to the BELL itself for ON/ACK */
.square-btn i {
    font-size: 40px;
    margin: 5px 0;
}

.square-btn-on i, .square-btn-ack i {
    filter: drop-shadow(0 0 8px #fff); /* This makes the bell 'glow' like the image */
}

/* 6. Specific State Glows */
.square-btn-on {
    /* 1. Use a Radial Gradient for that 'inner light' glow */
    background: radial-gradient(circle at center, #FF5E00 0%, #CC0000 75%, #8B0000 100%) !important;
    /* 2. Heavy inset shadow creates the 'pressed-in' 3D look */
    box-shadow: inset 0px 8px 15px rgba(0,0,0,0.6), inset 0px -4px 10px rgba(255,255,255,0.2), 0 0 25px rgba(255, 68, 0, 0.7); /* The outer glow */
    border: 1px solid #9B0000 !important; /* Darker border to define the edge */
    cursor: pointer !important;
    pointer-events: auto;
}

    .square-btn-on .square-btn__icon i {
        color: #FFFFFF !important;
        /* This creates the 'light bulb' effect on the icon itself */
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }

    .square-btn-on:active {
        /* Reduce the orange outer glow significantly when pressed */
        box-shadow: inset 0px 10px 25px rgba(0,0,0,0.8), 0px 0px 5px rgba(255, 68, 0, 0.3) !important;
    }

.square-btn-ack {
    background: radial-gradient(circle, #8b0000 10%, #3d1b14 100%);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.square-btn-off {
    background-color: #243447;
    box-shadow: none; /* Off buttons don't glow */
}

    .square-btn-off i {
        color: #5d6d7e !important; /* Greyish bell for OFF */
        filter: none;
    }

    .square-btn-off span {
        color: #abb2b9; /* Dimmer text for OFF */
    }

.square-btn-ack {
    background: radial-gradient(circle, #8b0000 0%, #3d1b14 100%);
    border-color: #a34a37;
}

.btn-title-ack {
    color: #feebe7;
}
/* Add that special glow to the ACK bell icon */
.square-btn-ack i {
    filter: drop-shadow(0 0 10px #ff3300);
}

.square-btn-off,
.square-btn-ack {
    cursor: not-allowed !important;
    pointer-events: none; /* This prevents the click event AND the :active animation */
}

    .square-btn-off:hover,
    .square-btn-ack:hover {
        opacity: 1 !important; /* Don't dim on hover */
        transform: none !important; /* Don't move on hover */
    }


/* Distributions */
/* Container for the edit form */
.dx-form-layout {
    background-color: #f8f9fa; /* Light grey background */
    padding: 1rem;
}

/* The "List of Users" header bar */
.user-list-header {
    background-color: #2d6a4f !important; /* The dark green from your image */
    color: white !important;
    padding: 10px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

/* Grid within the edit form */
.dx-grid {
    border-top: none !important;
}

/* Adjusting the Red Asterisk for Required fields */
.dx-form-layout-item-caption::after {
    color: red;
    content: " *";
}

/* Targets the container that holds the auto-generated Save/Cancel buttons */
.dxbl-grid-edit-form-buttons {
    background-color: #d1e7dd !important; /* Matches Bootstrap's bg-success-subtle */
    border-top: none !important;
    padding: 1rem !important;
}

.validation-error-border {
    border: 2px solid #dc3545 !important; /* Bootstrap 'danger' red */
    border-radius: 4px;
}

.w-90 {
    width: 90% !important;
}
.w-95 {
    width: 95% !important;
}
.w-97 {
    width: 97% !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-card {
        padding: 24px;
        margin: 10px;
    }

    .login-header h2 {
        font-size: 1.75rem;
    }

    .input-wrapper input {
        padding: 16px;
    }

    .password-wrapper input {
        padding-right: 45px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .glow-orb {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

@media screen and (max-width: 1199px) {
    .drawer-content {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-content-alarms {
        position: relative;
        margin-bottom: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
    }
}
