/* Default */
:root {
    --main-theme: #d21931;
    --offline-theme: #ed3237;
    --blue-theme: #0000fe;
    --liteblue-theme: #7d7dff;
    --litemain-theme: #cc2c2c;
    --grey-theme: #E6E6E6;
    --bg-theme: #F0F2F5;
    --body-theme: #fff;
    --card-theme: #cfdee7;
    --primary-color: #2563eb;
    --success-color: #10b981;
    /* --card-theme: #eaebed; */
    --mode-cool: #60a5fa;
    --mode-heat: #ef4444;
    --mode-dry: #8b5cf6;
    --mode-auto: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --background-light: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body, html {
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    position: relative; /* To contain the ::before overlay */
    background-color: var(--body-theme);
}

/* Background image with centered and cover */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: scale(0.3);
    filter: blur(5px); /* Adjust blur intensity */
    z-index: -1; /* Place it behind the main content */
}

.text-theme {
    color: var(--main-theme);
}

.bg-theme {
    background-color: var(--main-theme);
}

#mainContent {
    padding: 0 30px 60px 30px;
    margin: 30px 60px;
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 3;
}

.breadcrumb-section {
    background-color: transparent;
    padding: 15px 30px;
    border-bottom: 1px solid #e5e7eb;
    width: fit-content;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--main-theme);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: var(--main-theme);
    opacity: 0.5;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.nav-company-logo {
    margin-left: auto;
}

.btn-back-page {
    background-color: var(--main-theme);
    color: #fff;
    width: 82px;
    height: fit-content;
    position: absolute;
    right: 0;
    margin-right: 90px;
}

.btn-back-page:hover {
    background-color: var(--main-theme);
    opacity: 0.8;
}

.card {
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24); 
    
}

.modal-backdrop {
    position: fixed !important;
    z-index: 1040 !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.modal {
    z-index: 1050 !important;
}

.tooltips-top {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
  
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    margin: -43px -75px;
}

.btn:hover .tooltips-top {
    visibility: visible;
}

.custom-slash::before {
    content: "/";
    color: #c62828;
    font-size: 32px;
    position: absolute;
    margin: -12px 8px;
    transform: rotateZ(25deg);
    font-weight: bold;
}

.custom-slash-test::after {
    content: "!";
    color: #c62828;
    font-size: 28px;
    position: absolute;
    margin: -9px -8px;
    font-weight: bold;
}

/* Sidebar */
/* .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5vw;
    transition: width 0.3s ease;
    background-color: #fff;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
}

.sidebar-company .company-logo {
    aspect-ratio: 2/1;
    object-fit: contain;
    height: 50px;
    text-align: start;
}

.sidebar.expanded {
    width: 10%;
}

.sidebar-company {
    text-align: center;
    padding: 20px 0;
}

.sidebar-content {
    padding: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item i {
    margin-right: 15px;
}

.menu-text {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar.expanded .menu-text {
    opacity: 1;
    pointer-events: auto;
} */

/* Sidebar Profile section */
/* .sidebar-profile {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
}

.profile-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.profile-text {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar.expanded .profile-text {
    opacity: 1;
    pointer-events: auto;
}

.logout-btn {
    display: none;
    margin-top: 10px;
}

.sidebar.expanded .logout-btn {
    display: inline-block;
} */

/* Sidebar Toggle Button */
/* .sidebar-oc-btn {
    position: fixed;
    top: 10px;
    left: 65px;
    background-color: #fff;
    border: none;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.sidebar.expanded .sidebar-oc-btn {
    left: 235px;
    transform: rotate(180deg);
} */

/* Auto-open on hover */
/* .sidebar:hover {
    width: 250px;
}

.sidebar:hover .menu-text,
.sidebar:hover .profile-text {
    opacity: 1;
    pointer-events: auto;
} */


/* Navbar */
.nav {
    margin: 0 auto; /* Center the ul within the navbar */
}
.navbar {
    height: 86px;
    width: 100%;
    background-color: var(--main-theme);
    color: #fff;
    padding: 0 30px;
    position: relative;
    z-index: 100;
}

.navbar-brand {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: #fff;
}

.nav-link.active {
    color: #fff !important;
}

/* .nav-company-logo {
    margin-left: 30px;
} */

img.company-logo{
    position: absolute;
    height: 70px;
    max-width: 325px;
    cursor: none;
    pointer-events: none;
    display: block;
    right: 60px;
    top: 118px;
    object-fit: contain;
    object-position: center;
}

.nav-company-name {
    vertical-align: middle;
}

#company-name {
    font-size: 2.2rem;
    font-weight: bolder;
    color: #fff;
    opacity: 0.9;
    font-variant: all-small-caps;
    margin-right: 15px;
    line-height: 1;
}

#company-reg {
    font-size: 24px;
    opacity: 0.3;
    /* margin-top: -5px; */
}

.nav-underline {
    margin: 0;
}

.nav-underline .nav-item {
    margin: 0 10px;
}

.nav-underline .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-underline .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-underline .nav-link:hover {
    color: #fff;
}

.nav-underline .nav-link:hover:after {
    width: 100%;
}

.nav-underline .nav-link.active {
    color: #fff;
    font-weight: 600;
}

.nav-underline .nav-link.active:after {
    width: 100%;
}

/* img.company-logo:hover {
    transition: ease-out 1s;
    transform: scale(1.5);
} */

