body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f4f6f9;
  height: 100%;
  width: 100%;
}

a {
  color: #777;
  text-decoration: none;
}

.padding-top {
  padding-top: 20px;
}

.login-page {
  width: 350px;
  margin: 5% 40% 6% auto;
  padding: 0 20px;
  background-color: #f9f9f9;
  border: 1px solid #f2f2f2;
}

.login-page .text-center {
  margin-bottom: 10px;
}

.box {
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #f2f2f2;
}

.page {
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 280px;
}

.page-lgn {
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 270px;
}

.bg-green {
  background-color: #A3C86D;
}

.bg-blue {
  background-color: #7ACBEE;
}

.bg-yellow {
  background-color: #FDD761;
}

.bg-red {
  background-color: #FF7857;
}

.bg-secondary1 {
  background-color: #b17897;
}

.bg-blue2 {
  background-color: #7a83ee;
}

.panel-default>.panel-heading {
  background-color: #fff;
  border-bottom: 2px solid #6366f1;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 18px;
  color: #374151;
}

.panel-default {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.panel-body {
  padding: 20px 18px;
}

.panel-box {
  width: 100%;
  height: 100%;
  text-align: center;
  border: none;
}

.panel-value {
  width: 60%;
}

.panel-icon {
  padding: 30px;
  width: 40%;
  border-radius: 0;
}

.panel-icon {
  -webkit-border-radius: 3px 0 0 3px;
  -moz-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
}

.panel-value {
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
}

.panel-value h2 {
  margin-top: 30px;
}

.panel-icon i {
  line-height: 65px;
  font-size: 40px;
  color: #fff;
}

#header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
  height: 65px;
  line-height: 65px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

header>.logo {
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  width: 250px;
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3553 100%);
}

.header-date {
  color: #94a3b8;
  margin-left: 20px;
  font-size: 13px;
  font-weight: 500;
}

.info-menu {
  height: 60px;
  margin: 0;
  line-height: 60px;
  padding: 0 15px;
}

.info-menu li.profile {
  position: relative;
}

.profile a.toggle {
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  color: rgba(150, 150, 158, 1.0);
  position: relative;
  padding: 10px 10px 10px 0;
  margin: 0;
  background: #f9f9f9;
  border-radius: 30px;
}

.info-menu li.profile a img {
  width: 30px;
  height: 30px;
}

.dropdown-menu {
  margin-top: 4px;
  border-color: #fefefe;
  border-radius: 0;
  box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
  -moz-box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
  -webkit-box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  display: block;
  line-height: 35px;
}

.dropdown-menu li a {
  text-decoration: none;
  display: block;
  font-size: 14px;
  position: relative;
  line-height: 30px;
  width: 100%;
  border-bottom: 1px solid #f4faf9;
}

.dropdown-menu li a i {
  margin-right: 5px;
}

.dropdown-menu li.last a {
  border-bottom: 0;
}

.datepicker {
  text-align: center;
}

