﻿
/* Backend-driven CSS Variables */
/*.login-client-body {
    --primary-color:#ff0000;
    --secondary-color: @VariableDeclarations.SECONDARY_COLOR;
    --accent-color: @VariableDeclarations.ACCENT_COLOR;
    --button-text-color: #fff;
    --background-gradient-1: @VariableDeclarations.BG_GRADIENT_1;
    --background-gradient-2: @VariableDeclarations.BG_GRADIENT_2;
    --bubble-color-1: @VariableDeclarations.BUBBLE_COLOR_1;
    --bubble-color-2: @VariableDeclarations.BUBBLE_COLOR_2;
    --text-color: #333;
    --light-text: #777;
    --border-color: #ddd;
    --input-bg: #fff;
    --transition: all 0.3s ease;
}
*/
/* Base Body Styles */
.login-client-body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
/*    background: linear-gradient(135deg, var(--background-gradient-1), var(--background-gradient-2));*/
    overflow: hidden;
    position: relative;
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Bubble Styles */
.login-client-bubble {
    position: absolute;
    border-radius: 0;
    z-index: 0;
    animation: login-client-bubble-pulse 20s ease-in-out infinite alternate;
}

.login-client-bubble-1 {
    background-color: var(--bubble-color-1);
    width: 30vw;
    height: 30vw;
    top: -10vh;
    left: -10vw;
}

.login-client-bubble-2 {
    background-color: var(--bubble-color-1);
    width: 30vw;
    height: 30vw;
    bottom: -10vh;
    right: -10vw;
    animation-duration: 25s;
}

.login-client-bubble-3 {
    background-color: var(--bubble-color-2);
    width: 20vw;
    height: 20vw;
    top: 20vh;
    left: 5vw;
    animation-duration: 22s;
}

.login-client-bubble-4 {
    background-color: var(--bubble-color-2);
    width: 18vw;
    height: 18vw;
    top: 68%;
    right: 16%;
    transform: translateY(-50%);
    animation-duration: 28s;
}

.login-client-bubble-5 {
    background-color: var(--bubble-color-2);
    width: 15vw;
    height: 15vw;
    top: 35%;
    right: 4%;
    transform: translateY(-50%);
    animation-duration: 24s;
}

.login-client-bubble-6 {
    background-color: var(--bubble-color-1);
    width: 8vw;
    height: 8vw;
    top: 55%;
    left: 0;
    transform: translateY(-50%);
    animation-duration: 26s;
}

/* Bubble Animation */
@keyframes login-client-bubble-pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}


/* Main Container - Base for Laptops */
.login-client-container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
    animation: login-client-fadeInUp 1s ease-in-out;
    transition: var(--transition);
    z-index: 1;
    position: relative;
    margin-top: 40px; 
    margin-left: 30px;
}

.login-client-left-side {
    background: linear-gradient(135deg, var(--background-gradient-1), var(--background-gradient-2));
    width: 45%;
  
    padding: 60px 40px 40px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    color: var(--button-text-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}


.login-client-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: clamp(120px, 40vw, 340px) !important;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

    .login-client-left-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        opacity: 0.1;
    }
.login-client-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
    min-height: 300px; 
    max-width: 100%;

}

    /* Heading styles */
    .login-client-left-content h1 {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
        margin-bottom: 2px;
        font-weight: 700;
        line-height: 1.2;
        color: inherit;
        width: 100%;
    }

    .login-client-left-content p {
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
        font-weight: 400;
        line-height: 1.6;
        margin-bottom: 2px;
        color: inherit;
        opacity: 0.95;
        width: 100%;
        max-width: 500px;
        /* Additional properties for better font rendering */
        font-smooth: always;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
/*        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;*/
    }


/* Right Side */
.login-client-right-side {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    transition: var(--transition);
}

/* Flipper */
.login-client-flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.login-client-container.active .login-client-flipper {
    transform: rotateY(-180deg);
}

.login-client-front,
.login-client-back {
    position: absolute;
    width: 100%;
/*    height: 100%;*/
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.login-client-front {
    transform: rotateY(0deg);
}

.login-client-back {
    transform: rotateY(180deg);
    background-color: #fff;
    padding: 20px;
}

/* Form Elements */
.login-client-form-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    transition: var(--transition);
}