/* NAV - DROPDOWN USER SECTION */
    .dropdown-menu {
        width: 350px;
    }

    .user-dropdown {
        position: relative;
    }

    .profile-dd {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 10px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .profile-dd:hover {
        background-color: rgba(237, 50, 55, 0.75);
    }

    .profile-dd span {
        margin-right: 10px;
        color: #fff;
    }

    .profile-photo {
        height: 40px;
        width: 40px;
        border: 1px solid #fff;
        border-radius: 50%;
        padding: 2px;
        object-fit: cover;
    }

    .user-dropdown-menu {
        width: 250px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        border: none;
        padding: 0;
    }

    .user-header {
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }
    
    .user-footer {
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }

    .btn-theme {
        background-color: var(--main-theme);
        color: #fff;
        transition: all 0.3s ease;
    }
    
    .btn-theme:hover {
        background-color: rgba(237, 50, 55, 0.85);
        color: #fff;
    }

    .dropdown-menu.show {
        animation: fadeInDown 0.3s ease forwards;
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
/* END NAV - DROPDOWN USER SECTION */


@media (max-width: 991px) {
    .navbar {
        height: auto;
        padding: 15px;
    }
    
    .d-flex.align-items-center {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-underline .nav-item {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .d-flex.align-items-center:first-child {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #company-name {
        font-size: 1.8rem;
    }
    
    .device-category-selector {
        max-width: 160px;
    }
    
    .dropdown-user {
        padding: 5px 0;
    }
}

/* Page Header */
/* .breadcrumb {
    padding: 0;
    margin: 0;
}

.breadcrumb a{
    text-decoration: none;
    color: #c0c0c0;
    cursor: none;
} */

/* HEADER */
.input-group .toggle-password {
    border-left: none;
}

.input-group .form-control:focus + .toggle-password {
    border-color: #86b7fe;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.input-group .toggle-password:hover {
    background-color: #e9ecef;
}
    /* START Active Category Selector */
        .device-category-selector {
            position: relative;
            max-width: 220px;
            padding: 8px 10px;
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--main-theme);
            margin-right: 15px;
        }

        .device-category-selector:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }

        .device-category-selector::before {
            content: "Active Categories";
            position: absolute;
            top: -10px;
            left: 18px;
            background-color: var(--main-theme);
            color: white;
            padding: 2px 10px;
            font-size: 0.7rem;
            font-weight: 600;
            border-radius: 10px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .device-category-selector select {
            width: 100%;
            padding: 6px 25px;
            font-size: 0.9rem;
            background-position: right 10px center;
        }

        .device-category-selector select:focus {
            outline: none;
            border-color: var(--main-theme);
            box-shadow: 0 0 0 3px rgba(210, 25, 49, 0.2);
        }

        .device-category-selector select:hover {
            border-color: var(--main-theme);
            background-color: #f8f9fa;
        }

        /* Custom styling for select options */
        .device-category-selector select option {
            padding: 12px;
            font-weight: 500;
        }

        /* Animation for newly selected categories */
        .category-highlight {
            animation: pulse 1.5s ease;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(210, 25, 49, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(210, 25, 49, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(210, 25, 49, 0);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .device-category-selector {
                width: 100%;
                max-width: 100%;
                margin: 15px auto;
            }
        }

        /* Modern Category Chips Alternative (can be used instead of the dropdown) */
        .category-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 15px;
            justify-content: center;
        }

        .category-chip {
            padding: 8px 16px;
            background-color: #f8f9fa;
            border: 2px solid transparent;
            border-radius: 50px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .category-chip:hover {
            background-color: #e9ecef;
            transform: translateY(-2px);
        }

        .category-chip.active {
            background-color: var(--main-theme);
            color: white;
            border-color: var(--main-theme);
            box-shadow: 0 4px 8px rgba(210, 25, 49, 0.3);
        }

        /* Style for locked category selector */
        .category-locked {
            position: relative;
            opacity: 0.8;
        }

        .category-locked select {
            cursor: not-allowed;
            border-color: #ccc;
            background-color: #f5f5f5;
        }

        /* Lock overlay styles */
        .category-lock-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(248, 249, 250, 0.7);
            opacity: 0;
            transition: opacity 0.2s ease;
            z-index: 5;
            pointer-events: none;
            border-radius: 50%;
        }

        /* Show the overlay on hover */
        .category-locked:hover .category-lock-overlay {
            opacity: 1;
        }

        .lock-content {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #6c757d;
            font-size: 0.85rem;
            padding: 4px 8px;
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .lock-icon {
            color: #dc3545;
        }

        /* Animation for initial appearance */
        @keyframes lockPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .category-locked .lock-icon {
            animation: lockPulse 1s ease-in-out;
        }
    /* END Active Category Selector */
/* END HEADER */

/* Login Page */
.ftco-section {
    padding: 7em 0; 
    background: linear-gradient(var(--main-theme) 65%, var(--litemain-theme));
    height: 100%;
}

.heading-section {
    font-size: 28px;
    color: #000; 
}

.login-wrap {
    position: relative;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    backdrop-filter: blur(20px); /* Apply the blur effect */
    border-radius: 10px;
    -webkit-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24); 
}

.login-wrap h1 {
    font-weight: 500;
    color: #fff; 
    font-variant: small-caps slashed-zero;
}

.login-wrap .icon {
    width: 80px;
    height: 80px;
    background: var(--main-theme);
    border-radius: 50%;
    font-size: 30px;
    margin: 0 auto;
    margin-bottom: 10px; 
}

.login-wrap .icon span {
    color: #fff; 
}

.checkbox-wrap {
    display: block;
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}
  
/* Hide the browser's default checkbox */
.checkbox-wrap input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0; 
}

/* Show the checkmark when checked */
.checkbox-wrap input:checked ~ .checkmark:after {
    display: block;
    content: "\f14a";
    font-family: "FontAwesome";
    color: rgba(0, 0, 0, 0.2); 
}

  /* Style the checkmark/indicator */
.checkbox-primary {
    color: var(--main-theme); 
}

.checkbox-primary input:checked ~ .checkmark:after {
    color: var(--main-theme); 
}

a.forgot-link {
    background-color: transparent;
    transition: .3s all ease;
    color: var(--main-theme);
    position: absolute;
    right: 0;
    margin-right: 45px;
}

.submit {
    width: 80%;
}

.submit:hover {
    background-color: var(--main-theme);
    opacity: 0.5;
    color: #fff;
}

/* Dashboard */
/* Section Loaders */
.e-stat__loader,
.e-chart__loader {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 10;
}

.e-stat__loader::after,
.e-chart__loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.e-stat__card,
.e-chart__card {
    position: relative;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Header Styles */
.e-header {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.e-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.e-header__subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.e-header__time {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Button Styles */
.e-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition);
}

.e-btn:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.e-btn--refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
}

.e-btn--refresh:hover {
    background-color: #1d4ed8;
    color: white;
}

.e-btn__tooltip {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.e-btn:hover .e-btn__tooltip {
    opacity: 1;
    visibility: visible;
}

/* Stats Grid */
.e-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.e-stat__card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    pointer-events: none;
}

.e-stat__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.e-stat__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    background: var(--primary-color);
}

.e-stat__card[data-type="errors"] .e-stat__icon {
    background: var(--main-theme);
}

.e-stat__card[data-type="devices"] .e-stat__icon {
    background: var(--success-color);
}

.e-stat__card[data-type="cases"] .e-stat__icon {
    background: var(--primary-color);
}

.e-stat__content {
    flex: 1;
}

.e-stat__content h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.e-stat__value {
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.e-stat__trend {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.e-stat__trend.positive {
    background-color: rgba(22, 163, 74, 0.1);
    color: var(--success-color);
}

.e-stat__trend.negative {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--danger-color);
}

/* No data message styling */
.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #64748b;
    text-align: center;
    padding: 20px;
}

.no-data-message i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.no-data-message p {
    font-size: 16px;
    margin: 0;
}/* Add these styles to your CSS file */

/* Default loading placeholder for elements on first load */
.loading-placeholder {
    position: relative;
    display: inline-block;
    min-width: 50px;
    height: 1em;
    background: linear-gradient(90deg, 
        rgba(227, 227, 227, 0.4) 0%, 
        rgba(227, 227, 227, 0.8) 50%, 
        rgba(227, 227, 227, 0.4) 100%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.2s infinite linear;
    border-radius: 4px;
    color: transparent;
    overflow: hidden;
}

/* Chart loading placeholders */
.loading-chart {
    position: relative;
    min-height: 200px;
}

.loading-chart::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.6);
    border-radius: 8px;
    z-index: 5;
}

.loading-chart::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 6;
}

