/* ==============================
   Color Variables
   ============================== */
:root {
   --primary-bg: #4e73df;
  --primary-dark: #1c3faa;
  --primary-accent: #6f42c1;
  --primary-hover: #3458c0;

  --success: #16a34a; /* Fresh green */
  --success-hover: #15803d;

  --danger: #dc2626; /* Bright danger red */
  --danger-hover: #b91c1c;

  --warning: #f59e0b; /* Vibrant amber */
  --warning-hover: #d97706;

  --text-main: #1e293b; /* Dark slate text */
  --text-light: #64748b; /* Muted gray text */

    --bg-body: #f8f9fc;
  --bg-container: #ffffff;

  --table-header-bg: #3b82f6; /* Bright table header */
  --table-border: #e2e8f0; /* Light border */

  --alert-success-bg: #d1e7dd;
  --alert-success-text: #0f5132;
  --alert-danger-bg: #f8d7da;
  --alert-danger-text: #842029;
    --success: #1cc88a;
  --success-hover: #17a673;
  --danger: #e74a3b;
  --danger-hover: #be2617;
  --warning: #f6c23e;
  --warning-hover: #dda20a;

  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-card: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.2);

  --input-border: #cbd5e1;
  --input-placeholder: #94a3b8;

  --dropdown-bg: #1e293b;
  --dropdown-hover: #334155;

  --focus-ring: rgba(59, 130, 246, 0.4);
}


/* ======================================
stock mangement filter bar
====================================== */
.filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 15px;
        border-radius: 25px;
        border: 1px solid #0606062c;
        color: var(--primary-dark);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
    }
    .filter-btn:hover { background: var(--primary-dark); color: white; }
    .filter-btn.active { background: var(--primary-dark); color: white; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.033); }

    .badge-custom {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: bold;
        color: #fff;
        margin-right: 4px;
    }
    .badge-custom.out {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}
.badge-custom.low {
    background: linear-gradient(135deg, #f9d423, #f39c12);
    color: #000;
}
.badge-custom.high {
    background: linear-gradient(135deg, #36d1c4, #3498db);
    color: #fff;
}
.badge-custom.in {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}
.badge-custom.expired {
    background: linear-gradient(135deg, #636e72, #34495e);
    color: #fff;
}
.badge-custom.nearly {
    background: linear-gradient(135deg, #b993d6, #8ca6db);
    color: #fff;
}


.badge-custom {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 2px;
}

.badge-custom .tooltip-text {
  visibility: hidden;
  width: 160px;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  text-align: center;
  border-radius: 6px;
  padding: 5px 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* tooltip badge ke upar show hoga */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.badge-custom .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%; /* arrow neeche show hoga */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.badge-custom:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ==============================
   General Reset
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 
}

/* ==============================
   Body
   ============================== */
body {
  background-color: var(--bg-body);
  /* color: var(--text-main); */
  font-family: "Poppins", sans-serif;
    color: #333;
  margin: 0;
  padding: 0;
}
body.modal-open {
  overflow: auto !important;
  padding-right: 1px !important;
}

/* ==============================
   Header / Navbar
   ============================== */
header {
  background: linear-gradient(90deg, var(--primary-bg), var(--primary-accent));
  color: white;
  padding: 1rem 2rem;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

header nav a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
}
header nav a:hover {
  text-decoration: underline;
  color: var(--primary-accent);
}

/* ==============================
   Container
   ============================== */
.container {
  /* max-width: 900px; */
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--bg-container);
  border-radius: 5px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.formclass {
    width: 60%;
    max-width: 900px;
    margin: 10px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* ==============================
   Forms
   ============================== */
form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--table-border);
  border-radius: 8px;
  font-size: 1rem;
}
form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--table-header-bg);
  outline: none;
  box-shadow: 0 0 5px var(--primary-accent);
}
form button {
  background-color: var(--table-header-bg);
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
form button:hover {
  background-color: var(--primary-hover);
}

/* ==============================
   Tables
   ============================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
table th,
table td {
  border: 1px solid var(--table-border);
  padding: 0.2rem;
  text-align: left;
}
table th {
  background-color: var(--table-header-bg);
  color: white;
}
table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* ==============================
   Cards / Info Boxes
   ============================== */










.cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.card {
  flex: 1 1 250px;
  background: linear-gradient(135deg, var(--primary-bg), var(--primary-accent), var(--primary-dark));
  color: white;
  border-radius: 12px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 6px 20px var(--shadow-card);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-strong);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  font-weight: bold;
  font-size: 1.2rem;
}








   
.card3 {
  background-color: var(--bg-container);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 10px var(--shadow-card);
  margin-bottom: 1.5rem;
}

.cards .card3 {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-bg), var(--primary-dark));
  color: #fff;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px var(--primary-dark);
  position: relative;
  overflow: hidden;
  height: 100px;
}
.cards .card3:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px var(--shadow-strong);
  color: rgb(255, 235, 55);
}
.cards .card3::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
  transform: rotate(25deg);
  pointer-events: none;
}
.cards .card3 h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  opacity: 0.9;
}
.cards .card3 p {
  font-weight: 700;
  margin: 0;
}