.login-client-form-group {
    margin-bottom: 15px;
    position: relative;
    transition: var(--transition);
}

.login-client-input,
.login-client-select {
    width: 100%;
    padding: 12px 15px;
   
    border-radius: 8px;
    font-size: 0.95em;
    transition: var(--transition);
    box-sizing: border-box;
    outline: none;
    background-color: var(--input-bg);
}

.login-client-select {
/*    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23aaa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');*/
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    appearance: none;
}

    .login-client-input:focus,
    .login-client-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

/* Button styles */
.login-client-smart-sign-in-button {
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: #f8f9fa;
    color: black;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    margin-bottom:2px;
}
    .login-client-smart-sign-in-button:hover {
        background-color: #f5f5f5;
        border-color: currentColor;
        transform: translateY(-2px);
    }

/* Notification Box */
/*.login-client-notification-box {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff2e6;
    border: 1px solid #ffcc99;
    border-radius: 10px;
    padding: 4px 5px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 1100px;
    width: 90%;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
   
    box-sizing: border-box;
    transition: var(--transition);
}

.login-client-notification-icon {
    color: #ff9933;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.login-client-notification-text {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}*/
/*.login-client-notification-box {
    display: none !important;
}*/
   
/* Theme Switcher */
.login-client-theme-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .login-client-theme-switcher label {
        font-size: 0.9em;
        color: var(--light-text);
    }

    .login-client-theme-switcher select {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
/*        font-family: 'Inter', sans-serif;*/
        background-color: #f9f9f9;
        cursor: pointer;
        transition: var(--transition);
    }

/* QR Code Section */
.login-client-smart-sign-in-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding-top: 2px;
}

.login-client-qr-group {
    margin: 0px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition);
}

.login-client-qr-image {
    width: 180px;
    height: auto;
    max-width: 100%;
    transition: var(--transition);
}

.login-client-qr-code-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: inline-block;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

    .login-client-qr-code-box img {
        width: 200px;
        height: auto;
        max-width: 100%;
        transition: var(--transition);
    }

.login-client-smart-sign-in-steps {
    width: 100%;
    text-align: left;
    margin-top: 30px;
    transition: var(--transition);
}

.login-client-steps-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    background-color: #fafafa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.login-client-smart-sign-in-steps h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.login-client-smart-sign-in-steps ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.login-client-smart-sign-in-steps li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-color);
    transition: var(--transition);
}

    .login-client-smart-sign-in-steps li::before {
        content: counter(step);
        counter-increment: step;
        position: absolute;
        left: 0;
        top: 0;
        font-weight: bold;
        color: var(--primary-color);
        background-color: var(--accent-color);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        text-align: center;
        font-size: 0.8em;
        line-height: 24px;
    }
/* Note Box Styles */
.login-client-note-box {
    width: 100%;
    margin-top: 10px; /* Add some space between the steps and the note box */
    padding: 8px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color); /* Add a colored border on the left for emphasis */
    border-radius: 8px;
    background-color: var(--light-gray-color);
    font-style: normal;
    color: var(--text-color-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

    .login-client-note-box p {
        margin: 0; /* Remove default paragraph margin */
        font-size: 0.9rem;
        line-height: 1.4;
    }

/* Footer and IP Address */
.login-client-erp-powered {
    text-align: center;
    margin-top: 2px;
    font-size: 0.9em;
    color: var(--light-text);
    transition: var(--transition);
}

    .login-client-erp-powered a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }

.login-client-ip-address {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85em;
    color: var(--light-text);
    transition: var(--transition);
}

/* Logo */
.login-client-logo-om {
    width: 300px;
    height: auto;
    margin-top: 2px;
    display: block;
    transition: var(--transition);
}



@keyframes login-client-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-client-pulse-notification {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.01);
    }
}

/* --- Laptop-Specific Responsive Adjustments --- */

