@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  color: #141b34;
}

/* Sidebar */

/* Sidebar Styles */

.sidebar {
  width: 300px;
  background-color: #f5f5f5;
  height: 100vh;
  position: fixed;
  z-index: 998;
  top: 0;
  left: 0;
  padding: 16px;
  padding-top: 20px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  box-shadow: 4px 4px 19px 0px #0000000d;
  transition: all 0.3s ease;
}

.sidebar-header {
  display: flex;
  justify-content: space-around;
}

.sidebar-logo {
  width: 55%;
}

.sidebar-menu {
  list-style: none;
  margin-top: 50px;
  padding: 0;
}

.sidebar-menu a {
  text-decoration: none;
  color: inherit;
}

.sidebar-menu li {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.sidebar-menu li:hover,
.sidebar-menu li.active {
  background-color: #06f9ea33;
  color: #007272 !important;
}

.sidebar-logout {
  position: absolute;
  bottom: 20px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8.5px;
  cursor: pointer;
}

/* Sidebar closed styles */

.sidebar.closed {
  width: 80px;
  box-shadow: none;
}

.sidebar.closed .sidebar-logo {
  display: none;
}

.sidebar.closed .sidebar-menu li {
  justify-content: center;
}

.sidebar.closed .sidebar-menu li span {
  display: none;
}

.sidebar.closed .sidebar-logout span {
  display: none;
}

/* Main Content Styles */

.main-content {
  margin-left: 300px;
  background-color: #fefefe;
  min-height: 100vh;
  color: black;
  transition: all 0.3s ease;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px;
  background-color: #f5f5f5;
}

.header-text h1 {
  font-size: 32px;
  font-weight: 600;
  color: #007272;
}

.content {
  padding: 32px;
}

.content h2 {
  font-size: 24px;
  font-weight: 600;
}

.primary-color {
  color: #080757 !important;
}

/* Main Content Closed */

.main-content.closed {
  margin-left: 80px;
}

/* Buttons */

.primary-button {
  background-color: #007272;
  border: 1px solid #007272;
  width: max-content;
  padding: 12px 16px;
  border-radius: 6px;
  color: white;
  border: none;
}

.primary-button-outline {
  background-color: white;
  width: max-content;
  padding: 12px 16px;
  border-radius: 6px;
  color: #007272;
  border: 1px solid #007272;
}

.secondary-button {
  background-color: #dcdcdce5;
  border: 1px solid #dcdcdce5;
  width: max-content;
  padding: 12px 16px;
  border-radius: 6px;
  color: #323232;
  border: none;
}

.filter-button {
  width: max-content;
  background-color: white;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #c8c8c8;
}

/* Search Box */

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f5f5f5;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: #f8f8f8 !important;
}

.search-box img {
  width: 16px;
  height: 16px;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 200px;
  background-color: #f8f8f8 !important;
}

/* Tables */

.primary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.primary-table thead {
  background-color: #f4f7fcbf;
  backdrop-filter: blur(8px);
}

.primary-table th,
.primary-table td {
  padding: 12px;
  text-align: left;
}

.primary-table th {
  font-size: 14px;
  background-color: #b2b2b233;
  color: #534d59;
  font-weight: 600;
}

.primary-table-header th {
  position: relative;
  padding-right: 24px; /* space for icons */
}

.sort-icons {
  display: inline-flex;
  flex-direction: column;
  margin-left: 6px;
  cursor: pointer;
  font-size: 12px; /* smaller than text */
  vertical-align: middle;
}

.sort-icons i {
  line-height: 10px;
}

.primary-table-body tr {
  border-bottom: 1px solid #e0e0e0;
}

.primary-table-body tr:hover {
  background-color: #f9f9f9;
}

/* Pagination */

#pagination-container {
  padding: 10px;
  background-color: #f4f7fcbf;
  backdrop-filter: blur(8px);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 12px;
  color: #000000;
}

.prev-page,
.next-page {
  padding: 5px 10px;
  border: 1px solid #e5e5e5;
  background-color: #fff !important;
  border-radius: 5px;
  width: min-content;
}

/* View Modal */

.view-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  background-color: white;
}