/* Refresh button loading state */
.e-btn--refresh[disabled] {
    opacity: 0.7;
    cursor: wait;
}

/* Error homes loading placeholders */
.error-homes-loading {
    padding: 1rem;
}

.skeleton-row {
    height: 48px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, 
        rgba(227, 227, 227, 0.2) 0%, 
        rgba(227, 227, 227, 0.3) 20%, 
        rgba(227, 227, 227, 0.2) 40%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.2s infinite linear;
    border-radius: 8px;
}

.skeleton-row:last-child {
    margin-bottom: 0;
}

/* Loading state animations for stat values */
.e-stat__value--loading {
    position: relative;
    color: transparent !important;
    overflow: hidden;
}

.e-stat__value--loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(227, 227, 227, 0.4) 0%, 
        rgba(227, 227, 227, 0.8) 50%, 
        rgba(227, 227, 227, 0.4) 100%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.2s infinite linear;
    border-radius: 4px;
}

/* Initial loading placeholder for all statistic numbers */
.e-stat__value span:empty::before,
.e-stat__value span:only-child:empty::before {
    content: "0";
    color: transparent;
    display: inline-block;
    min-width: 3ch;
    background: linear-gradient(90deg, 
        rgba(227, 227, 227, 0.4) 0%, 
        rgba(227, 227, 227, 0.8) 50%, 
        rgba(227, 227, 227, 0.4) 100%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.2s infinite linear;
    border-radius: 4px;
}

.e-stat__value--updated {
    animation: statHighlight 1s ease-out;
}

/* Generic skeleton loading animation */
.skeleton-loading {
    display: inline-block;
    width: 100%;
    min-width: 60px;
    height: 1.2em;
    background: linear-gradient(90deg, 
        rgba(227, 227, 227, 0.4) 0%, 
        rgba(227, 227, 227, 0.8) 50%, 
        rgba(227, 227, 227, 0.4) 100%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.2s infinite linear;
    border-radius: 4px;
}

/* Time update animation */
.time-updated {
    animation: pulseFade 1s ease-out;
}

/* Loading spinner animation */
.is-loading {
    position: relative;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 10;
}

.spinner-svg {
    animation: rotate 2s linear infinite;
}

.spinner-circle {
    stroke: #2563eb;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    transform-origin: center;
    animation: dash 1.5s ease-in-out infinite;
}

/* Animation keyframes */
@keyframes loadingShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes statHighlight {
    0% {
        color: inherit;
    }
    30% {
        color: #2563eb;
    }
    100% {
        color: inherit;
    }
}

@keyframes pulseFade {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 125.6;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -125.6;
    }
}

/* Add this component for item-specific loading states */
.item-loader {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
}

.item-loader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    backdrop-filter: blur(1px);
    z-index: 1;
}

