/*!
Version: 3.0.0 (DeskApp Fixed Layout & Sidebar)
Author: Ankit Hingarajiya - DeskApp (Patched)
*/
@charset "utf-8";

*, :after, :before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    -webkit-font-smoothing: antialiased;
    width: 100%;
    height: 100%;
    overflow-x: hidden !important;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    min-height: 100%;
    color: #031e23;
    background: #ecf0f4 !important;
}

/* Force Hide Preloader */
.pre-loader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Header Fix */
.header {
    position: fixed !important;
    height: 65px !important;
    width: calc(100% - 270px) !important;
    background: #fff !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 1020 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.05) !important;
}

/* Sidebar Container Fix */
.left-side-bar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 270px !important;
    height: 100vh !important;
    z-index: 1030 !important;
    background: #0b132b !important;
    overflow-y: auto !important;
}

/* Sidebar Logo Box (Top Empty Space Fix) */
.brand-logo {
    width: 270px !important;
    height: 65px !important;
    background: #070d1e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
}

.brand-logo img, .header-site-logo {
    max-height: 42px !important;
    max-width: 180px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Sidebar Navigation Styling */
.sidebar-menu {
    padding: 10px 0 20px !important;
}

.sidebar-menu .dropdown-toggle {
    display: block !important;
    padding: 14px 15px 14px 55px !important;
    font-size: 14px !important;
    color: #fff !important;
    font-weight: 400 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.sidebar-menu .dropdown-toggle:hover, 
.sidebar-menu .dropdown.menu-open > .dropdown-toggle,
.sidebar-menu .dropdown.show > .dropdown-toggle {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}

.sidebar-menu .dropdown-toggle .micon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    color: #fff !important;
}

/* Submenu Display Rules */
.sidebar-menu ul.submenu {
    display: none;
    padding-left: 15px !important;
    background: rgba(0, 0, 0, 0.25) !important;
}

.sidebar-menu li.dropdown.menu-open > ul.submenu,
.sidebar-menu li.dropdown.show > ul.submenu {
    display: block !important;
}

.sidebar-menu .submenu li a {
    display: block !important;
    padding: 10px 15px 10px 45px !important;
    font-size: 13px !important;
    color: #cbd5e1 !important;
    transition: all 0.2s ease !important;
}

.sidebar-menu .submenu li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Dashboard Content Offset Fix */
.main-container {
    padding-top: 65px !important;
    padding-left: 270px !important;
    padding-right: 20px !important;
    min-height: 100vh !important;
    transition: all 0.3s ease-in-out !important;
}

.pd-ltr-20 {
    padding: 15px 0 0 0 !important;
}

.card-box {
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.05) !important;
}

.service-card-img {
    height: 140px !important;
    width: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 1200px) {
    .header {
        width: 100% !important;
        padding-left: 15px !important;
    }
    
    .left-side-bar {
        left: -270px !important;
    }
    
    .left-side-bar.open {
        left: 0 !important;
    }
    
    .main-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 65px !important;
    }
}