/*=============================
    00. Preloader
===============================*/
#hrupreloader {
  background-color:#fff;
  height: 100%;
  width: 100%;
  position: fixed;
  margin-top: 0px;
  top: 0px;
  z-index: 9999;
}

#hrupreloader .loader .loader-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 3px solid #8fe5ff;
  border-radius: 50%;
}

#hrupreloader .loader .loader-container::before {
  position: absolute;
  content: "";
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-top: 3px solid #004fb6;
  border-radius: 50%;
  animation: loaderspin 1.8s infinite ease-in-out;
  -webkit-animation: loaderspin 1.8s infinite ease-in-out;
}

#hrupreloader .loader .loader-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  text-align: center;
}

#hrupreloader .loader .loader-icon img {
  animation: loaderpulse alternate 900ms infinite;
  width: 40px;
}

@keyframes loaderspin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes loaderpulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

/*Ayis CSS END*/



/********** Template CSS **********/
:root {
    --primary: #009CFF;
    --light: #F3F6F9;
    --dark: #191C24;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}

/* Custom Styles */
:root {
    --hru-primary: #2c5aa0;
    --hru-secondary: #f39c12;
    --hru-light: #f8f9fa;
    --hru-dark: #1a365d;
    --hru-hover: #1e4a73;
    --hru-yellow-light: #fff3cd;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    display: none;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* Sidebar Header */
.sidebar-header {
    background: linear-gradient(135deg, var(--hru-primary), var(--hru-dark));
    color: white;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: none;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logo-section img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border: 3px solid var(--hru-secondary);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #495057 !important;
    padding: 0.75rem 1rem;
    margin: 0.2rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    background: none;
}

.sidebar .nav-link:hover {
    background: var(--hru-hover);
    color: white !important;
    transform: translateX(3px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--hru-hover), var(--hru-primary));
    color: white !important;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

/* Dropdown Styles */
.sidebar .dropdown-menu {
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
}

.sidebar .dropdown.show .dropdown-menu {
    display: block;
}

.dropdown-menu-custom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
    padding-left: 1rem;
    border-left: 2px solid #dee2e6;
}

/* When open */
.custom-dropdown.open .dropdown-menu-custom {
    max-height: none;
}

.custom-dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.sidebar .dropdown-item {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0.1rem 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.sidebar .dropdown-item:hover {
    background: var(--hru-yellow-light);
    color: var(--hru-hover);
    transform: translateX(3px);
}

.sidebar .dropdown-item.active {
    background: linear-gradient(135deg, var(--hru-hover), var(--hru-primary));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Multi-level dropdown */
.sidebar .dropdown-submenu {
    position: relative;
}

.sidebar .dropdown-submenu .dropdown-menu {
    margin-left: 1rem;
    border-left: 2px solid #e9ecef;
}

.sidebar .dropdown-submenu .dropdown-item {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

/* Multi-level dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    position: static;
    display: none;
    margin-left: 1rem;
    border-left: 2px solid #e9ecef;
    background: white;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.dropdown-submenu.open .dropdown-menu {
    display: block;
}

.dropdown-submenu .dropdown-item {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

/* Reports Section Styling */
.reports-section {
    margin: 0.5rem;

    /* Remove scroll behavior */
    max-height: none;
    overflow-y: visible;
}

.reports-section h6 {
    color: var(--hru-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1rem 0 0.5rem 0;
    padding: 0 0.5rem;
}

.reports-section .dropdown-item {
    padding-left: 1rem;
    white-space: normal;
    /* allow wrapping */
    word-break: break-word;
    /* break long words if needed */
    line-height: 1.4;
    /* optional: better line spacing */
}

/* Main Content */
.content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s ease;
}

.content.expanded {
    margin-left: 0;
}

/* Top Navbar */
.top-navbar {
    background: var(--hru-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sidebar-toggler {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hru-secondary);
}

/* User Section in Navbar */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.user-avatar-navbar {
    width: 40px;
    height: 40px;
    background: var(--hru-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.user-info-navbar h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-info-navbar small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.navbar-user .dropdown-toggle {
    color: white;
    text-decoration: none;
    border: none;
    background: none;
}

.navbar-user .dropdown-toggle:hover {
    color: var(--hru-secondary);
}

.navbar-user .dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    right: 0;
    left: auto;
}

.navbar-user .dropdown-item:hover {
    background: var(--hru-yellow-light);
    color: var(--hru-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        margin-left: -var(--sidebar-width);
    }

    .sidebar.show {
        margin-left: 0;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .top-navbar {
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .user-section {
        gap: 0.5rem;
    }

    .user-info-navbar {
        display: none;
    }
}

/* Footer */
footer {
    background: var(--hru-primary);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--hru-primary), var(--hru-secondary));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-subtitle a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid var(--hru-secondary);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.page-subtitle a:hover {
    border-bottom-color: white;
}

.dropdown-toggle::after {
    display: none !important;
}