/* ==============================
   Alerts / Flash Messages
   ============================== */
.alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.alert-success {
  background-color: var(--alert-success-bg);
  color: var(--alert-success-text);
}
.alert-danger {
  background-color: var(--alert-danger-bg);
  color: var(--alert-danger-text);
}

/* ==============================
   Footer
   ============================== */
footer {
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
  color: var(--text-light);
}

/* ==============================
   Wrapper & Sidebar
   ============================== */
.wrapper {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, var(--primary-bg), var(--primary-accent), var(--primary-dark));
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  /* margin-bottom: 0.5rem; */
  color: white;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar nav a i {
  margin-right: 0.8rem;
}

.sidebar nav a:hover {
  background-color: rgba(255,255,255,0.2);
}


/* ==============================
   Main Content
   ============================== */
.main-content {
  flex: 1;
  background-color: var(--bg-body);
}

.main-content header {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  margin-bottom: 0rem;
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  #sidebarToggle {
    display: inline-block;
  }
  .overlay {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4);
    z-index: 900;
  }
  .overlay.show {
    display: block;
  }
  
}

/* ==============================
   Buttons
   ============================== */
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin: 2px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  border: none;
}
.btnn {
  display: inline-block;
  padding: 2px 6px;
 

  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  border: none;
}
.btn-primary {
  background-color: var(--table-header-bg);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}
.btn-danger {
  background-color: var(--danger);
  color: white;
}
.btn-danger:hover {
  background-color: var(--danger-hover);
}
.btn-success {
  background-color: var(--success);
  color: white;
}
.btn-success:hover {
  background-color: var(--success-hover);
}
.btn-warning {
  background-color: var(--warning);
  color: white;
}
.btn-warning:hover {
  background-color: var(--warning-hover);
}

/* ==============================
   Floating Label Inputs
   ============================== */
.floating-label {
  position: relative;
}
.floating-label input,
.floating-label textarea,
.floating-label select {
  width: 100%;
  padding: 12px 12px 12px 12px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background: none;
  outline: none;
  font-size: 14px;
  margin-bottom: 20px;
}
.floating-label label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #999;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease all;
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label {
  top: -8px;
  left: 8px;
  font-size: 12px;
  color: var(--table-header-bg);
  background: white;
  padding: 0 4px;
}

/* ==============================
   Dropdown
   ============================== */
nav {
  display: flex;
  flex-direction: column;
}
nav a {
  padding: 10px;
  text-decoration: none;
  color: var(--text-main);
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--dropdown-bg);
  min-width: 180px;
  z-index: 999;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: white;
}
.dropdown-menu a:hover {
  background: var(--dropdown-hover);
}

/* ==============================
   Stylish Input
   ============================== */
.stylish-input {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.stylish-input:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 0.2rem var(--focus-ring);
  outline: none;
}
.stylish-input::placeholder {
  color: var(--input-placeholder);
  font-style: italic;
}

.formcard1 {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  width: 500px;
  margin: auto;
}
.formcard {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  width: 500px;
  margin: auto;
}

.formcard h2 {
  margin-bottom: 20px;
}

.formcard label {
  display: block;
  margin-top: 1px;
  font-weight: bold;
}

.formcard input,
.formcard select,
.formcard textarea {
  width: 100%;
  padding: 8px;
  margin-top: 1px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.formcard button {
  margin-top: 15px;
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.formcard button:hover {
  background: #218838;
}

.formcard .alert {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
}

.formcard .alert.success {
  background: #d4edda;
  color: #155724;
}

.formcard .alert.error {
  background: #f8d7da;
  color: #721c24;
}
.whatsapp-dropdown {
  position: relative;
  display: inline-block;
}

.whatsapp-btn {
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-top: 5px;
  z-index: 1000;
  min-width: 170px;
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.show-dropdown {
  display: block;
}

/* ==============================
   Responsive Design
   ============================== */
.mart_setting_btn{
  background: linear-gradient(135deg, #5836d1, #3498db);
    color: #fff;
}

.fullscreen-btn {
  /* position: fixed; */
  top: 15px;
  right: 20px;
  background: #0077ff00;
  border: none;
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 9999;
}

.fullscreen-btn:hover {
  /* background: #005fd1; */
  transform: scale(1.1);
}



@media (max-width: 768px) {
  .user_status ,.fullscreen-btn{
    display: none;
  }
}