/* Standard Laptops (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .login-client-container {
        height: 65vh;
        min-height: 550px;
    }

    .login-client-left-side {
        width: 40%;
        padding: 30px;
    }

    .login-client-right-side {
        width: 60%;
        padding: 30px;
    }

    .login-client-left-content h1 {
        font-size: 2em;
    }

    .login-client-left-content p {
        font-size: 0.9em;
    }

    .login-client-form-container {
        max-width: 400px;
    }

    .login-client-qr-group {
        gap: 30px;
    }

    .login-client-qr-code-box img {
        width: 160px;
    }

    .login-client-notification-box {
        font-size: 0.85em;
        padding: 10px 12px;
        top: 20px;
    }
}

/* Medium Laptops (1367px - 1600px) */
@media (min-width: 1367px) and (max-width: 1600px) {
    .login-client-container {
        height: 68vh;
        min-height: 600px;
    }

    .login-client-left-side {
        width: 42%;
    }

    .login-client-right-side {
        width: 58%;
    }

    .login-client-qr-group {
        gap: 35px;
    }

    .login-client-qr-code-box img {
        width: 180px;
    }
}

/* Large Laptops/Desktops (1601px - 1920px) */
@media (min-width: 1601px) and (max-width: 1920px) {
    .login-client-container {
        height: 70vh;
        min-height: 650px;
    }

    .login-client-left-side {
        width: 45%;
    }

    .login-client-right-side {
        width: 55%;
    }

    .login-client-notification-box {
        top: 50px;
    }
}

/* Extra Large Screens (1921px and up) */
@media (min-width: 1921px) {
    .login-client-container {
        height: 75vh;
        max-height: 750px;
    }

    .login-client-left-side {
        width: 40%;
    }

    .login-client-right-side {
        width: 60%;
    }

    .login-client-qr-group {
        gap: 50px;
    }

    .login-client-qr-code-box img {
        width: 220px;
    }
}

/* For very tall screens (height > 900px) */
@media (min-height: 900px) {
    .login-client-container {
        height: 75vh;
    }
}

/* For shorter screens (height < 700px) */
@media (max-height: 700px) {
    .login-client-container {
        height: 85vh;
        min-height: 500px;
    }

    .login-client-left-side,
    .login-client-right-side {
        padding: 25px 20px;
    }
}

/* DevExtreme form specific adjustments */
.dx-form-industrial .dx-field {
    padding: 8px 0;
    margin-bottom: 10px;
}

.dx-form-industrial .dx-field-item {
    margin-bottom: 12px;
}

/* Make DevExtreme dropdowns responsive */
#CONNECTION_NAME .dx-dropdowneditor-button,
#COMPANY_ID .dx-dropdowneditor-button {
    width: 100% !important;
}

/* Responsive radio group */
#CONNECTION_MODE .dx-radiogroup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#CONNECTION_MODE .dx-radiobutton {
    flex: 1 1 45%;
    min-width: 120px;
}

/* Responsive buttons */
.dx-button {
    width: 100%;
    margin: 6px 0;
}