.sidebar {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  padding: 65px 0 0;
  height: 100%;
  width: 250px;
  background: linear-gradient(180deg, #1a1f2e 0%, #212736 50%, #1e2433 100%);
  border-right: none;
  text-align: center;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sidebar ul li:hover,
.submenu ul li:hover {
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.sidebar ul li {
  display: block;
  margin: 2px 10px;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar ul li:hover,
ul.submenu {
  background-color: rgba(255,255,255,0.07);
}

.sidebar ul li a:hover {
  color: #fff;
}

.sidebar ul li a,
ul.submenu li a {
  color: #8a94a8;
  display: block;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

/* Active sidebar link */
.sidebar ul li a.active {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(99,102,241,0.25) 0%, rgba(99,102,241,0.08) 100%);
  box-shadow: inset 3px 0 0 #6366f1;
}

.sidebar ul li a.active i {
  color: #818cf8 !important;
}

.sidebar ul li a.active span {
  color: #fff;
  font-weight: 600;
}

.sidebar ul li a span,
.sidebar ul li i {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: none;
}

.sidebar ul li a i {
  color: #6b7280;
  padding: 14px 18px;
  text-align: center;
  transition: color 0.2s ease;
  font-size: 15px;
  width: 18px;
}

.sidebar ul li:hover a i {
  color: #a5b4fc;
}

ul.submenu {
  display: none;
  position: relative;
  background: rgba(0,0,0,0.15);
  border-radius: 0 0 10px 10px;
  margin: 0 10px;
}

ul.submenu li a:hover {
  background-color: rgba(255,255,255,0.07);
}

ul.submenu li a {
  padding-left: 45px;
}

ul.submenu li:before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  left: 25px;
  top: 0;
  bottom: 0;
  border: 1px dotted rgba(255,255,255,0.15);
  border-width: 0 0 0 1px;
}

ul.submenu li a:before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 7px;
  left: 25px;
  top: 18px;
  border-top: 1px dotted rgba(255,255,255,0.15);
}

.sale_report_header {
  padding: 15px 0;
}

table td h6 {
  margin: 0 0 0.2em 0;
}

table tfoot tr td:first-child {
  border: 0;
}

table tfoot tr td:last-child {
  border-top: 1px solid #ccc;
}

table td h6,
table tfoot tr td:last-child {
  color: #000;
  _font-size: 1.2em;
  font-weight: normal;
}

.form-control {
  color: #646464;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -moz-transition: all .15s ease-out;
  -webkit-transition: all .15s ease-out;
  transition: all .15s ease-out;
}

.form-control:focus {
  background: #f8f8f8;
  border-color: #3498DB;
  outline: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.btn {
  border-radius: 3px;
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: #51aded;
  border-color: #3d8fd8
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active {
  color: #fff;
  background-color: #3175b8;
  border-color: #3d8fd8
}

.btn-success {
  background-color: #2ecc71
}

.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success.active {
  background-color: #27ae60
}

.btn-warning {
  background-color: #e7c13e;
  border-color: #dfba3c;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning.active {
  background-color: #d0ac2c;
  border-color: #dfba3c;
}

.btn-danger {
  background-color: #ed5153
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger.focus,
.btn-danger:active,
.btn-danger.active {
  background-color: #bb282a
}

.input-group-addon {
  background-color: #fcfcfc;
  border: 1px solid #dbdbdb;
  border-radius: 0;
}

input[type=file] {
  text-indent: -99999px;
}

td img.img-thumbnail {
  width: 125px;
  height: 125px;
  vertical-align: top;
}

.img-avatar {
  width: 50px;
  height: 50px;
}

.jumbotron {
  margin-bottom: 0;
}

.list-group-item:first-child,
.list-group-item:last-child {
  border-radius: 0;
}

.profile .jumbotron {
  border-radius: 3px 3px 0 0;
}

.profile .jumbotron h3 {
  color: white;
}

img.img-size-2 {
  width: 125px;
  height: 125px;
}

/* ==========================================================================
   Modern Dashboard Cards Redesign (Soft Glow)
   ========================================================================== */

.dashboard-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  /* Base shadow */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  height: 180px;
  /* Taller for vertical layout */
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
}

.dashboard-card-link {
  text-decoration: none !important;
  display: block;
  color: inherit;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Circle icon */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.dashboard-card:hover .card-icon {
  transform: scale(1.1);
}

.card-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-count {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
  color: #333;
  /* Dark text */
}

.card-label {
  font-size: 15px;
  color: #8898aa;
  font-weight: 500;
  text-transform: capitalize;
  /* Normal case looks cleaner */
}

/* 
   Soft Glow Themes 
   Background is transparent/white, 
   Shadow/Icon match the color.
*/

/* Users: Purple/Blue */
.theme-users .card-icon {
  background: rgba(118, 75, 162, 0.1);
  color: #764ba2;
}

.theme-users .card-count {
  color: #764ba2;
}

.theme-users:hover {
  box-shadow: 0 15px 40px -10px rgba(118, 75, 162, 0.4);
}

/* Categories: Cyan/Blue */
.theme-categories .card-icon {
  background: rgba(0, 242, 254, 0.1);
  color: #00c6ff;
}

.theme-categories .card-count {
  color: #00c6ff;
}

.theme-categories:hover {
  box-shadow: 0 15px 40px -10px rgba(0, 198, 255, 0.4);
}

/* Products: Pink/Red */
.theme-products .card-icon {
  background: rgba(255, 81, 47, 0.1);
  color: #FF512F;
}

.theme-products .card-count {
  color: #FF512F;
}

.theme-products:hover {
  box-shadow: 0 15px 40px -10px rgba(255, 81, 47, 0.4);
}

/* Sales: Green */
.theme-sales .card-icon {
  background: rgba(67, 233, 123, 0.1);
  color: #2ecc71;
}

.theme-sales .card-count {
  color: #2ecc71;
}

.theme-sales:hover {
  box-shadow: 0 15px 40px -10px rgba(46, 204, 113, 0.4);
}

/* ==========================================================================
   Modern Profile Card
   ========================================================================== */
.profile-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
}

.profile-header-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 120px;
  position: relative;
  margin-bottom: 60px;
  /* Space for the image to overlap */
}

.profile-img-container {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -60px;
  /* Half of height to overlap */
  border-radius: 50%;
  padding: 5px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.profile-info h3 {
  margin: 0;
  color: #333;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.profile-info p {
  color: #777;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 500;
}

.profile-info .designation {
  color: #764ba2;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

.profile-stats {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  border-top: 1px solid #f0f0f0;
  padding-top: 25px;
}

.profile-action-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
  transition: all 0.3s ease;
}

/* ==========================================================================
   Glassmorphism Profile Design
   ========================================================================== */

.glass-profile-container {
  width: 100%;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: #f4f6f9;
  /* Fallback */
  overflow: hidden;
  padding: 20px;
}

/* Abstract Background Shapes */
.glass-shape {
  position: absolute;
  filter: blur(50px);
  z-index: 0;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.glass-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ff00cc, #333399);
  border-radius: 50%;
  top: 10%;
  left: 20%;
}

.glass-shape-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border-radius: 50%;
  bottom: 20%;
  right: 20%;
  animation-delay: -3s;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(0, 20px);
  }

  100% {
    transform: translate(0, 0);
  }
}

.glass-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  background: rgba(20, 20, 30, 0.7);
  /* Dark background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  color: #fff;
}

.glass-content {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

.glass-left {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 300px;
}

.glass-right {
  flex: 0 0 350px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  min-width: 300px;
}

.glass-profile-logo {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.glass-name {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
  background: linear-gradient(90deg, #fff, #a2c2e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-role {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.glass-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  margin-bottom: 25px;
}

.glass-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.glass-info-item {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.glass-info-item i {
  margin-right: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.glass-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #fff;
  color: #333;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  border: none;
  font-size: 15px;
}

.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  background: #f0f0f0;
  color: #000;
  text-decoration: none;
}

.glass-user-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Responsive fixes */
@media (max-width: 768px) {
  .glass-card {
    flex-direction: column;
  }

  .glass-right {
    order: -1;
    /* Image on top on mobile */
    width: 100%;
    flex: none;
    padding: 40px;
  }

  .glass-left {
    padding: 30px;
  }

  .glass-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UI/UX Improvements — Inventory System Overhaul
   ========================================================================== */

/* Cleaner table rows */
.table > tbody > tr > td {
  vertical-align: middle;
  padding: 10px 12px;
}

.table > thead > tr > th {
  background-color: #f8f9fa;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  padding: 12px 12px;
  border-bottom: 2px solid #dee2e6;
}

/* Consistent action button groups */
.btn-group .btn-xs {
  padding: 4px 8px;
  margin-right: 2px;
  border-radius: 3px;
}

.btn-group .btn-xs:last-child {
  margin-right: 0;
}

/* Dynamic fields panel styling */
.panel-info > .panel-heading {
  background-color: #e8f4fd;
  border-color: #bee5eb;
  color: #31708f;
}

.panel-info {
  border-color: #bee5eb;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Form labels */
.form-group label {
  font-weight: 600;
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
}

.text-danger {
  color: #e74c3c;
}

/* Category list group in manage fields */
.list-group-item.active {
  background-color: #3498db;
  border-color: #3498db;
}

.list-group-item {
  padding: 12px 15px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.list-group-item:hover {
  background-color: #f0f4f8;
}

/* Stock labels in categories */
.label {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
}

/* Better panel body spacing */
.panel-body .form-inline .form-group {
  margin-bottom: 5px;
}

/* Table responsive wrapper */
.table-responsive {
  border: none;
}

/* Datetime input styling */
input[type="datetime-local"],
input[type="date"] {
  padding: 6px 12px;
  line-height: 1.5;
}/* Manage fields page - inline edit table */
.table .form-control.input-sm {
  height: 30px;
  padding: 2px 8px;
  font-size: 13px;
}

:root {
  --notification-bg: rgba(255, 255, 255, 0.85);
  --notification-border: rgba(255, 255, 255, 0.2);
  --notification-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --primary-glow: rgba(52, 152, 219, 0.5);
  --accent-color: #3498db;
  --text-main: #2c3e50;
  --text-muted: #7f8c8d;
}

/* Base Font Override */
body {
  font-family: 'Inter', sans-serif !important;
}

/* ==========================================================================
   Premium Notification UI Overhaul
   ========================================================================== */

/* Modern Bell Button */
.modern-bell {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: #f4f7f9 !important;
  color: #4b5563 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
  position: relative;
  text-decoration: none !important;
  margin: 10px 10px 0 0;
}

.modern-bell:hover {
  background: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  color: var(--accent-color) !important;
}

.modern-bell i {
  font-size: 18px !important;
}

.modern-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  animation: pulse-red 2s infinite;
  line-height: 1 !important;
  box-sizing: content-box !important;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Premium Notification Menu */
.notification-menu {
  width: 380px !important;
  background: var(--notification-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--notification-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--notification-shadow) !important;
  padding: 0 !important;
  margin-top: 15px !important;
  overflow: hidden;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notification-header {
  padding: 20px 24px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-radius: 20px 20px 0 0 !important;
}

.notification-header strong {
  font-size: 17px !important;
  color: var(--text-main) !important;
  letter-spacing: -0.4px !important;
  font-weight: 700 !important;
}

.notification-header a {
  font-size: 12.5px !important;
  color: var(--accent-color) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.notification-header a:hover {
  opacity: 0.8;
  text-decoration: underline !important;
}

/* Notification Item */
.notification-item {
  position: relative !important;
  border-bottom: 1px solid rgba(0,0,0,0.03) !important;
  transition: all 0.2s ease !important;
  list-style: none !important;
}

.notification-item:hover {
  background: rgba(52, 152, 219, 0.04) !important;
}

.notification-link {
  padding: 16px 24px !important;
  display: flex !important;
  align-items: flex-start !important;
  text-decoration: none !important;
}

.notification-icon {
  width: 44px !important;
  height: 44px !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
  border-radius: 12px !important;
  margin-right: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.notification-icon i {
  font-size: 18px !important;
}

.notification-content {
  flex: 1 !important;
  padding-right: 20px !important;
}

.notification-unread-dot {
  position: absolute !important;
  right: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 8px !important;
  height: 8px !important;
  background: var(--accent-color) !important;
  border-radius: 50% !important;
  box-shadow: 0 0 10px var(--primary-glow) !important;
}

.notification-title {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  margin-bottom: 2px !important;
  line-height: 1.2 !important;
}

.notification-message {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  margin: 4px 0 !important;
  line-height: 1.4 !important;
}

.notification-time {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.notification-footer {
  padding: 14px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  text-align: center !important;
  border-radius: 0 0 20px 20px !important;
}

.notification-footer a {
  color: var(--accent-color) !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  letter-spacing: -0.2px !important;
}

/* ==========================================================================
   Modern Stat Cards (User Dashboard)
   ========================================================================== */

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.stat-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card-body h3 {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: #1e293b;
}

.stat-card-body p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.stat-icon-yellow { background: rgba(245,158,11,0.12); color: #f59e0b; }
.stat-icon-green  { background: rgba(16,185,129,0.12); color: #10b981; }
.stat-icon-blue   { background: rgba(99,102,241,0.12); color: #6366f1; }
.stat-icon-red    { background: rgba(239,68,68,0.12);  color: #ef4444; }

/* Action / CTA card */
.action-card {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 25px rgba(99,102,241,0.35);
  text-decoration: none;
  min-height: 98px;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(99,102,241,0.45);
  text-decoration: none;
}

.action-card-icon {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.action-card-body span {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.action-card-body small {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 400;
}

/* ==========================================================================
   Page header / title area
   ========================================================================== */

.page-header-section {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.page-header-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.4px;
}

.page-header-section p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

/* ==========================================================================
   General table polish
   ========================================================================== */

.table-responsive {
  border-radius: 10px;
  overflow: hidden;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f8faff;
}

.table-bordered {
  border: 1px solid #e5e7eb !important;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
  border: 1px solid #e5e7eb !important;
}

/* ==========================================================================
   Sidebar section label
   ========================================================================== */

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4b5563;
  padding: 16px 20px 6px;
  text-align: left;
}

/* ==========================================================================
   Global: Pill-style Status Labels / Badges
   ========================================================================== */

.label {
  display: inline-block;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.label-success {
  background: #dcfce7;
  color: #15803d;
}

.label-warning {
  background: #fef9c3;
  color: #854d0e;
}

.label-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.label-info {
  background: #e0f2fe;
  color: #075985;
}

.label-default {
  background: #f1f5f9;
  color: #475569;
}

/* ==========================================================================
   Global: Alert / Flash Message Improvements
   ========================================================================== */

.alert {
  border-radius: 10px;
  font-size: 13.5px;
  padding: 13px 18px;
  margin-bottom: 20px;
  border: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert .close {
  margin-left: auto;
  opacity: 0.5;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.alert-danger,
.alert-error  { background: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }
.alert-success { background: #f0fdf4; color: #15803d; border-left: 4px solid #22c55e; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border-left: 4px solid #3b82f6; }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }

/* ==========================================================================
   Global: Button Improvements
   ========================================================================== */

.btn-info {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border: none;
  color: #fff;
  font-weight: 600;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border: none;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   Global: Panel Heading Flex Layout (title + action button)
   ========================================================================== */

.panel-heading.ph-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.ph-flex .ph-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #374151;
}

.ph-flex .ph-title .glyphicon {
  color: #6366f1;
  font-size: 14px;
}

/* ==========================================================================
   Global: Panel Warning Style
   ========================================================================== */

.panel-warning {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.panel-warning > .panel-heading {
  background: #fffbeb;
  border-bottom: 2px solid #f59e0b;
  color: #78350f;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 18px;
}

/* ==========================================================================
   Global: Table Row Hover
   ========================================================================== */

.table > tbody > tr {
  transition: background 0.15s ease;
}

.table > tbody > tr:hover > td {
  background-color: #f0f4ff !important;
}

/* ==========================================================================
   Global: Page Title Bar (used in all listing pages)
   ========================================================================== */

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.page-title-bar .ptb-left h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.4px;
}

.page-title-bar .ptb-left p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
}

.page-title-bar .ptb-right a,
.page-title-bar .ptb-right button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ==========================================================================
   Global: Action Icon Buttons (table rows)
   ========================================================================== */

/* Cell that holds action buttons — never wraps, shrinks to content */
.td-actions {
  white-space: nowrap;
  width: 1%;
  padding: 8px 14px !important;
  vertical-align: middle !important;
}

.td-actions .action-wrap {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  text-decoration: none;
}

.action-btn:active { transform: translateY(0); }

/* Blue — Return / View */
.action-btn-blue  { background: rgba(99,102,241,0.1);  color: #4f46e5; }
.action-btn-blue:hover  { background: #4f46e5; color: #fff; }

/* Amber — Edit */
.action-btn-amber { background: rgba(245,158,11,0.1); color: #d97706; }
.action-btn-amber:hover { background: #f59e0b; color: #fff; }

/* Red — Delete / Reject */
.action-btn-red   { background: rgba(239,68,68,0.1);  color: #dc2626; }
.action-btn-red:hover   { background: #ef4444; color: #fff; }

/* Green — Approve / Activate */
.action-btn-green { background: rgba(16,185,129,0.1); color: #059669; }
.action-btn-green:hover { background: #10b981; color: #fff; }

/* ==========================================================================
   Global: Empty State
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #94a3b8;
}

.empty-state .glyphicon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
  color: #cbd5e1;
}

.empty-state p {
  font-size: 15px;
  margin: 0;
}

/* ==========================================================================
   Global: Form Label Polish
   ========================================================================== */

.form-group label {
  font-weight: 600;
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-control {
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
}

.form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
/* ============================================================
   Responsive: mobile + tablet (overflow-safe)
   ============================================================ */

/* Global box-model safety so padding/borders never add to width */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Anything that typically causes horizontal overflow */
img, video, canvas, svg, iframe, table {
  max-width: 100%;
}

/* Hamburger button (hidden on desktop) */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 10px;
  z-index: 120;
  width: 40px;
  height: 38px;
  padding: 8px 7px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.sidebar-toggle span {
  display: block;
  height: 3px;
  margin: 3px 0;
  background: #1a1f2e;
  border-radius: 2px;
}

/* Dimming backdrop when sidebar is open on mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.45);
  z-index: 95;
}
.sidebar-backdrop.show { display: block; }

/* --------- Tablet & small laptop (≤ 991px) --------- */
@media (max-width: 991px) {
  .sidebar-toggle { display: block; }

  /* Header */
  #header {
    height: 58px;
    line-height: 58px;
    padding-left: 56px;       /* room for hamburger */
  }
  header > .logo,
  .logo.pull-left {
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .logo.pull-left img { height: 42px !important; margin-top: 8px !important; }
  .header-content,
  .header-date { display: none !important; }

  /* Sidebar becomes off-canvas */
  .sidebar {
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 110;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 22px rgba(0,0,0,0.3); }

  /* Main content — kill the 280px left padding */
  .page,
  .page-lgn {
    top: 0 !important;
    padding: 70px 10px 20px 10px !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page .container-fluid {
    padding-left: 6px !important;
    padding-right: 6px !important;
    max-width: 100% !important;
  }

  /* Stack Bootstrap grid on small screens */
  .row { margin-left: 0; margin-right: 0; }
  .row > [class^="col-"],
  .row > [class*=" col-"] {
    width: 100% !important;
    float: none !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 10px;
  }

  /* Panels / cards */
  .panel, .panel-body, .panel-heading { max-width: 100%; }
  .panel-body { padding: 12px; }

  /* TABLES — force horizontal scroll inside the panel instead of blowing out */
  .table-responsive,
  .panel-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table { width: 100% !important; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Neutralise hard-coded inline widths on common wrappers */
  .login-page,
  .box,
  [style*="width: 350px"],
  [style*="width:350px"] {
    width: 100% !important;
    margin: 16px 0 !important;
  }

  /* Forms */
  .form-control { width: 100% !important; max-width: 100%; }

  /* Profile / header dropdowns */
  .notification-menu,
  .dropdown-menu {
    width: 90vw !important;
    max-width: 90vw;
    right: -4px !important;
    left: auto !important;
  }
}

/* --------- Phones (≤ 600px) --------- */
@media (max-width: 600px) {
  #header .profile span,
  #header .profile .caret { display: none !important; }

  .page-title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-title-bar .ptb-right { width: 100%; }
  .page-title-bar .ptb-right a,
  .page-title-bar .ptb-right button {
    width: 100%;
    margin: 4px 0 0 0 !important;
  }

  .panel-heading strong { font-size: 14px; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }

  .form-control { font-size: 16px; }    /* prevents iOS zoom on focus */
  .btn { padding: 10px 14px; }

  /* Auth pages (login / register) */
  .auth-card,
  .auth-card-wide {
    width: auto !important;
    max-width: 100% !important;
    margin: 14px !important;
    padding: 22px 16px !important;
  }
  .auth-grid {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .auth-field { margin-bottom: 10px; }

  /* Stats / cards grids */
  .dash-stat-grid,
  .stats-grid,
  .cards-grid { grid-template-columns: 1fr !important; }
}

/* --------- Small phones (≤ 380px) --------- */
@media (max-width: 380px) {
  .logo.pull-left img { height: 36px !important; }
  #header { height: 52px; line-height: 52px; padding-left: 52px; }
  .page, .page-lgn { padding-top: 64px !important; }
  .btn { font-size: 13px; padding: 9px 11px; }
}
