/* ===============================
   GLOBAL THEME (SaaS Gradient)
================================= */

:root {
  --primary-gradient: linear-gradient(135deg, #1d4ed8, #22c55e);
  --primary-blue: #1d4ed8;
  --primary-green: #22c55e;
  --light-bg: #f1f5f9;
}

/* ===============================
   BODY / BACKGROUND
================================= */
body {
  background-color: var(--light-bg);
}

.content-wrapper {
  background-color: var(--light-bg);
}

/* ===============================
   SIDEBAR
================================= */
.main-sidebar {
  background: #0f172a;
}

/* Sidebar text */
.sidebar-menu > li > a {
  color: #cbd5e1;
  font-size: 14px;
}

/* Hover */
.sidebar-menu > li > a:hover {
  background: rgba(34, 197, 94, 0.15);
  color: #fff;
  border-radius: 8px;
}

/* Active */
.sidebar-menu li.active > a,
.sidebar-menu li.menu-open > a {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  border-radius: 8px;
  margin: 4px 10px;
}

/* ===============================
   HEADER
================================= */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

/* User name */
.user-menu span {
  color: var(--primary-green);
  font-weight: 600;
}

/* ===============================
   CARDS / BOX
================================= */
.box {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  background: #fff;
}

/* Card Header */
.box-header {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

/* ===============================
   BUTTONS
================================= */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-light {
  border-radius: 6px;
}

/* ===============================
   TABLE
================================= */
.table thead {
  background: #f8fafc;
}

.table tbody tr:hover {
  background: #f1f5f9;
}

/* ===============================
   BADGES
================================= */
.badge.bg-success {
  background: var(--primary-green) !important;
}

/* ===============================
   LIST GROUP (Product Types UI)
================================= */
.list-group-item {
  border: none;
  padding: 12px 16px;
}

.list-group-item.active {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  border-radius: 8px;
}

/* ===============================
   HOVER EFFECT (Premium Feel)
================================= */
.box:hover {
  transform: translateY(-2px);
  transition: 0.2s ease-in-out;
}

/* ===============================
   SCROLLBAR (OPTIONAL PREMIUM)
================================= */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 10px;
}

/* ===============================
   REMOVE OLD THEME COLORS
================================= */
.bg-lightgreen,
.bg-lightorange,
.bg-lilac,
.bg-purple,
.bg-Tacha,
.bg-shadow-green {
  all: unset;
}

/* CARD */
.table-modern {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

/* HEADER */
.table-header {
  margin-bottom: 15px;
}

.table-title {
  font-weight: 600;
}

/* SEARCH */
.table-search {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
}

.table-search:focus {
  border-color: #2563eb;
  outline: none;
}

/* ADD BUTTON */
.btn-add {
  background: linear-gradient(90deg, #2563eb, #22c55e);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* TABLE */
.table-modern-table thead {
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.table-modern-table thead th {
  color: #fff;
  border: none;
  padding: 12px;
}

.table-modern-table tbody td {
  padding: 12px;
  color: #334155;
}

.table-modern-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: 0.2s;
}

.table-modern-table tbody tr:hover {
  background: #f8fafc;
}

/* BADGES */
.badge-success-modern {
  background: #22c55e;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge-danger-modern {
  background: #ef4444;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* ACTION BUTTON BASE */
.btn-action {
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}

/* EDIT */
.btn-action.edit {
  background: #facc15;
  color: #000;
}

.btn-action.edit:hover {
  background: #eab308;
}

/* STATUS ACTIVE */
.btn-action.active {
  background: #22c55e;
  color: #fff;
}

/* STATUS INACTIVE */
.btn-action.inactive {
  background: #ef4444;
  color: #fff;
}

/* HOVER EFFECT */
.btn-action:hover {
  transform: translateY(-1px);
}

.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.4);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999; /* ✅ HIGH */
}

.modal-box {
  width: 400px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;

  z-index: 10000; /* ✅ IMPORTANT */
}

.coming-soon {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-box {
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}