.item-loader::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Data update transition effect */
.data-transition {
    transition: all 0.3s ease-out;
}

/* Element specific loading states */
.e-stat__card.is-loading .e-stat__value,
.e-chart__card.is-loading .e-chart__body {
    opacity: 0.6;
    position: relative;
}

/* Counter animation container */
.counter-container {
    position: relative;
    display: inline-block;
}

.counter-container::after {
    content: "+";
    position: absolute;
    top: 0;
    right: -12px;
    color: #16a34a;
    font-weight: bold;
    opacity: 0;
    animation: fadeInOut 1.5s ease forwards;
    animation-delay: 0.5s;
}

.counter-container.decreasing::after {
    content: "-";
    color: #dc2626;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(5px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}

/* Charts Grid */
.e-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.e-chart__card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.e-chart__card:hover {
    box-shadow: var(--shadow-md);
}

.e-chart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.e-chart__header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.e-chart__header h3 i {
    color: var(--primary-color);
}

.e-chart__actions {
    display: flex;
    gap: 0.5rem;
}

.outlet-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 5rem;
    text-align: center;
    font-size: 1.8rem;
}

.outlet-stats__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.total-devices {
    margin-left: auto;
    margin-right: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.total-devices .total-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .e-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .e-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

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

    .e-chart__card {
        padding: 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Error Homes List Styles */
.error-homes-list {
    max-height: 400px;
    overflow-y: auto;
}

.error-homes-count {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
}

.error-home-item {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.error-home-item:hover {
    background-color: #f9fafb;
}

.error-home-icon {
    color: #6b7280;
    font-size: 16px;
    padding-top: 2px;
}

.error-home-content {
    flex: 1;
}

.error-home-name {
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.error-home-location {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-home-arrow {
    color: #9ca3af;
    transition: transform 0.2s;
}

.error-home-item:hover .error-home-arrow {
    transform: translateX(4px);
    color: #6b7280;
}

/* Empty state */
.error-homes-empty {
    padding: 32px 16px;
    text-align: center;
    color: #6b7280;
}

/* Scrollbar styling */
.error-homes-list::-webkit-scrollbar {
    width: 6px;
}

.error-homes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.error-homes-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.error-homes-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* End Dashboard */


/* Home Component CSS */
body {
    font-size: 16px;
    line-height: 1.6;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Search Styles */
.search-container {
    position: relative;
}

.search-container .form-control {
    padding-left: 1rem;
    height: 3rem;
    font-size: 1.1rem;
}

/* Card Styles */
.home-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.home-card.error-state {
    border: 2px solid #dc3545;
    opacity: 0.8;
    cursor: not-allowed;
}

.home-name {
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-address {
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status Boxes */

/* .status-box {
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    min-height: 80px;
}

.status-box.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-box.inactive {
    background-color: #fbe9e7;
    color: #c62828;
}

.status-box.online {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status-box.offline {
    background-color: #fafafa;
    color: #757575;
} */

.status-number {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.status-label-home {
    font-size: 0.875rem;
    margin: 0;
}

/* Loading States */
.loading-text {
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: 1rem;
}

/* Placeholder Styles */
.placeholder-glow {
    animation: placeholder-glow 2s ease-in-out infinite;
}

@media (min-width: 1400px) {
    .home-card .status-number {
        font-size: 1.75rem;
    }
    
    .home-name {
        font-size: 1.5rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboards-header {
        padding: 1rem !important;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .home-name {
        font-size: 1.3rem;
    }
    
    .status-number {
        font-size: 1.5rem;
    }

    /* .status-box {
        min-height: 80px;
    } */
    
    .home-card .status-number {
        font-size: 1.25rem;
    }
    
    .status-label-home {
        font-size: 0.75rem;
    }
}

    /* Excel report */
    .excel-report-container {
        margin: 20px 0;
        overflow-x: auto;
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .excel-table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        font-size: 14px;
    }
    
    .excel-table th,
    .excel-table td {
        border: 1px solid #e2e8f0;
        padding: 8px 12px;
        text-align: left;
    }
    
    .excel-table th {
        background-color: #f8fafc;
        font-weight: 600;
        color: #1a202c;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .excel-table tbody tr:nth-child(even) {
        background-color: #f8fafc;
    }
    
    .excel-table tbody tr:hover {
        background-color: #edf2f7;
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .excel-table {
            font-size: 12px;
        }
        
        .excel-table th,
        .excel-table td {
            padding: 6px 8px;
        }
    }
    .device-stats {
        position: relative;
        padding-top: 1rem;
    }

    .stats-divider {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    }

    .stat-card {
        display: flex;
        align-items: center;
        padding: 0.75rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .stat-card:hover {
        background-color: rgba(0,0,0,0.02);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-right: 12px;
        font-size: 1.2rem;
    }

    .total-devices .stat-icon {
        background-color: rgba(13, 110, 253, 0.1);
        color: #0d6efd;
    }

    .error-devices .stat-icon {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

    .stat-info {
        display: flex;
        flex-direction: column;
    }

    .stat-info span {
        display: block;
    }

    .stat-info .total-number,
    .stat-info .total-error-number {
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.2;
    }

    /* Error number styles */
    .stat-info .total-error-number.has-errors {
        color: #dc3545;
        font-weight: 700;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.5; }
        100% { opacity: 1; }
    }

    .stat-info .stat-label {
        font-size: 0.875rem;
        color: #6c757d;
        margin-top: 2px;
    }

    /* Placeholder animation styles */
    .stat-info .placeholder {
        height: 24px;
    }

    /* Responsive adjustments */
    @media (max-width: 1400px) {
        .stat-icon {
            width: 34px;
            height: 34px;
            font-size: 1rem;
        }
        
        .stat-info .total-number,
        .stat-info .total-error-number {
            font-size: 1.125rem;
        }
        
        .stat-info .stat-label {
            font-size: 0.75rem;
        }
    }

/* END Home Component CSS */

/* Room Section */

    /* NEW ROOM SECTION */
    .room-card {
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: #ffffff;
    }
    
    .room-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }
    
    .room-icon {
        background: #f8f9fa;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .room-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2c3e50;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Status Tiles */
    .status-tile {
        padding: 0.75rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        height: 100%;
        min-height: 80px;
    }
    
    .status-tile.active {
        background-color: #e8f5e9;
    }
    
    .status-tile.inactive {
        background-color: #fbe9e7;
    }
    
    .status-tile.online {
        background-color: #e3f2fd;
    }
    
    .status-tile.offline {
        background-color: #fafafa;
    }
    
    .status-icon {
        font-size: 1.25rem;
    }
    
    .status-tile.active .status-icon {
        color: #2e7d32;
    }
    
    .status-tile.inactive .status-icon {
        color: #c62828;
    }
    
    .status-tile.online .status-icon {
        color: #1565c0;
    }
    
    .status-tile.offline .status-icon {
        color: #757575;
    }
    
    .status-info {
        display: flex;
        flex-direction: column;
    }
    
    .status-number {
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1;
    }
    
    .status-label {
        font-size: 0.75rem;
        color: #666;
        margin-top: 0.25rem;
    }
    
    .device-total {
        font-size: 0.9rem;
        color: #2c3e50;
    }
    
    /* Search Styling */
    .search-container {
        min-width: 250px;
    }
    
    .search-container .input-group-text {
        background-color: transparent;
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .rooms-header {
            padding: 1rem !important;
        }
        
        .status-tile {
            min-height: 70px;
            padding: 0.5rem;
        }
        
        .status-number {
            font-size: 1rem;
        }
        
        .status-label {
            font-size: 0.7rem;
        }
    }
    
    @media (min-width: 1400px) {
        .room-title {
            font-size: 1.25rem;
        }
        
        .status-number {
            font-size: 1.5rem;
        }
        
        .status-label {
            font-size: 0.8rem;
        }
    }
/* END Room Section */

/* Tab Navigation Styles */
.tab-navigation .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.tab-navigation .nav-link {
    color: #6c757d;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-navigation .nav-link:hover {
    color: #495057;
    border: none;
}

.tab-navigation .nav-link.active {
    color: #0d6efd !important;
    border: none;
    border-bottom: 2px solid #0d6efd;
    margin-bottom: -2px;
}

/* Automation Section Styles */
.automation-header {
    padding: 1.5rem 0;
}

.automation-title h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.automation-title p {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Tab Styles */
.nav-tabs-bordered {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs-bordered .nav-link {
    margin-right: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease-in-out;
}

.nav-tabs-bordered .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #0d6efd50;
}

.nav-tabs-bordered .nav-link.active {
    color: #0d6efd !important;
    background: none;
    border-bottom: 2px solid #0d6efd;
}

/* Table Styles */
.table-responsive {
    border-radius: 0.375rem;
    box-shadow: 0 0 0 1px #e9ecef;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    padding: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* Status Badge Styles */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 0.25rem;
}

.badge-active {
    background-color: #10b981;
    color: white;
}

.badge-inactive {
    background-color: #6c757d;
    color: white;
}

.badge-error {
    background-color: #ef4444;
    color: white;
}

/* Form Control Styles */
.input-group {
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-group-text {
    border: 1px solid #e9ecef;
    border-right: none;
}

.form-control, .form-select {
    border: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Action Button Styles */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.btn-outline-primary {
    border-color: #0d6efd;
}

/* .btn-outline-primary:hover {
    border-color: var(--main-theme);
    background-color: var(--main-theme);
    color: #fff;
} */

.btn-outline-secondary {
    border-color: #e9ecef;
}

/* Animation Styles */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease-in-out;
}

.btn, .nav-link {
    transition: all 0.2s ease-in-out;
}

/* Device List Page */
    /* Header Styles */
    .header-section {
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .header-icon {
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Search Input Styles */
    /* .search-container {
        min-width: 300px;
    }

    .search-container .input-group {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .search-container .form-control:focus {
        box-shadow: none;
    } */

    /* Device Card Styles */
    .device-card {
        cursor: pointer;
        transition: all 0.3s ease-in-out;
    }

    .device-card:hover {
        transform: translateY(-6px);
    }

    .device-card:hover .card {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
    }

    .device-card-header {
        position: relative;
        background: linear-gradient(45deg, #f8f9fa, #ffffff);
        border-radius: 16px 16px 0 0;
    }

    .status-indicator {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .status-indicator.success {
        color: #00b074;
        background-color: rgba(0, 176, 116, 0.1);
    }

    .status-indicator.danger {
        color: #dc3545;
        background-color: rgba(220, 53, 69, 0.1);
    }

    .status-indicator.error {
        position: absolute;
        top: 1rem;
        right: 2.5rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #ff9800;
        background-color: rgba(255, 152, 0, 0.1);
    }

    .device-icon-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .icon-background {
        width: 80px;
        height: 80px;
        background: #ffffff;
        border-radius: 20px;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .device-card:hover .icon-background {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .device-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .device-name {
        font-size: 1.2rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
    }

    .device-status {
        margin-bottom: 1rem;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        border-radius: 50px;
    }

    .fs-xs {
        font-size: 0.65rem;
    }

    .device-card-content {
        background-color: #ffffff;
    }

    .device-details {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .detail-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem;
        border-radius: 8px;
        background-color: #f8f9fa;
        transition: all 0.2s ease;
    }

    .flex-1 {
        flex: 1;
    }

    /* Adjust detail items in flex container */
    .detail-item.flex-1 {
        min-width: 0; /* Prevents flex items from overflowing */
    }

    /* Ensure text doesn't overflow in flex items */
    .detail-item.flex-1 .detail-text {
        min-width: 0;
    }

    .detail-item.flex-1 .detail-value {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .device-card:hover .detail-item {
        background-color: #f0f2f5;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ffffff;
        border-radius: 8px;
        color: #6c757d;
    }

    .detail-text {
        display: flex;
        flex-direction: column;
    }

    .detail-label {
        font-size: 0.75rem;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .detail-value {
        font-size: 0.9rem;
        color: #2c3e50;
        font-weight: 500;
    }

    .view-details-btn {
        transition: all 0.2s ease;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .view-details-btn:hover {
        transform: translateX(4px);
    }

    /* Category Styles */
    .category-header {
        position: relative;
    }

    .category-header h3 {
        font-size: 1.25rem;
        color: #2c3e50;
    }

    /* Loading State */
    .loading-container {
        min-height: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Empty State */
    .empty-state {
        min-height: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .empty-state-icon {
        color: #dee2e6;
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .search-container {
            min-width: 100%;
        }
        
        .header-actions {
            width: 100%;
            justify-content: space-between;
        }
    }

    /* Animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .device-card {
        animation: fadeIn 0.3s ease-out;
    }

    /* Power Controls */
    .power-buttons-container {
        display: flex;
        flex-direction: column;
    }

    .power-btn-on,
    .power-btn-off {
        border: 1px solid;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .power-btn-on {
        border-color: #d1fae5;
        background-color: #d1fae5;
        color: #059669;
    }

    .power-btn-on:not(:disabled):hover {
        background-color: #a7f3d0;
    }

    .power-btn-on:disabled {
        background-color: #f3f4f6;
        border-color: #e5e7eb;
        color: #9ca3af;
    }

    .power-btn-off {
        border-color: #fee2e2;
        background-color: #fee2e2;
        color: #dc2626;
    }

    .power-btn-off:not(:disabled):hover {
        background-color: #fecaca;
    }

    .power-btn-off:disabled {
        background-color: #f3f4f6;
        border-color: #e5e7eb;
        color: #9ca3af;
    }

    /* Temperature Control Base Styles */
    .temp-control-card {
        margin-bottom: 1rem;
    }

    /* Temperature Display */
    .temp-display {
        min-height: 80px;
    }

    /* Room Temperature */
    .room-temp {
        transition: all 0.3s ease;
    }

    .current-temp {
        color: #2c3e50;
        transition: color 0.3s ease;
    }

    /* Temperature Slider */
    .temp-slider-container {
        padding: 0.5rem 0;
    }

    .temp-slider {
        position: relative;
        height: 40px;
        padding: 0 1rem;
        cursor: grab;
    }

    .temp-slider:active {
        cursor: grabbing;
    }

    /* Temperature Scale */
    .temp-scale {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0.5rem;
        color: #64748b;
        font-size: 0.75rem;
    }

    .scale-line {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 2px;
        background: #e2e8f0;
        z-index: 1;
    }

    /* Temperature Marker */
    .temp-marker {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: left 0.1s ease-out;
        z-index: 2;
    }

    .marker-dot {
        width: 16px;
        height: 16px;
        background: #3b82f6;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        margin-bottom: 0.5rem;
        transition: transform 0.2s ease;
    }

    .temp-value {
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 0.25rem;
    }

    .drag-hint {
        font-size: 0.75rem;
        color: #64748b;
        opacity: 0.8;
    }

    /* Active States */
    .temp-slider.dragging .marker-dot {
        transform: scale(1.2);
        box-shadow: 0 3px 6px rgba(59, 130, 246, 0.4);
    }

    .temp-slider.dragging .temp-value {
        color: #3b82f6;
    }

    /* Preview State */
    .temp-marker.pending .temp-value {
        color: #3b82f6;
    }
/* End Device List Page */

/* Create Rule Page */
.rule-page-wrapper {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.top-bar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rule-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rule-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.condition-card, .action-card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1rem;
    background: #fff;
    position: relative;
}

.card-header {
    background: #f1f4f9;
    padding: 1rem;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.section-title {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.days-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.day-chip {
    padding: 0.25rem 1rem;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.day-chip.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.remove-section {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.remove-section:hover {
    background: #c82333;
}

.add-rule-section {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.add-rule-section:hover {
    background: #2980b9;
}

.action-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.form-section {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.form-section label {
    font-weight: 500;
    color: #2c3e50;
}

.help-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.rule-badge {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.required-field:after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}
/* End Create Rule Page */

/* Device Detail Page */
.device-card {
    background: white;
    padding: 1rem;
    margin: 0 auto;
}

/* Header Section */
.device-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.device-icon-wrapper-detail {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
}

.device-icon-wrapper-detail img {
    max-width: 50px;
}

.device-info {
    flex: 1;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.location-icon {
    display: flex;
    align-items: center;
    color: #94a3b8;
}

.location-separator {
    color: #cbd5e1;
    margin: 0 0.25rem;
}

.home-name-device, .room-name-device {
    font-weight: 500;
    color: #475569;
    font-size: 0.875rem;
}

.device-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.online-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
}

.online-status.online {
    background: #dcfce7;
    color: #15803d;
}

.online-status.offline {
    background: #fee2e2;
    color: #dc2626;
}

/* Main Controls Section */
.controls-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    min-height: 120px;
    align-items: stretch;
}

.power-control-card,
.temp-control-card {
    position: relative;
}

.power-control-card::after,
.temp-control-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.5rem;
    transform: translateY(-50%);
    height: 80%;
    width: 1px;
    background-color: #e5e7eb;
}

.power-btn {
    width: 80px;
    height: 100%;
    border-radius: 12px;
    background: #ef4444;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.power-btn.active {
    background: #22c55e;
}

.temp-control-card {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.current-temp {
    font-size: 2rem;
    font-weight: 700;
}

.set-temp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
 }

 .set-temp-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    width: fit-content;
 }

.temp-input {
    display: none;
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    margin: 0 auto;
}

.mode-controls {
    height: 100%;
}

.mode-buttons {
    display: flex;
    gap: 0.5rem;
    height: 100%;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    height: 100%;
    min-height: 100%
}

.mode-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.mode-btn i {
    font-size: 1.5rem;
}

.mode-btn span {
    font-size: 0.875rem;
}

/* Secondary Controls Section */
.secondary-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Add separator to fan controls */
.fan-controls {
    position: relative;
    padding-right: 1rem;
}

.fan-controls::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 80%;
    width: 1px;
    background-color: #e5e7eb;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .fan-controls::after {
        display: none; /* Hide separator on mobile when stacked */
    }
}

.fan-buttons {
    display: flex;
    gap: 0.5rem;
}

.fan-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.fan-btn.active {
    background: #3b82f6;
    color: white;
}

/* Update fan button icon stack styles */
.fan-btn .icon-stack {
    position: relative;
    height: 24px;
    width: 60px; /* Wider to accommodate overlapping icons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.fan-btn .icon-stack i {
    position: absolute;
    font-size: 1.2rem; /* Consistent icon size */
}

/* Single fan icon (Low speed) */
.fan-btn[data-speed="low"] .icon-stack i {
    position: static; /* Keep single icon centered */
}

/* Two fan icons (Medium speed) */
.fan-btn[data-speed="middle"] .icon-stack i:nth-child(1) {
    right: 16px; /* Move right icon */
}
.fan-btn[data-speed="middle"] .icon-stack i:nth-child(2) {
    left: 14px; /* Move left icon */
}

/* Three fan icons (High speed) */
.fan-btn[data-speed="high"] .icon-stack i:nth-child(1) {
    left: 8px; /* Left icon */
}
.fan-btn[data-speed="high"] .icon-stack i:nth-child(2) {
    left: 50%;
    transform: translateX(-50%); /* Center icon */
}
.fan-btn[data-speed="high"] .icon-stack i:nth-child(3) {
    right: 8px; /* Right icon */
}

/* Auto fan speed */
.fan-btn[data-speed="auto"] .icon-stack {
    width: 24px; /* Smaller width for single icon */
}
.fan-btn[data-speed="auto"] .icon-stack i {
    position: static; /* Center the auto icon */
}

/* Adjust button padding for better proportion */
.fan-btn {
    padding: 1rem 0.75rem; /* More vertical padding */
}

.speed-text {
    font-size: 0.875rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.feature-btn {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.feature-btn.active {
    background: #22c55e;
    color: white;
}

/* Status Section */
.status-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

/* Add this CSS to your stylesheet */
#dynamic-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
}

/* For mobile responsiveness */
@media (max-width: 992px) {
    #dynamic-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    #dynamic-status-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional styling for status items */
#dynamic-status-grid .status-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#dynamic-status-grid .status-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

#dynamic-status-grid .status-value {
    font-size: 1rem;
    font-weight: 600;
}

/* Status value colors */
#dynamic-status-grid .status-value.error {
    color: #dc3545;
}

.status-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.status-value {
    font-weight: 600;
}

.status-value.error {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-controls {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
}
/* End Device Detail Page */

/* Groups Page */
.group-page-wrapper {
    padding: 2rem 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* .group-info-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
} */

/* .group-badge {
    font-size: 0.875rem;
    padding: 0.5em 1em;
} */

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-title {
    color: #344767;
    font-weight: 600;
}

.table th {
    font-weight: 600;
    color: #344767;
}

.action-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 -0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 1000;
}

.device-actions {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: #5e72e4;
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}
/* new */
.group-info-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
}

.group-header {
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.group-meta h4 {
    color: #344767;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.group-meta {
    width: 300px;
}

.group-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-summary {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #495057;
}

.selected-count {
    font-weight: 500;
}

.selected-count span {
    color: #4318FF;
    font-weight: 600;
}

.group-form-section {
    padding-top: 1rem;
}

.form-control-lg {
    height: 48px;
    font-size: 1rem;
    border-radius: 0.5rem;
    border-color: #e9ecef;
    transition: all 0.2s ease;
}

.form-control-lg:focus {
    border-color: #4318FF;
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1);
}

.form-control-lg::placeholder {
    color: #adb5bd;
}

.col-form-label {
    color: #344767;
}

.fw-semibold {
    font-weight: 600;
}
/* End Groups Page */

/* Apply Rules Page */

/* End Apply Rules Page */

/* User Management Page */
.users-header {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.users-title h2 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.users-title p {
    color: #6c757d;
    margin: 0;
}

/* Table Styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.user-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

/* User Info Styles */
.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
}

.user-email {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Badge Styles */
.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Password Field Styles */
.password-field {
    position: relative;
}

.password-field .input-group {
    position: relative;
}

.password-toggle-icon,
.generate-password {
    color: #6c757d;
    transition: color 0.2s ease;
    z-index: 4;
}

.password-toggle-icon:hover,
.generate-password:hover {
    color: #2c3e50;
}

.password-toggle-icon {
    right: 40px;
}

.generate-password {
    right: 10px;
}
.d-flex.gap-2 {
    justify-content: flex-end;
}
/* End User Management Page */

/* Home Assignment Page */
.home-assignment-card {
    transition: box-shadow 0.3s ease;
}

.home-assignment-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}
/*  End Home Assignment Page */

/* Loader */
.loader{height:100%;width:100%}
.loader .l_main{position:absolute;top:50%;left:50%;width:172px;height:128px;margin:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}
@media (max-width:550px){.loader{-webkit-transform:scale(0.75);transform:scale(0.75)}}
@media (max-width:440px){.loader{-webkit-transform:scale(0.5);transform:scale(0.5)}}
.l_square{position:relative}
.l_square:nth-child(1){margin-left:0px}
.l_square:nth-child(2){margin-left:44px}
.l_square:nth-child(3){margin-left:88px}
.l_square:nth-child(4){margin-left:132px}
.l_square span{position:absolute;top:0px;left:20px;height:36px;width:36px;border-radius:2px;background-color:var(--main-theme)}
.l_square span:nth-child(1){top:0px}
.l_square span:nth-child(2){top:44px}
.l_square span:nth-child(3){top:88px}
.l_square:nth-child(1) span{-webkit-animation:animsquare1 2s infinite ease-in;animation:animsquare1 2s infinite ease-in}
.l_square:nth-child(2) span{-webkit-animation:animsquare2 2s infinite ease-in;animation:animsquare2 2s infinite ease-in}
.l_square:nth-child(3) span{-webkit-animation:animsquare3 2s infinite ease-in;animation:animsquare3 2s infinite ease-in}
.l_square:nth-child(4) span{-webkit-animation:animsquare4 2s infinite ease-in;animation:animsquare4 2s infinite ease-in}
.l_square span:nth-child(1){-webkit-animation-delay:0.00s;animation-delay:0.00s}
.l_square span:nth-child(2){-webkit-animation-delay:0.15s;animation-delay:0.15s}
.l_square span:nth-child(3){-webkit-animation-delay:0.30s;animation-delay:0.30s}
@-webkit-keyframes animsquare1{0%,5%,95%,100%{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0px,0px) rotate(0deg)}30%,70%{-webkit-transform:translate(-40px,0px) rotate(-90deg);transform:translate(-40px,0px) rotate(-90deg)}}
@keyframes animsquare1{0%,5%,95%,100%{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0px,0px) rotate(0deg)}30%,70%{-webkit-transform:translate(-40px,0px) rotate(-90deg);transform:translate(-40px,0px) rotate(-90deg)}}
@-webkit-keyframes animsquare2{0%,10%,90%,100%{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0px,0px) rotate(0deg)}35%,65%{-webkit-transform:translate(-40px,0px) rotate(-90deg);transform:translate(-40px,0px) rotate(-90deg)}}
@keyframes animsquare2{0%,10%,90%,100%{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0px,0px) rotate(0deg)}35%,65%{-webkit-transform:translate(-40px,0px) rotate(-90deg);transform:translate(-40px,0px) rotate(-90deg)}}
@-webkit-keyframes animsquare3{0%,15%,85%,100%{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0px,0px) rotate(0deg)}40%,60%{-webkit-transform:translate(-40px,0px) rotate(-90deg);transform:translate(-40px,0px) rotate(-90deg)}}
@keyframes animsquare3{0%,15%,85%,100%{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0px,0px) rotate(0deg)}40%,60%{-webkit-transform:translate(-40px,0px) rotate(-90deg);transform:translate(-40px,0px) rotate(-90deg)}}
@-webkit-keyframes animsquare4{0%,20%,80%,100%{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0px,0px) rotate(0deg)}45%,55%{-webkit-transform:translate(-40px,0px) rotate(-90deg);transform:translate(-40px,0px) rotate(-90deg)}}
@keyframes animsquare4{0%,20%,80%,100%{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0px,0px) rotate(0deg)}45%,55%{-webkit-transform:translate(-40px,0px) rotate(-90deg);transform:translate(-40px,0px) rotate(-90deg)}}

/* End Loader */