/* ================================================
   IMPORTS
================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');

/* ================================================
   VARIABLES
================================================ */
:root {
  /* Font */
  --font-family: "Inter", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-exsm: 12px;
  --font-size-lg: 18px;
  --line-height: 1.4;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Colors */
  --color-body-bg: #f1f1f1;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-heading: #303030;
  --color-link: #303030;

  /* Dark Mode / Header */
  --color-header-bg: #1c1c1c;
  --color-header-surface: #303030;
  --color-header-text: #e3e3e3;
  --color-header-accent: #4a4a4a;

  /* Primary */
  --color-primary: #303030;
  --color-primary-dark: #1c1c1c;
  --color-hover: #f3f4f6;

  /* Status Colors */
  --status-paid-bg: rgba(0, 0, 0, 0.06);
  --status-paid-text: rgb(97, 97, 97);
  --status-unfulfilled-bg: rgb(255, 235, 120);
  --status-unfulfilled-text: rgb(79, 71, 0);

  /* Tags */
  --tag-bg: #e3e3e3;
  --tag-text: #303030;

  /* Misc */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ================================================
   RESET & BASE
================================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height);
  background: var(--color-body-bg);
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--color-heading);
}

p {
  margin: 0;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

a {
  text-decoration: none;
  color: var(--color-link);
  transition: all 0.3s ease-in-out;
}

/* ================================================
   DASHBOARD HEADER
================================================ */
.dashbr-topbar {
  background-color: var(--color-header-bg);
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 2;
  top: 0;
  left: 0;
}

.header-inr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
}

.header-logo a {
  display: inline-block;
  color: #ffffff;
}

.header-center {
  width: calc(100% - 480px);
  max-width: 500px;
}

.header-searchbar {
  position: relative;
}

.header-searchbar input[type="text"] {
  width: 100%;
  display: block;
  padding: 10px 15px 10px 45px;
  border-radius: var(--radius-md);
  border: none;
  outline: none;
  font-size: var(--font-size-sm);
  background-color: var(--color-header-surface);
  color: var(--color-header-text);
}

.header-searchbar .fa.fa-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
  color: var(--color-header-text);
}

.ls-topbar>ul>li>ul {
  padding-left: 10px;
}

.ls-topbar>ul>li>ul>li>a {
  gap: 3px;
}

.header-rsinr {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  justify-content: flex-end;
}

.header-noti {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-header-surface);
  cursor: pointer;
  color: var(--color-header-text);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 7px;
  background-color: var(--color-header-surface);
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  cursor: pointer;
  color: var(--color-header-text);
}

.header-profile i.fa.fa-user {
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-header-accent);
  border-radius: 50%;
}

.mob-menu {
  display: none;
}

/* ================================================
   MAIN BANNER LAYOUT
================================================ */
.dbbanner-section {
  margin-top: 62px;
  height: calc(100vh - 62px);
}

.dbbanner-inr {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
}

.dbbannerleft {
  width: 250px;
  background-color: #ebebeb;
  padding: 15px;
  height: 100%;
  overflow: auto;
}

.dbbanner-rht {
  width: calc(100% - 250px);
  padding: 10px 20px 10px 10px;
  height: 100%;
  overflow: auto;
}

.ls-topbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ls-topbar ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

.ls-topbar ul li a:hover {
  background-color: var(--color-hover);
}

.db-heading {
  display: flex;
  align-items: center;
  gap: 5px;
}

.db-heading h1 {
  font-size: 20px;
  line-height: 1.2;
}

/* ================================================
   DASHBOARD CONTENT (SUMMARY, TABLE, FILTERS, PAGINATION)
================================================ */


/* Header */
.con-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 0;
}

.con-header-left,
.con-header-right {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 6px 12px;
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
}

.btn:hover {
  background: var(--color-hover);
}

.btn.primary {
  background: var(--color-primary);
  color: var(--color-surface);
  border: none;
}

.btn.primary:hover {
  background: var(--color-primary-dark);
}

.btn.dropdown i {
  margin-left: 6px;
  font-size: 12px;
}

/* Summary Cards */
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-bottom: 1px solid var(--color-border);
}

.card {
  padding: 16px;
  border-left: 1px solid var(--color-border);
}

.card:first-child {
  border-left: none;
}

.label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.value .sub {
  font-size: 13px;
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
}

.progress {
  margin-top: 8px;
  background: var(--color-border);
  height: 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress .bar {
  height: 100%;
  background: var(--color-primary);
}

/* Filters */
.filters {
  display: flex;
  justify-content: space-between;
  padding: 12px 10px;
  padding-top: 0;
}

.filter-tabs {
  display: flex;
  gap: 4px;
}

.tab {
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  background: transparent;
  border: none;
  cursor: pointer;
}

.tab.active {
  background: var(--color-border);
  font-weight: var(--font-weight-bold);
}

.tab:hover {
  background: var(--color-hover);
}

.filter-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  background: transparent;
}

.icon-btn:hover {
  background: var(--color-border);
}

.summary {
  padding: 5px 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 7px;
}

.orders-section {
  padding: 12px 6px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 7px;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-exsm);
}

.orders-table thead {
  background: var(--color-body-bg);
  text-transform: uppercase;
  font-size: 12px;
  color: var(--color-text);
}

.orders-table th,
.orders-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--color-border);
}

