 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;
}

/* -------------------------
   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;
}

.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 {
  width: 320px;
  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) {
  .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;
}