/* ================= LOGIN PAGE ================= */

.login-wrapper {
  display: flex;
  height: 100vh;
}

/* LEFT SIDE */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #6C63FF, #4F46E5);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.login-left h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.login-left p {
  font-size: 16px;
  opacity: 0.9;
}

/* RIGHT SIDE */
.login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f7fb;
}

/* LOGIN BOX */
.login-box {
  width: 350px;
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.login-box h2 {
  margin-bottom: 20px;
  text-align: center;
}

/* INPUT GROUP */
.input-group {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
}

.input-group i {
  margin-right: 10px;
  color: #666;
}

.input-group input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
}

/* BUTTON */
.btn-login {
  width: 100%;
  padding: 10px;
  background: #6C63FF;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover {
  background: #4F46E5;
}

/* ERROR */
.error-msg {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {

  .login-left {
    display: none;
  }

  .login-wrapper {
    justify-content: center;
    align-items: center;
  }

}




/* LAYOUT */
.admin-wrapper {
  display: flex;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #6C63FF, #4F46E5);
  /* background: linear-gradient(180deg, #ee5656, #f14e4e); */
  color: #fff;
  position: fixed;
  transition: 0.3s;
  padding: 20px;
  /* border-radius: 0 20px 20px 0; */
}

/* COLLAPSED */
.sidebar.collapsed {
  width: 80px;
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* MENU */
.menu {
  list-style: none;
}

.menu li {
  margin-bottom: 12px;
}

.menu a {
  display: flex;
  align-items: center;
  color: #e9d5ff;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
}

.menu a:hover,
.menu a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.menu i {
  font-size: 18px;
  margin-right: 12px;
}

/* HIDE TEXT WHEN COLLAPSED */
.sidebar.collapsed span {
  display: none;
}

/* MAIN */
.main {
  margin-left: 260px;
  width: 100%;
  transition: 0.3s;
}

.sidebar.collapsed ~ .main {
  margin-left: 80px;
}

/* SUBMENU */
.has-submenu .submenu {
  display: none;
  padding-left: 20px;
  list-style: none;
}

.has-submenu.open .submenu {
  display: block;
}

/* submenu links */
.submenu li a {
  font-size: 14px;
  /*padding: 6px 0;*/
  display: block;
  color: #e9d5ff;
  text-decoration: none;
  padding: 12px 12px 12px 20px;
  border-radius: 12px;
}

.submenu li a:hover {
  /*color: var(--primary);*/
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* arrow rotate */
.has-submenu.open i.bi-chevron-down {
  transform: rotate(180deg);
  transition: 0.3s;
}

/* HIDE SUBMENU WHEN SIDEBAR COLLAPSED */
.sidebar.collapsed .submenu {
  display: none !important;
}

/* HIDE SUBMENU ARROW WHEN COLLAPSED */
.sidebar.collapsed .bi-chevron-down {
  display: none;
}



/* TOPBAR */
.topbar {
  background: #fff;
  padding: 15px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LEFT */
.left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* SEARCH */
/* .search-box {
  background: #f3f4f6;
  padding: 8px 15px;
  border-radius: 30px;
  display: flex;
  align-items: center;
}

.search-box input {
  margin-left: 10px;
  border: none;
  outline: none;
  background: transparent;
} */

/* SEARCH BOX */
.search-box {
  background: #f3f4f6;
  padding: 6px 15px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 350px; /* default */
  transition: 0.3s;
}

.search-box input {
  margin-left: 10px;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
}

/* 💻 DESKTOP (large screens) */
@media (min-width: 1200px) {
  .search-box {
    max-width: 450px;
  }
}

/* 💻 LAPTOP */
@media (max-width: 1199px) and (min-width: 992px) {
  .search-box {
    max-width: 350px;
  }
}

/* 📱 TABLET */
@media (max-width: 991px) and (min-width: 768px) {
  .search-box {
    max-width: 280px;
  }
}

/* 📱 MOBILE */
@media (max-width: 767px) {
  .search-box {
    max-width: 200px;
    padding: 6px 10px;
  }

  .search-box input {
    font-size: 13px;
  }
}

.search-box:focus-within {
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}






/* PROFILE */
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #6C63FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.menu-toggle {
  font-size: 24px;   /* 🔥 perfect size */
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
}

/* MOBILE */
@media (max-width: 992px) {

  .sidebar {
    left: -260px;
  }

  .sidebar.active {
    left: 0;
  }

  .main {
    margin-left: 0;
  }
}

.content{
  padding: 30px;
}








/* ================= DASHBOARD ================= */

/* PAGE HEADER */
.page-header {
  margin-bottom: 25px;
}

.page-header h2 {
  font-size: 24px;
  font-weight: 600;
}

.page-header p {
  color: #777;
  font-size: 14px;
}

/* CARDS */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

/* ICON */
.card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* TEXT */
.dashboard-card h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.dashboard-card p {
  color: #777;
  font-size: 14px;
}

/* SECTION */
.dashboard-section {
  margin-top: 20px;
}

.dashboard-section h3 {
  margin-bottom: 15px;
}

/* TABLE */
.table-box {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table-box table {
  width: 100%;
  border-collapse: collapse;
}

.table-box th,
.table-box td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table-box th {
  font-weight: 600;
}







.btn-add {
  background: var(--primary);
  color: white;
  padding: 8px 12px;
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 6px;
  text-decoration: none;
}

form input, form select {
  display:block;
  width:300px;
  /* margin-bottom:10px; */
  padding:8px;
}


/* FORM CARD */
.form-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* INPUTS */
.form-card input,
.form-card select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: 100%;
}

/* FILE */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
}

/* BUTTON */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-secondary {
  /* background: var(--primary);
  color: white; */
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}


/* PROFILE FORM FULL WIDTH */
.profile-form {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  width: 100%;
}

/* LABEL */
.profile-form label {
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
  font-weight: 500;
}

/* INPUT FIX */
.profile-form .form-control {
  border-radius: 8px;
  padding: 10px;
}









/* PROFILE VIEW CARD */
.profile-view-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* IMAGE */
/*.profile-img {*/
/*  width: 100%;*/
/*  max-width: 200px;*/
/*  border-radius: 12px;*/
/*  object-fit: cover;*/
/*}*/
.profile-img {
  width: 100%;
  max-width: 280px;
  height: 360px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
}

/* INFO */
.profile-info p {
  margin-bottom: 10px;
  font-size: 15px;
}

/* DESCRIPTION */
.profile-description {
  margin-top: 20px;
}

.profile-description h4 {
  margin-bottom: 10px;
}


/* FILTER BOX */
.filter-box {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.select2-container .select2-selection--single {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 5px;
}




/* FIX TABLE OVERFLOW */
.table-box {
  overflow-x: auto;
}

/* PREVENT TEXT BREAKING */
.table td, .table th {
  white-space: nowrap;
  vertical-align: middle;
}








.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Tablet */
@media (max-width: 992px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}





/* THUMBNAILS CONTAINER */
.thumb-images {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* SMALL IMAGES */
.thumb-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

/* ACTIVE IMAGE */
.thumb-img.active {
  border: 2px solid var(--primary);
}













.profile-table-img{
    width:60px;
    height:70px;
    object-fit:cover;
    object-position:top center;
    border-radius:8px;
}


