@import url("https://fonts.googleapis.com/css2?family=Saira:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Saira", sans-serif;
}

/* Left panel */

.left-panel {
  background: #bdbdbd;
}

.right-panel {
  background-color: white;
}

/* Login box */

.login-box {
  width: 530px;
}

/* Toggle Buttons */

.login-toggle {
  display: flex;
  background: #ddd;
  padding: 6px;
  border-radius: 10px;
}

.login-toggle .btn {
  flex: 1;
  border: none;
  font-weight: 600;
}

.company-btn {
  background: #d4178f;
  color: white;
}

.student-btn {
  background: #a8a8a8;
  color: white;
}

.seeker-btn {
  background: #a8a8a8;
  color: white;
}

.login-toggle .btn.active {
  background: #d4178f;
  color: white;
}

/* Login Button */

.login-btn {
  background: #d4178f;
  color: white;
  padding: 10px;
  font-weight: 600;
  border: none;
}

.login-btn:hover {
  background: #d4178f;
  color: #ffff;
}

/* Inputs */

.form-control {
  padding: 8px;
  border-radius: 4px;
}

/* Checkbox */

.form-check-input:checked {
  background-color: #d4178f;
  border-color: #d4178f;
}

.form-check-input:focus {
  border-color: #d4178f;
  box-shadow: 0 0 0 0.2rem rgba(239, 61, 61, 0.25);
}

/* Sign up */

.signup-text {
  color: #d4178f;
  text-decoration: none;
}

.signup-text a {
  color: #d4178f;
  text-decoration: none;
}

/*=========================================
Responsive Design
=========================================*/

