 body {
            background: #f5f5f5;
            /*display: flex;*/
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            /*padding: 0px 0px 0px 20px;*/
        }


/* -------------------------
   HEADER (TOP BAR)
------------------------- */
.header-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ddd;
    object-fit: cover;
    cursor: pointer;
}

/*button*/

.btn-custom {
    background-color: #5e2b60 !important;
    color: #fff !important;
}
.btn-custom:hover {
    background-color: #5e2b60 !important;
    color: #fff !important;
}

/* -------------------------
   SIDEBAR (LEFT)
------------------------- */


.sidebar .nav-link {
    color: #000;
    padding: 10px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    /*font-weight: 500;*/
    cursor: pointer;
}

.sidebar .nav-link i {
    margin-right: 12px;
    font-size: 18px;
}

/* Only text color changes when active */
.sidebar .nav-link.active {
    color: #5e2b60 !important;
    background: #cbbebe6b !important;
    font-weight: 600;
}

.sidebar .nav-link:hover {
    background: #eee;
}

/* CARDS */
.card-custom {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: none;
    background: #fff;
}

.chart-area {
    height: 250px;
    background: #f3e8f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #744276;
}

/* TOP BAR (Only mobile) */
.topbar {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #5e2b60;
  color: white;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
  margin-right: 12px;
}

/* MOBILE TOPBAR */
.topbar {
  background: #5e2b60;
  color: #fff;
  padding: 12px 20px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
}

/* SIDEBAR */
.sidebar {
  min-width: 295px;
  background: #fff;
  min-height: 100vh;
  border-right: 1px solid #eee;
  padding: 20px;
  transition: left 0.3s ease;
}

.sidebar .logo {
  font-weight: 700;
  font-size: 20px;
  color: #5e2b60;
  margin-bottom: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-link:hover {
  background: #f3e8fa;
  color: #5e2b60;
}

.nav-link.active {
  background: #e8d8f1;
  color: #5e2b60 !important;
}

/* SUBMENU */
.submenu-header {
  cursor: pointer !important;
}

.submenu {
  list-style: none;
  padding-left: 38px;
  margin-top: 5px;
}

.submenu li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #444;
}

.submenu li a:hover,
.submenu li a.active {
  color: #5e2b60;
  font-weight: 600;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    z-index: 1000;
  }
  .sidebar.open {
    left: 0;
  }
  .content-area {
    padding-left: 0;
  }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  .login-box {
     width: 350px!important;
     
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%); /* hide */
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0); /* show */
  }

  .content-area {
    padding-top: 15px;
  }
}
/*login pae */



.login-box {
    background: #fff;
    /*width: 100%;*/
    width: 450px;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-align: center;
}

.logo {
    width: 85px;
    height: auto;
    margin-bottom: 20px;
}

.title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
}

.input-group label {
    text-align: left;
    width: 100%;
    font-size: 14px;
    margin-bottom: 5px;
    color: #444;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    /*margin-bottom: 18px;*/
    font-size: 15px;
}

.input-group{
   margin-bottom: 18px;   
}

.btn-login {
    width: 100%;
    background: #5e2b60;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    transition: 0.3s;
}

.btn-login:hover {
    background: #4b224d;
}

.footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.footer-text a {
    text-decoration: none;
    font-weight: bold;
    color: #5e2b60;
}
.error-form-text {
    width: 100%;
    text-align: left;
    color: red;
    font-size: 18px;
    font-style: italic;
}

/*loader css*/

  #loader {
      position: fixed;
      inset: 0; /* top:0; right:0; bottom:0; left:0 */
      background: rgb(255 255 255 / 67%);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 400ms ease, visibility 400ms ease;
      visibility: visible;
      opacity: 1;
    }

    /* Hidden state after page loads */
    #loader.fade-out {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    /* Spinner */
    .spinner {
      width: 78px;
      height: 78px;
      border-radius: 50%;
      border: 8px solid rgba(0,0,0,0.08);
      border-top-color: #5e2b60; /* blue top */
      animation: spin 1s linear infinite;
      box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* optional small text under spinner */
    .loader-text {
      margin-top: 14px;
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      font-size: 14px;
      color: #333;
      text-align: center;
    }