/* Responsive adjustments for different laptop sizes */
@media (max-width: 1200px) {
    .login-client-left-content {
        padding: 25px;
        min-height: 280px;
    }

        .login-client-left-content h1 {
            font-size: clamp(1.6rem, 4vw, 2.2rem);
            margin-bottom: 1rem;
        }

        .login-client-left-content p {
            font-size: clamp(0.85rem, 1.6vw, 1rem);
            margin-bottom: 1.5rem;
            max-width: 450px;
        }

    .login-client-smart-sign-in-button {
        padding: 10px 20px;
        font-size: clamp(0.85rem, 1.3vw, 1rem);
        min-width: 180px;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .login-client-left-content {
        padding: 35px;
    }

        .login-client-left-content h1 {
            font-size: clamp(1.9rem, 2.8vw, 2.3rem);
        }

        .login-client-left-content p {
            font-size: clamp(0.95rem, 1.4vw, 1.05rem);
        }
}

@media (min-width: 1441px) and (max-width: 1680px) {
    .login-client-left-content {
        padding: 40px;
    }

        .login-client-left-content h1 {
            font-size: clamp(2rem, 2.5vw, 2.4rem);
        }
}

@media (min-width: 1681px) {
    .login-client-left-content {
        padding: 45px;
        min-height: 350px;
    }

        .login-client-left-content h1 {
            font-size: 2.5rem;
        }

        .login-client-left-content p {
            font-size: 1.1rem;
        }

    .login-client-smart-sign-in-button {
        padding: 14px 30px;
        font-size: 1.1rem;
    }
}

/* For very tall screens */
@media (min-height: 900px) {
    .login-client-left-content {
        min-height: 400px;
    }
}

/* For shorter screens */
@media (max-height: 700px) {
    .login-client-left-content {
        padding: 20px 15px;
        min-height: 250px;
    }

        .login-client-left-content h1 {
            font-size: clamp(1.5rem, 5vw, 2rem) !important;
            margin-bottom: 0.8rem;
        }

        .login-client-left-content p {
            font-size: clamp(0.8rem, 1.7vw, 0.95rem) !important;
            margin-bottom: 1.2rem;
        }

    .login-client-smart-sign-in-button {
        padding: 8px 18px;
        font-size: clamp(0.8rem, 1.4vw, 0.95rem) !important;
        min-width: 160px;
    }
}

.dx-button-has-text .dx-button-content {
    padding-block: 10px;
}
/* Override DevExtreme button styles */
.dx-button .dx-button-content {
    background-color: var(--primary-color) !important;
    color: var(--button-text-color) !important;
    border-radius: 8px !important;
    border: none !important;
    transition: var(--transition);
}


.dx-button {
    border-radius: 8px !important; /* Override if needed */
    border-width: none !important;
    border-style: none !important;
    width: 100%;
    margin: 6px 0;
}

.dx-button-has-text .dx-button-content, .dx-button-has-text .dx-button-content .dx-button-text {
    overflow: none !important;
    text-overflow: none !important;
    white-space: none !important;
}

.login-client-form-group .dx-field-item:not(.dx-first-row) {
    padding-top: 2px !important;
}

.ErrorMsg p {
    color: #d32f2f !important;
    font-weight: 200;
    margin: 0;
    padding: 4px 0;
}
.dx-dropdowneditor-button .dx-button-content {
    background-color: white !important;
}


.dx-gallery-item-image {
    padding-left: 160px !important;
    /* Add or modify the width property here */
    width: 365px;
    height: auto;
   
}

/* For specific screen sizes, you can also adjust it here */
@media screen and (min-width: 1850px) and (max-width: 1900px) and (min-height: 480px) and (max-height: 510px) {
    .dx-gallery-item-image {
        padding-left: 200px !important;
        /* Increase the width specifically for this breakpoint */
        width: 200px;
        height: auto;
    }
}
#login-client-left-side-image {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin: 2px auto;
    display: block;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.1));
    background: transparent !important;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}
.dx-texteditor-input {
    /* Improves text rendering on various screens */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Adds a subtle transition for smoother cursor movement or text changes */
    transition: all 0.2s ease-in-out;


}

.version-alert {
    display: flex;
    border-left: 5px solid #e74c3c;
    border-radius: 4px;
    padding: 8px 15px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    align-items: center;
    transition: all 0.3s ease;
    background-color: #ffebee;
    justify-content: space-between;
}

.alert-main-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.version-info {
    font-weight: bold;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.login-client-notification-box {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff2e6;
    border: 1px solid #ffcc99;
    border-radius: 10px;
    padding: 4px 5px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 1100px;
    width: 90%;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: var(--transition);
}

.login-client-notification-icon {
    color: #ff9933;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.login-client-notification-text {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Version Alert Styles */
#versionAlert {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    width: 90%;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: var(--transition);
}

.alert-main-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    color: #7d6608;
    font-size: 0.9em;
    line-height: 1.4;
}

.alert-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.version-info {
    font-weight: 600;
    color: #d35400;
}