/* Large Devices */
@media (max-width: 1200px) {
  .login-box {
    width: 420px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .login-box {
    width: 380px;
  }

  .left-panel {
    min-height: 250px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
    padding: 30px 20px;
  }

  .login-box {
    width: 100%;
    max-width: 420px;
    margin: auto;
  }

  .login-toggle {
    padding: 5px;
  }

  .login-toggle .btn {
    font-size: 14px;
    padding: 10px;
  }

  .login-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .form-control {
    padding: 10px;
    font-size: 14px;
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  .right-panel {
    padding: 25px 15px;
  }

  .login-box {
    width: 100%;
  }

  .login-toggle {
    border-radius: 8px;
  }

  .login-toggle .btn {
    font-size: 13px;
    padding: 9px;
  }

  .login-btn {
    padding: 11px;
    font-size: 15px;
  }

  .form-control {
    font-size: 13px;
    padding: 9px;
  }

  .signup-text {
    font-size: 14px;
    text-align: center;
  }
}

/* Extra Small Devices */
@media (max-width: 400px) {
  .right-panel {
    padding: 20px 12px;
  }

  .login-box {
    width: 100%;
  }

  .login-toggle .btn {
    font-size: 12px;
    padding: 8px;
  }

  .login-btn {
    padding: 10px;
    font-size: 14px;
  }

  .form-control {
    font-size: 12px;
    padding: 8px;
  }

  .signup-text {
    font-size: 13px;
  }
}

/* ------------------------------------------------------------------------- */

/* Navbar */

.logo {
  font-weight: 700;
}

.navbar {
  background-color: #f2f2f2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* User Wrapper */

.user-wrapper {
  position: relative;
}

/* Profile Dropdown */

.profile-menu {
  position: absolute;
  right: 0;
  top: 70px;
  width: 230px;
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  overflow: hidden;
  z-index: 99;
}

/* Menu Item */

.menu-item {
  padding: 18px 20px;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px solid #d6d6d6;
  display: block;
  width: 100%;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #e9e9e9;
}

.user-box {
  background: #fff;
  padding: 6px 15px;
  border-radius: 25px;
  cursor: pointer;
}

.user-img {
  width: 35px;
  height: 35px;
  background: #cfd3d7;
  border-radius: 50%;
  margin-right: 10px;
}

/* Sidebar */

.sidebar {
  width: 230px;
  background: #f2f2f2;
  height: 88vh;
  padding: 20px 0;
  border-right: 1px solid #eee;
  position: fixed;
  top: 78px;
  left: 0;
  z-index: 999;
  overflow: auto;
}

.menu {
  display: block;
  padding: 12px 25px;
  color: #444;
  text-decoration: none;
  font-size: 15px;
}

.menu img {
  margin-right: 10px;
}

.menu:hover {
  background: #f4f5f7;
}

.menu.active img {
  filter: brightness(0) invert(1);
}

.menu.active {
  background: #d4178f;
  color: white;
  border-radius: 8px;
  margin: 0 10px;
}

.main-content {
  flex: 1;
  padding: 30px;
  margin-left: 230px;
}

.badge-role {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  margin-left: 6px;
  font-weight: 600;
}

.badge-seller {
  background: #1890ff;
  color: #fff;
}

#userBadgeBox {
  display: flex;
  align-items: center;
}

/* Badge */
.badge-role {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Variants */
.badge-seller {
  background: #1890ff;
  color: white;
}

.badge-buyer {
  background: #28a745;
  color: white;
}

.badge-both {
  background: #6f42c1;
  color: white;
}

.selected-values {
  margin-bottom: 6px;
  min-height: 28px;
}

.selected-values .badge {
  font-size: 12px;
  padding: 5px 8px;
}

.placeholder {
  color: #aaa;
  font-size: 13px;
}

.multi-select {
  position: relative; /* Ensures the dropdown anchors to the input box */
}

.options-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 9999; /* Forces it to sit above ALL other fields and buttons */
  max-height: 250px; /* Limits the height */
  overflow-y: auto; /* Makes it scrollable */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none; /* Keep your existing display: none */
}

/* Optional: Make the labels look cleaner inside the scroll box */
.options-box label {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  margin: 0;
}

.options-box label:hover {
  background-color: #f1f1f1;
}

.btn-outline-info:hover {
  color: white !important;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:active {
  background-color: #d4178f !important;
  border-color: #d4178f !important;
}

.btn-outline-danger {
  color: #d4178f !important;
  border-color: #d4178f !important;
}

.btn-outline-danger:hover {
  background-color: #d4178f !important;
  border-color: #d4178f !important;
  color: white !important;
}

.disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
}

/*=========================================
Responsive Design
=========================================*/

/* Large Devices */

@media (max-width: 1200px) {
  .main-content {
    padding: 25px;
  }
}

/* Tablets */

@media (max-width: 992px) {
  /* Navbar */

  .navbar {
    padding: 10px 15px;
  }

  .user-box {
    padding: 6px 12px;
  }

  .user-img {
    width: 32px;
    height: 32px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #f2f2f2;
    transition: 0.3s;
    z-index: 1055;
    overflow-y: auto;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1050;
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .profile-menu {
    width: 210px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  /* Navbar */

  .navbar {
    padding: 10px 12px;
  }

  /* User Box */
  .user-box {
    padding: 4px 8px;
    border-radius: 20px;
  }

  .user-img {
    width: 32px;
    height: 32px;
    margin-right: 0;
  }

  .user-box div:last-child {
    display: none; /* Hide username & role */
  }

  .profile-menu {
    width: 200px;
    top: 55px;
    right: 0;
  }

  .logo {
    font-size: 20px;
  }

  /* Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #f2f2f2;
    transition: 0.35s ease;
    z-index: 1055;
    overflow-y: auto;
  }

  .sidebar.show {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px 15px;
  }

  /* User */

  .user-box {
    padding: 5px 10px;
  }

  .user-box span {
    display: none;
  }

  /* .profile-menu{

        width:220px;
        top:60px;

    } */

  .menu {
    padding: 14px 20px;
  }

  .badge-role {
    font-size: 11px;
  }
}

/* Small Mobile */

@media (max-width: 576px) {
  .navbar {
    padding: 8px 10px;
  }

  .user-box {
    padding: 3px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .user-img {
    width: 32px;
    height: 32px;
    margin: 0;
  }

  .user-box div:last-child {
    display: none;
  }

  #userBadgeBox {
    display: none;
  }

  .profile-menu {
    width: 180px;
    top: 50px;
    right: 0;
  }

  .logo {
    font-size: 18px;
  }

  .main-content {
    padding: 15px;
  }
  /* 
    .profile-menu{

        width:100%;
        right:0;

    } */

  .menu-item {
    font-size: 15px;
    padding: 15px;
  }

  .selected-values {
    min-height: 36px;
  }

  .selected-values .badge {
    margin-bottom: 6px;
  }

  .options-box {
    max-height: 180px;
  }

  .user-img {
    width: 30px;
    height: 30px;
    margin-right: 0;
  }

  .filter-btn {
    width: auto;
    margin: 0;
  }
}

/* Extra Small */

@media (max-width: 400px) {
  .main-content {
    padding: 12px;
  }

  .menu {
    font-size: 14px;
    padding: 12px 16px;
  }

  .menu img {
    width: 18px;
  }

  .badge-role {
    font-size: 10px;
    padding: 4px 8px;
  }

  .menu-item {
    font-size: 14px;
  }
}
