:root{
    --blue:rgb(50, 31, 219);
    --light-blue:rgb(51 153 255);
    --yellow:rgb(249 177 21);
    --red:rgb(229 83 83);
    --dark:rgb(33 38 49);
    --light-back:#ebedef;
    --back-active-color:#3c4b64;
    --green: #198754;
}
.blue{
    background-color: var(--blue) !important;
}

.light-blue{
    background-color: var(--light-blue) !important;
}
.yellow{
    background-color: var(--yellow) !important;
}
.red{
    background-color: var(--red) !important;
}
.dark{
    background-color: var(--dark) !important;
}
.light-back{
    background-color: var(--light-back) !important;
}
.green{
    background-color: var(--green) !important;
}

/* Enhanced Footer Links */
footer a {
    color: #007bff; /* Accent color */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

footer a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #007bff;
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

footer a:hover {
    color: #0056b3; /* Darker on hover */
}

footer a:hover::after {
    width: 100%;
}

footer .text-muted {
    font-size: 14px;
}

/*table buttons */

.table td .btn {
    white-space: nowrap;
    position: relative;
    left: 50%;
    transform:translateX(-50%);
}

/*main title */
.main-title{
    color: black;
    margin: 0 auto 80px;
    font-size: 30px;
    padding: 10px 20px;
    border: 2px solid black;
    width: fit-content;
    z-index: 1;
    position: relative;
    transition:0.3s;


}

.main-title::before{
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    

}

.main-title::after{
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    

}

.main-title:hover::before{
    z-index: -1;
    animation:left-fill 0.5s linear forwards;
}

.main-title:hover::after{
    z-index: -1;
    animation:right-fill 0.5s linear forwards;
}

.main-title:hover{
    color: white;
    border: 2px solid white;
    transition-delay:0.5s;
}
/*coloring*/
.main-title.title-blue::before{
background-color: var(--blue);
}
.main-title.title-blue::after{
background-color: var(--blue);
}

.main-title.title-light-blue::before{
background-color: var(--light-blue);
}
.main-title.title-light-blue::after{
background-color: var(--light-blue);
}

.main-title.title-yellow::before{
background-color: var(--yellow);
}
.main-title.title-yellow::after{
background-color: var(--yellow);
}

.main-title.title-red::before{
background-color: var(--red);
}
.main-title.title-red::after{
background-color: var(--red);
}

.main-title.title-green::before{
background-color: var(--green);
}
.main-title.title-green::after{
background-color: var(--green);
}

.main-title.title-dark::before{
background-color: var(--dark);
}
.main-title.title-dark::after{
background-color: var(--dark);
}

@keyframes left-fill{
    50%{
        left: 0;
        width: 12px;
        height: 12px;
    }
    100%{
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

@keyframes right-fill{
    50%{
        right: 0;
        width: 12px;
        height: 12px;
    }
    100%{
        right: 0;
        width:100%;
        height: 100%;
        border-radius: 0;
    }
}

/*main title end*/

/*card styling start */

.dashboard-page {
  background-color: var(--light-back);
  padding-bottom: 40px;
}

/* keep compatibility with your .main-title animation */
.dashboard-page .main-title {
  margin-top: 24px;
  margin-bottom: 28px;
}

/* Stat cards */
.stat-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.stat-card .card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
}

.stat-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.stat-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

/* Icon bubble */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Color helpers (use your :root variables) */
.stat-card.blue       { background-color: var(--blue); }
.stat-card.light-blue { background-color: var(--light-blue); }
.stat-card.yellow     { background-color: var(--yellow); color: #333; } /* yellow: dark text */
.stat-card.green      { background-color: var(--green); }
.stat-card.red        { background-color: var(--red); }
.stat-card.dark       { background-color: var(--dark); color: #fff; }
.stat-card.white      { background-color: #fff; color: var(--dark); box-shadow: 0 4px 10px rgba(0,0,0,0.06); }

/* Chart & stock card small polish */
.chart-card, .stock-card {
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.chart-card .card-header,
.stock-card .card-header {
  font-weight: 600;
  color: #fff;
  background-color: var(--back-active-color);
}

/* small responsive tweak: stack on small screens */
@media (max-width: 768px) {
  .stat-card .card-body { flex-direction: column; gap: 10px; text-align: center; }
  .icon-box { margin-top: 6px; }
}


/*card styling end*/

/* ---------------------------
   Users page — StartBootstrap-style stat cards (global)
   Paste into css/custom.css
--------------------------- */

.sb-stats-row { gap: 1.5rem; margin-bottom: 1.5rem; }

/* single stat card */
.sb-stat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  border-left: 6px solid transparent; /* color set by helper */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  min-height: 92px;
}

.sb-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* left block: label & value */
.sb-stat-card .stat-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-stat-card .stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280; /* muted */
  text-transform: uppercase;
  letter-spacing: .6px;
}
.sb-stat-card .stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
}

/* right block: icon in light circle */
.sb-stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(0,0,0,0.46);
  flex-shrink: 0;
}

/* left border helpers (use these on the card) */
.border-primary   { border-left-color: #4e73df; } /* startbootstrap primary-ish */
.border-success   { border-left-color: var(--green); }
.border-info      { border-left-color: var(--light-blue); }
.border-warning   { border-left-color: var(--yellow); }

/* small helper text styling inside cards */
.sb-stat-card .muted-meta {
  font-size: 0.82rem;
  color: #9aa0a6;
  margin-top: 6px;
}

/* polish table card header to match theme */
.users-card .card-header {
  background-color: var(--back-active-color);
  color: #fff;
  font-weight: 600;
}

/* Action buttons spacing */
.table .btn { margin-right: 6px; }

/* responsive */
@media (max-width: 767px) {
  .sb-stat-card {
    flex-direction: row;
    gap: 12px;
    padding: 14px;
  }
  .sb-stat-card .stat-left { text-align: left; }
}


/* === Add Sell Page === */
.sell-card {
  max-width: 1100px;
  margin: 50px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
}
.sell-card__header {
  background: linear-gradient(135deg, #007bff, #0d6efd);
  color: #fff;
  border-radius: 12px 12px 0 0;
}
.sell-card label { font-weight: 600; }

/* compact inputs inside table */
#productTable input,
#productTable select {
  min-width: 110px;
}

/* action icon */
.remove-row {
  color: red;
  cursor: pointer;
}
.remove-row:hover { opacity: 0.8; }


/* ---------------------------
   Return Sell Page Styles
--------------------------- */
.return-sell-page {
  background-color: #f8f9fa;
}

.return-sell-card {
  max-width: 1000px;
  margin: 60px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.return-sell-card .card-header {
  background: linear-gradient(135deg, #0d6efd, #007bff);
  color: #fff;
  border-radius: 12px 12px 0 0;
}

.return-sell-card label {
  font-weight: 600;
}

.return-sell-page .info-box {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  padding: 15px 20px;
}



/* --- Update Pages start --- */
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark, #333);
  margin: 30px 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-card {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  background-color: #fff;
}

.update-card .card-header {
  color: #fff;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

.update-card .form-label {
  font-weight: 600;
  color: #333;
}

.btn-theme {
  color: #fff;
  border: none;
  transition: 0.3s;
}

.btn-theme:hover {
  color: #fff;
}

.update-customer .update-card .card-header{
  background-color: var(--green);
}
.update-customer .btn-theme{
  background-color: var(--green);
}
.update-customer .btn-theme:hover{
background-color: #116d42;
}
.update-category .update-card .card-header{
  background-color: var(--dark);
}
.update-category .btn-theme{
  background-color: var(--dark);
}
.update-category .btn-theme:hover{
background-color:rgb(19, 22, 29) !important;
}
.update-supplier .btn-theme:hover{
background-color:rgb(37, 122, 207) !important;
}
.update-product .btn-theme:hover{
  background-color: rgb(195, 59, 59) !important;
}
.update-sell .btn-primary.yellow:hover{
  background-color: rgb(183, 130, 16) !important;
}
/*update customer page end */

/*update category page start */

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark, #333);
  margin: 30px 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-card {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  background-color: #fff;
}

.update-card .card-header {
  background-color: var(--dark, #004d99); /* adjust to your theme color */
  color: #fff;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

.update-card .form-label {
  font-weight: 600;
  color: #333;
}

.btn-theme {
  background-color: var(--dark, #004d99);
  color: #fff;
  border: none;
  transition: 0.3s;
}

.btn-theme:hover {
  background-color: #003d80;
  color: #fff;
}

/*update category page end*/

/* ---------------------------
   Sell Return List Page
--------------------------- */
.sell-return-list-page {
  background-color: #f8f9fa;
}

.total-return-card {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.total-return-card h3 {
  font-size: 1.8rem;
}

.sell-return-list-page .card-header {
  font-weight: 600;
  color: #0d6efd;
}

.sell-return-list-page table th {
  font-weight: 600;
}

.sell-return-list-page table td {
  vertical-align: middle;
}


/* ---------------------------
   Expense Page Styles
--------------------------- */
.expense-page {
  background-color: #f8f9fa;
}

.total-expense-card {
  background: linear-gradient(135deg, #ffaf40, #ff8800);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(255, 136, 0, 0.3);
}

.total-expense-card h3 {
  font-size: 1.8rem;
}

.expense-page .card-header {
  font-weight: 600;
  color: #0d6efd;
}

.expense-page table th {
  font-weight: 600;
}

.expense-page table td {
  vertical-align: middle;
}
.expense-page .modal-header {
  background: linear-gradient(135deg, #0d6efd, #007bff);
  color: #fff;
}
.expense-page label {
  font-weight: 600;
}



/* ---------------------------
   Update Expense Page Styles
--------------------------- */
.update-expense-page {
  background-color: #f8f9fa;
}

.update-expense-page .update-card {
  max-width: 850px;
  margin: 60px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.update-expense-page .update-card .card-header {
  background: linear-gradient(135deg, #007bff, #0d6efd);
  color: #fff;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

.update-expense-page label {
  font-weight: 600;
}

.update-expense-page .btn-outline-secondary {
  border-color: #6c757d;
}


/* ---------------------------
   Expense Category List Page
--------------------------- */
.expense-category-page {
  background-color: #f8f9fa;
}

.expense-category-page .card-header {
  font-weight: 600;
  color: #0d6efd;
}

.expense-category-page table th {
  font-weight: 600;
}

.expense-category-page table td {
  vertical-align: middle;
}

.expense-category-page .btn {
  font-weight: 500;
}

/* ---------------------------
   Buy Page Styles
--------------------------- */
.buy-page {
  background-color: #f8f9fa;
}

.buy-page .card-header {
  font-weight: 600;
  color: #0d6efd;
}

.buy-page table th {
  font-weight: 600;
}

.buy-page table td {
  vertical-align: middle;
}

.buy-page .badge {
  font-size: 0.85rem;
  padding: 0.45em 0.7em;
}


/* ---------------------------
   Refund Buy List Page
--------------------------- */
.refund-buy-list-page {
  background-color: #f8f9fa;
}

.total-refund-card {
  background: linear-gradient(135deg, #6c5ce7, #5f3dc4);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(95, 61, 196, 0.25);
}

.total-refund-card h3 {
  font-size: 1.8rem;
}

.refund-buy-list-page .card-header {
  font-weight: 600;
  color: #0d6efd;
}

.refund-buy-list-page table th {
  font-weight: 600;
}

.refund-buy-list-page table td {
  vertical-align: middle;
}


/* ---------------------------
   Staff Page Styles
--------------------------- */
.staff-page {
  background-color: #f8f9fa;
}

.staff-page .card-header {
  font-weight: 600;
  color: #0d6efd;
}

.staff-page table th {
  font-weight: 600;
}

.staff-page table td {
  vertical-align: middle;
}
/* ---------------------------
   Staff Modals
--------------------------- */
.staff-page .modal-header {
  background: linear-gradient(135deg, #0d6efd, #007bff);
  color: #fff;
}
.staff-page label {
  font-weight: 600;
}


/* ---------------------------
   Update Staff Page Styles
--------------------------- */
.update-staff-page {
  background-color: #f8f9fa;
}

.update-staff-page .update-card {
  max-width: 800px;
  margin: 60px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.update-staff-page .update-card .card-header {
  background: linear-gradient(135deg, #007bff, #0d6efd);
  color: #fff;
  border-radius: 12px 12px 0 0;
}

.update-staff-page label {
  font-weight: 600;
}


/* ---------------------------
   Update Buy Page Styles
--------------------------- */
.update-buy-page {
  background-color: #f8f9fa;
}

.update-buy-page .update-card {
  max-width: 850px;
  margin: 60px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
}

.update-buy-page .update-card .card-header {
  background: linear-gradient(135deg, #198754, #20c997);
  color: #fff;
  border-radius: 12px 12px 0 0;
}

.update-buy-page label {
  font-weight: 600;
}


/* ---------------------------
   Add Buy Page Styles
--------------------------- */
.add-buy-page {
  background-color: #f8f9fa;
}

.add-buy-card {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  max-width: 950px;
  margin: 0 auto 60px;
}

.add-buy-page .card-header {
  font-weight: 600;
  color: #0d6efd;
}

.add-buy-page label {
  font-weight: 600;
}

#addNewProductBtn {
  background-color: #0b5ed7;
  color: #fff;
}

#addNewProductBtn:hover {
  background-color: #094db2;
}


/* Profit & Loss Page */
.profit-loss-page main {
  background-color: #f8f9fa;
}

.profit-loss-page .card {
  border-radius: 10px;
}

.profit-loss-page table td {
  padding: 0.6rem 0.75rem;
}

.profit-loss-page .card-header {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.profit-loss-page .text-end {
  font-weight: 500;
}


/* Sales Report Page */
.sales-report-page main {
  background-color: #f8f9fa;
}

.sales-report-page .card {
  border-radius: 10px;
}

.sales-report-page table th,
.sales-report-page table td {
  vertical-align: middle;
  text-align: center;
}

.sales-report-page .badge {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
}
/* Report Modal */
.sales-report-page .modal-content,
.purchase-report-page .modal-content {
  border-radius: 12px;
}

.sales-report-page .modal-header,
.purchase-report-page .modal-header {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.sales-report-page .view-payment,
.purchase-report-page .view-payment {
  font-size: 0.85rem;
}


/* Purchase Report Page */
.purchase-report-page main {
  background-color: #f8f9fa;
}

.purchase-report-page .card {
  border-radius: 10px;
}

.purchase-report-page table th,
.purchase-report-page table td {
  vertical-align: middle;
  text-align: center;
}

.purchase-report-page .badge {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
}
/* Purchase Report Styling */
.purchase-report-page .card-header {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.purchase-report-page .card {
  border-radius: 10px;
}

.purchase-report-page .modal-content {
  border-radius: 12px;
}

.purchase-report-page .view-payment {
  font-size: 0.85rem;
}

/* Reuse color cards */
.blue { background: #3f51b5; }
.green { background: #43a047; }
.red { background: #e53935; }