.alert-button {
    background-color: #ff6959;
    color: #f7f7f7;
/*    #dc3545*/
        border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-left: 15px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

    .alert-button:hover:not(:disabled) {
        background-color: #c0392b;
    }

    .alert-button:disabled {
        background-color: #fab8b8;
        cursor: not-allowed;
    }

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
@media (max-width: 1024px) {
    .login-client-notification-box,
    #versionAlert {
        max-width: 95%;
        width: 95%;
        padding: 6px 8px;
        font-size: 0.85em;
    }

    .login-client-notification-text,
    .alert-content {
        font-size: 0.85em;
        line-height: 1.3;
    }

    .alert-button {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .alert-icon {
        font-size: 1rem;
        margin-top: 1px;
    }
}

/* Small screens (max-width: 768px - smaller laptops / tablets portrait) */
@media (max-width: 768px) {
    .login-client-notification-box,
    #versionAlert {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 8px;
    }

    .alert-main-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .alert-button {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Very small screens (max-width: 480px - compact laptops / large phones) */
@media (max-width: 480px) {
    .login-client-notification-box,
    #versionAlert {
        padding: 5px 6px;
        font-size: 0.8em;
        border-radius: 8px;
    }

    .alert-title {
        font-size: 0.9em;
    }

    .alert-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .loading-spinner {
        width: 10px;
        height: 10px;
    }
}

/* ========== DIWALI DECORATIONS ========== */

/* Hanging Lights Rail */
.diwali-lights-rail {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 60px;
    pointer-events: none;
    z-index: 9999;
}

.diwali-lights {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 0 20px;
}

.diwali-wire {
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 2px;
    background: #333;
    z-index: 1;
}

.diwali-bulb-wrap {
    position: relative;
    transform-origin: center top;
    z-index: 2;
}

.diwali-cord {
    width: 2px;
    height: 20px;
    background: #333;
    margin: 0 auto;
    border-radius: 2px;
    animation: diwali-sway 3s ease-in-out infinite;
}

.diwali-bulb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin: 0 auto;
    animation: diwali-twinkle 1.5s infinite;
}