.view-modal-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: white;
  border-bottom: 1px solid #dadada;
}

.view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.view-grid p span {
  color: #717680;
}

/* forms */

/* Primary Forms */

.primary-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.primary-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.primary-form-group label {
  color: #5f6377;
  font-weight: 500;
}

.primary-form-group input,
.primary-form-group select,
.primary-form-group textarea {
  padding: 12px;
  border: 1px solid #f1f1f3;
  background-color: white !important;
  font-size: 16px;
  transition: 0.3s;
  border-radius: 6px;
}

.primary-form-group input:disabled,
.primary-form-group select:disabled,
.primary-form-group textarea:disabled {
  background-color: #f4f4f4 !important;
}

.primary-form-button-group {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  justify-content: flex-end;
  grid-column: span 2;
}

.required-star::after {
  content: " *";
  color: red;
}

/* Icons */

.bi-arrow-left,
.bi-x-lg,
.bi-x,
.bi-chevron-down,
.bi-chevron-up {
  cursor: pointer;
}

/* Status badges */

.status-badge {
  padding: 8px 16px;
  margin: 0;
  border-radius: 54px;
  display: inline-flex;
  align-items: center;
  gap: 8px; /* space between dot & text */
  font-size: 14px;
}

.status-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* For Quotation Sent */
.status-badge.quotationsent {
  background-color: #e9ffef;
  color: #409261;
}

.status-badge.quotationsent::before {
  background-color: #409261;
}

/* New */

.status-badge.new {
  background-color: #e1eeff;
  color: #0088ff;
}

.status-badge.new::before {
  background-color: #0088ff;
}

/* Requirement */

.status-badge.requirement {
  background-color: #e4e4e4;
  color: #3f3748;
}

.status-badge.requirement::before {
  background-color: #3f3748;
}

/* Regret */

.status-badge.regret {
  background-color: #ffdfdf;
  color: #d1070b;
}

.status-badge.regret::before {
  background-color: #d1070b;
}

/* Inactive */

.status-badge.inactive {
  background-color: #fff1ac;
  color: #e18300;
}

.status-badge.inactive::before {
  background-color: #e18300;
}

/* Active */

.status-badge.active {
  background-color: #e9ffef;
  color: #409261;
}

.status-badge.active::before {
  background-color: #409261;
}

/* Draft */

.status-badge.draft {
  background-color: #fff1ac;
  color: #e18300;
}

.status-badge.draft::before {
  background-color: #e18300;
}

/* Confirmed */

.status-badge.confirmed {
  background-color: #e9ffef;
  color: #409261;
}

.status-badge.confirmed::before {
  background-color: #409261;
}

.status-badge.pending {
  background-color: #fff9e6;
  color: #c79b2e;
}

.status-badge.pending::before {
  background-color: #c79b2e;
}

.status-badge.budgetary {
  background-color: #e8f2ff;
  color: #2f6fb1;
}

.status-badge.budgetary::before {
  background-color: #2f6fb1;
}

.status-badge.others {
  background-color: #f4f4f4;
  color: #6b6b6b;
}

.status-badge.others::before {
  background-color: #6b6b6b;
}

.status-badge.orderreceived {
  background-color: #f3eaff;
  color: #8b37ff;
}

.status-badge.orderreceived::before {
  background-color: #8b37ff;
}

.status-badge.lost {
  background-color: #f7efe8; /* Light brown background */
  color: #8b4513; /* Dark brown text */
}

.status-badge.lost::before {
  background-color: #8b4513; /* Brown dot */
}

/* Logout Modal */

.logout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  width: 500px;
  border: 1px solid #0000001a;
  z-index: 1000;
}

.logout-modal .bi-x-circle {
  color: #000;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}

.logout-modal .bi-lock-fill {
  background-color: #f0f0f0;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-modal-body {
  display: flex;
  align-items: start;
  gap: 24px;
}

.logout-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
}

.logout-modal-text h2 {
  font-weight: 700;
}

.logout-modal-actions button {
  width: 30% !important;
}

/* Misc overrides */

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #f1f1f3;
  border-radius: 4px;
  padding: 9px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  top: 84%;
}

.select2-container .select2-selection--single {
  height: auto;
}