.orders-table tr:hover {
  background: var(--color-hover);
}

.status {
  padding: 2px 6px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}

.tabs-heading {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tabs-heading h1 {
  font-size: 22px;
}

.status.paid {
  background: var(--status-paid-bg);
  color: var(--status-paid-text);
}

.status.unfulfilled {
  background: var(--status-unfulfilled-bg);
  color: var(--status-unfulfilled-text);
}

.tag {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 4px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.orders-table th:first-child,
.orders-table td:first-child {
  width: 40px;
  text-align: center;
}

input[type="checkbox"] {
  margin: 0;
  height: 15px;
  width: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  padding: 12px 0 5px;
  gap: 12px;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  background-color: var(--color-surface);
  position: sticky;
  bottom: -10px;
}

.pagination button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.pagination button:hover:not([disabled]) {
  background: var(--color-border);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.header-profile {
  position: relative;
}

.header-profile ul {
  position: absolute;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  background-color: var(--color-surface);
  width: max-content;
  right: 0;
  padding: 8px 5px;
  border-radius: 6px;
  margin-top: 5px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: all ease .3s;
  visibility: hidden;
  opacity: 0;
  min-width: 100%;
}

.header-profile ul li a {
  padding: 5px 10px;
  display: block;
  border-radius: 5px;
}

.header-profile:hover ul {
  visibility: visible;
  opacity: 1;
}

.header-profile ul li+li {
  margin-top: 2px;
}

.header-profile ul li a:hover {
  background-color: var(--color-body-bg);
}

#options-container .card.p-3.mb-3 {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

div#options-container .card {
  margin-top: 1px;
}

.buttons.mt-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

div#options-container {
  margin-bottom: 15px;
}

.variant-options.orders-table {
  min-width: auto;
  text-align: left;
}

.variant-options td {
  width: 30%;
}

.variant-options td:first-child,
.variant-options th:first-child {
  width: 40%;
  text-align: left;
}

.variant-options td:last-child {
  width: 20%;
}


.variant-options.orders-table {
  padding-top: 20px;
}

@media (max-width: 768px) {

  .mob-menu {
    color: #fff;
    display: inline-block;
    margin-right: 5px;
    cursor: pointer;
  }

  .header-icon {
    display: inline-block;
  }

  .header-inr {
    padding: 0 15px;
  }

  .header-logo {
    width: auto;
  }

  .header-logo,
  .header-rht {
    width: auto;
  }



  .header-profile>span,
  i.fa.fa-caret-down {
    display: none;
  }


  .header-profile i.fa.fa-user {
    height: 40px;
    width: 40px;
  }

  .header-profile {
    padding: 0;
    background: transparent;
  }

  .header-rsinr {
    gap: 10px;
  }

  .header-icon {
    display: none;
  }

  .header-center {
    width: calc(100% - 150px);
  }

  .header-inr {
    gap: 10px;
  }

  .dbbannerleft {
    display: none;
  }

  .dbbanner-rht {
    width: 100%;
    padding: 15px;
  }

  .con-header {
    flex-wrap: wrap;
    row-gap: 10px;
    padding-top: 0;
  }

  .filters {
    flex-wrap: wrap;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }

  .pagination {
    bottom: -15px;
  }

  .dbbannerleft {
    position: absolute;
    display: none;
    z-index: 2;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
  }

}

/* PRODUCT FORM STYLES (scoped under .product-form) */
.height100 {
  height: calc(100vh - 62px);
  overflow: auto;
}

.product-form {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}

.product-form h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: 16px;
  color: var(--color-heading);
}

.product-form .form-group {
  margin-bottom: 16px;
}

.product-form label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: block;
  margin-bottom: 6px;
  color: var(--color-text);
}

.product-form input[type="text"],
.product-form input[type="number"],
.product-form textarea,
.product-form select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background: var(--color-surface);
  color: var(--color-text);
}

.product-form textarea {
  min-height: 100px;
  resize: vertical;
}

.product-form .media-upload {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

.product-form .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.product-form .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.product-form .btn-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  cursor: pointer;
  margin-top: 1rem;
}

.product-form .btn-submit:hover {
  background: var(--color-primary-dark);
}

.product-form .media-upload {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease;
}

.product-form .media-upload:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.product-form .media-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.product-form .media-upload span {
  pointer-events: none;
}


.page-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.page-header .page-icon a {
  background: transparent;
  border-radius: var(--radius-md);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header .page-icon a:hover {
  background: var(--status-paid-bg);
}

.page-header .page-icon i {
  font-size: 14px;
  color: var(--color-text-light);
}

.page-header h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-heading);
  margin: 0;
}

span.right-icon {
  font-size: 10px;
  display: block;
}

.formfields-list {
  background: var(--color-surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.formfields-list+.formfields-list {
  margin-top: 20px;
}

.product-form-inner {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.product-form-left {
  width: 70%;
  padding: 0 10px;
}

.product-form-right {
  width: 30%;
  padding: 0 10px;
}

.form-btn {
  padding: 0 10px;
  margin-top: 9px;
}

@media (max-width: 768px) {
  .product-form {
    padding: 15px;
  }

  .product-form h2 {
    font-size: 16px;
  }

  .product-form-left,
  .product-form-right {
    width: 100%;
  }

  .product-form-right {
    padding-top: 20px;
  }
}