.diwali-c-red {
    background: radial-gradient(circle at 30% 30%, #ffd1d1, #ff3b3b);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.9);
}

.diwali-c-green {
    background: radial-gradient(circle at 30% 30%, #dfffd9, #00cc66);
    box-shadow: 0 0 15px rgba(0, 204, 102, 0.9);
}

.diwali-c-yellow {
    background: radial-gradient(circle at 30% 30%, #fff7d0, #ffcc00);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.9);
}

.diwali-c-blue {
    background: radial-gradient(circle at 30% 30%, #e6f0ff, #3380ff);
    box-shadow: 0 0 15px rgba(51, 128, 255, 0.9);
}

.diwali-c-orange {
    background: radial-gradient(circle at 30% 30%, #ffe4cc, #ff8800);
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.9);
}

.diwali-c-pink {
    background: radial-gradient(circle at 30% 30%, #ffe6f0, #ff66b2);
    box-shadow: 0 0 15px rgba(255, 102, 178, 0.9);
}

@keyframes diwali-sway {
    0%, 100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes diwali-twinkle {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.6;
        filter: brightness(1.8);
    }
}

/* Fireworks Canvas - RESTRICTED TO SIDES ONLY */
canvas.diwali-fireworks {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Add mask to hide center area */
    -webkit-mask-image: linear-gradient( to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100% );
    mask-image: linear-gradient( to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100% );
}

/* 🌟 Corner Diyas - Corrected & Improved */
.diya-corner {
    /* Keep this */
    position: fixed;
    /* Increased z-index to ensure it's always on top */
    z-index: 9999;
    transform-origin: bottom center;
    transition: all 0.3s ease-in-out;
}

/* Left & Right positions - Keep this */
.diya-left {
    left: 15px;
}

.diya-right {
    right: 15px;
}
/* Default for largest screens (>= 1200px) */
@media (min-width: 1200px) {
    .diya-corner {
        bottom: 30px; /* Use a fixed pixel value for more control */
        transform: scale(1); /* Full size on large screens */
    }
}

/* Large desktops (1200px to 992px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .diya-corner {
        bottom: 25px; /* Slightly lower */
        transform: scale(0.9); /* Slightly smaller */
    }
}

/* Tablets (991px to 768px) */
@media (max-width: 991px) and (min-width: 768px) {
    .diya-corner {
        bottom: 20px; /* Keep it low */
        transform: scale(0.8); /* Smaller, but still a good size */
    }
}

/* Smaller Tablets & Phablets (767px to 576px) */
@media (max-width: 767px) and (min-width: 576px) {
    .diya-corner {
        /* Use a fixed pixel value for 'bottom' to prevent it from going off-screen 
       if the content below it is pushed up */
        bottom: 15px;
        /* Increased the scale significantly for better visibility */
        transform: scale(0.75);
    }
}

/* Mobile Phones (<= 575px) */
@media (max-width: 575px) {
    .diya-corner {
        /* Use a small, fixed bottom value for mobile */
        bottom: 10px;
        /* Set the smallest scale here. Increased from your original 0.5 */
        transform: scale(0.65);
        /* Also, reduce the side padding to bring them closer to the edge */
    }

    .diya-left {
        left: 5px;
    }

    .diya-right {
        right: 5px;
    }
}

/* ========================== */
/* 🌼 Diya Design (scaled down) */
/* ========================== */

.diya-container {
    position: relative;
    width: 150px;
    height: 150px;
}

/* Bowl */
.diya {
    width: 60%;
    height: 30%;
    background-color: #fdcf0f;
    border-radius: 0 0 100px 100px;
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

/* Inner red part */
.diya-inside {
    width: 50%;
    height: 15%;
    background-color: #fd500a;
    border-radius: 50%;
    position: absolute;
    bottom: 45%;
    left: 50%;
    transform: translateX(-50%);
}

/* Flame */
.diya-flame {
    width: 45px;
    height: 45px;
    background-color: #fdf1c2;
    border-radius: 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    bottom: 55%;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    animation: diya-scale-up 2s infinite;
}

@keyframes diya-scale-up {
    50% {
        transform: translateX(-50%) rotate(-45deg) scale(1.05);
    }
}

/* Inner flame */
.diya-flame::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: #f4c631;
    border-radius: 50% 0;
    bottom: 0;
}

/* Glow around diya */
.diya-light {
    width: 120px;
    height: 120px;
    background-color: rgba(253, 241, 194, 0.2);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
    animation: diya-shine 5s linear infinite;
}

@keyframes diya-shine {
    50% {
        transform: translateX(-50%) scale(0.9);
        opacity: 0.3;
    }
}

/* Decorative lines */
.diya-line-1,
.diya-line-2 {
    position: absolute;
    width: 80%;
    height: 4px;
    background: white;
    border-radius: 50%;
    left: 10%;
}

.diya-line-1 {
    bottom: 25%;
}

.diya-line-2 {
    bottom: 18%;
}

/* Dotted pattern */
.diya-dots {
    position: absolute;
    width: 80%;
    height: 6px;
    border-bottom: 3px dotted #fd500a;
    left: 10%;
    bottom: 21%;
}

/* Shadow */
.diya-shadow {
    width: 70%;
    height: 10%;
    background-color: rgba(25, 5, 71, 0.3);
    border-radius: 50%;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}


/* Flying Diyas */
.flying-diya {
    position: fixed;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.7));
}

.flying-diya-body {
    width: 35px;
    height: 22px;
    background: linear-gradient(180deg, #fdcf0f, #ff9800);
    border-radius: 0 0 50% 50%;
    position: relative;
}

.flying-diya-flame {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 14px;
    background: linear-gradient(180deg, #fff700, #ff6600);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 6px #ff6600;
    animation: flame-flicker 0.6s infinite alternate;
}

@keyframes flame-flicker {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translateX(-50%) scale(1.15);
        opacity: 1;
    }
}

/* Sparklers */
.sparkler {
    position: fixed;
    pointer-events: none;
    z-index: 10;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffeb3b, 0 0 20px #ff9800, 0 0 30px #ff5722;
}

/* Cracker Burst */
.cracker-burst {
    position: fixed;
    pointer-events: none;
    z-index: 12;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Ground Sparkler */
.ground-sparkler {
    position: fixed;
    pointer-events: none;
    z-index: 8;
    width: 3px;
    height: 3px;
    background: #ffeb3b;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffeb3b, 0 0 16px #ff9800;
}

/* Debug Info */
#debugInfo {
    position: fixed;
    top: 70px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #0f0;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    z-index: 99999;
}