/* ===== Import Google Fonts ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url("../../../cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
/* ===== Global Styles ===== */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Inter Tight', 'PT Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden; 
  background-color: #f4f4f4;
}
/* Headings */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: #222;
  margin-top: 30px; 
  margin-bottom: 20px;
}
h1 {
  font-size: 20px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}
h4 {
  font-size: 14px;
}
h5 {
  font-size: 13px;
}
/* Paragraphs */
p {
  font-size: 12px;
  margin: 0 0 15px 0;
  color: #555;
}
li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 8px;
  list-style-position: inside;
}
li li {
  font-size: 11px;
  margin-bottom: 6px;
}
/* Optional: links inside text */
a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* Color Variables */ :root {
  --color-primary: #007bff; /* Blue */
  --color-success: #28a745; /* Green */
  --color-danger: #dc3545; /* Red */
  --color-warning: #ffc107; /* Yellow/Amber */
}
/* Text Colors */
.text-primary {
  color: var(--color-primary) !important;
}
.text-success {
  color: var(--color-success) !important;
}
.text-danger {
  color: var(--color-danger) !important;
}
.text-warning {
  color: var(--color-warning) !important;
}
/* Background Colors */
.bg-primary {
  background-color: var(--color-primary) !important;
  color: #fff;
}
.bg-success {
  background-color: var(--color-success) !important;
  color: #fff;
}
.bg-danger {
  background-color: var(--color-danger) !important;
  color: #fff;
}
.bg-warning {
  background-color: var(--color-warning) !important;
  color: #000;
}
/* Border Colors */
.border-primary {
  border: 1px solid var(--color-primary) !important;
}
.border-success {
  border: 1px solid var(--color-success) !important;
}
.border-danger {
  border: 1px solid var(--color-danger) !important;
}
.border-warning {
  border: 1px solid var(--color-warning) !important;
}
/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px; /* Fixed height for navbar */
  background-color: #034abf;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1002; /* Above sidebar and backdrop */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navbar .toggle-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}
.navbar .logout-btn {
  background: #dc3545; /* Red for logout */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
/* Navbar Left */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between toggle and logo */
}
.navbar-logo {
  height: 20px; /* Adjust height as needed */
  width: auto; /* Maintain aspect ratio */
}
.navbar-profile {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.profile-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}
/* Dropdown menu */
.profile-dropdown {
  position: absolute;
  right: 0;
  top: 45px;
  background: white;
  color: #333;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: none; /* Hidden by default */
  min-width: 120px;
  z-index: 1003;
}
.profile-dropdown li a {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}
.profile-dropdown li a:hover {
  background: #f1f1f1;
}
/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #333;
  color: white;
  position: fixed;
  top: 60px; /* Below navbar */
  left: 0;
  height: calc(100vh - 60px); /* Adjust height for navbar */
  transform: translateX(0); /* Open by default on desktop */
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Keep profile + nav contained */
}
/* Closed sidebar */
.sidebar.closed {
  transform: translateX(-250px);
}
/* Profile section stays fixed at top */
.sidebar .profile-section {
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid #555; /* Separator */
  flex-shrink: 0; /* Don't shrink */
}
/* Profile picture */
.sidebar .profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #007bff;
  margin-bottom: 10px;
}
/* Username */
.sidebar .username {
  font-size: 14px;
  color: #ccc;
  margin: 0;
}
/* Navigation list scrollable */
.sidebar ul {
  list-style: none;
  padding: 10px 20px;
  margin: 0;
  flex: 1; /* Take remaining height */
  overflow-y: auto; /* Enable vertical scrolling */
}
/* Scrollbar styling */
.sidebar ul::-webkit-scrollbar {
  width: 6px;
}
.sidebar ul::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
/* List items */
.sidebar li {
  margin: 0;
  transition: all 0.3s ease;
}
.sidebar li:hover {
  background-color: #444;
  margin: 0 -20px;
  padding: 10px 20px;
}
/* Links */
.sidebar a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  transition: color 0.3s ease;
}
.sidebar li:hover a {
  color: #007bff;
}
.sidebar ul li a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
/* Active link */
.sidebar a.active {
  background: #0b1f3a;
  color: #fff;
  border-radius: 8px;
}
.sidebar a.active i {
  color: #fff;
}
/* Dropdown parent active */
.sidebar .dropdown.active > a {
  background: #0b1f3a;
  color: #fff;
}
.sidebar .dropdown-menu {
  display: none;
  padding-left: 15px; /* Indent dropdown links */
}
.sidebar .dropdown.open .dropdown-menu {
  display: block;
}
/* Main Content */
.main-content {
  margin-top: 60px;
  margin-left: 250px;
  height: calc(100vh - 60px);
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
}
.main-content.shifted {
  margin-left: 0;
}
.content-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto; /* Allow vertical scroll if needed */
}
/* Footer */
.footer {
  background-color: #101010;
  color: #ccc;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  margin: 0;
  width: 100%;
  height: 40px;
}
/* Backdrop */
.backdrop {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.backdrop.active {
  display: block;
}
/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.card h3 {
  margin-top: 0;
}
.card button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-weight: 200;
  transition: all 0.3s ease;
}
/* Hover effect */
.card button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}
.cards .card canvas {
  width: 100% !important;
  height: 250px !important;
}
/* Mobile adjustments */
@media (max-width: 768px) {
  .card button {
    padding: 8px 12px;
    font-size: 14px;
  }
}
/* Mobile adjustments */
@media (max-width: 768px) {
  .navbar {
    height: 50px; /* Smaller on mobile */
    padding: 0 15px;
  }
  .navbar .toggle-btn {
    font-size: 18px;
    padding: 8px;
  }
  .navbar .logout-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  /* Sidebar mobile behavior */
  .sidebar {
    top: 50px;
    height: calc(100vh - 50px);
    transform: translateX(-250px); /* Hidden by default */
    position: fixed;
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0); /* Slide in when open */
  }
  .sidebar .profile-pic {
    width: 60px;
    height: 60px;
  }
  .sidebar .username {
    font-size: 12px;
  }
  /* Main content stays full width on mobile */
  .main-content {
    margin-top: 50px;
    margin-left: 0; /* Sidebar slides over */
    height: calc(100vh - 50px);
    transition: margin-left 0.3s ease;
  }
  .content-area {
    padding: 15px;
  }
  /* Backdrop */
  .backdrop {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
  }
  .backdrop.active {
    display: block;
    opacity: 1;
  }
  /* Cards */
  .cards {
    grid-template-columns: 1fr; /* Stack cards */
    gap: 15px;
  }
  .card {
    padding: 15px;
  }
  .card h3 {
    font-size: 18px;
  }
  /* Footer */
  .footer {
    padding: 8px;
    font-size: 11px;
  }
}
/* Card Canvas */
.card canvas {
  width: 100% !important;
  height: 300px !important;
}
/* Table Wrapper */
.table-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.responsive-table th, .responsive-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}
.responsive-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}
.responsive-table tr:hover {
  background-color: #f1f1f1;
}
.success {
  color: #28a745;
  font-weight: 600;
}
.pending {
  color: #ffc107;
  font-weight: 600;
}
.failed {
  color: #dc3545;
  font-weight: 600;
}
/* Mobile table behavior */
@media (max-width: 768px) {
  .responsive-table {
    font-size: 13px;
  }
}
.cards .card canvas {
  width: 100% !important;
  height: 250px !important; /* fixed height so charts render */
  display: block;
}
/*modal*/
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Darker backdrop for focus */
  transition: opacity 0.3s ease;
}
.modal-content {
  background-color: #fff;
  margin: 5% auto; /* Center vertically a bit better */
  padding: 30px 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: slideDown 0.3s ease;
  font-family: 'Rubik', sans-serif;
}
@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.2s ease;
}
.close-btn:hover {
  color: #007bff;
}
.modal-content h3 {
  margin-top: 0;
  font-size: 22px;
  color: #222;
  margin-bottom: 20px;
  text-align: center;
}
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.modal-content label {
  font-weight: 500;
  font-size: 14px;
  color: #555;
}
.modal-content input {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-content input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
.modal-content button[type="submit"] {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}
.modal-content button[type="submit"]:hover {
  background-color: #0056b3;
}
/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px 15px;
  }
  .modal-content h3 {
    font-size: 20px;
  }
  .modal-content input {
    font-size: 13px;
  }
  .modal-content button[type="submit"] {
    font-size: 14px;
    padding: 10px;
  }
  .profile-pic-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  .profile-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #007bff;
  }
  #profilePicInput {
    cursor: pointer;
  }
}
/* ================== Settings Page Forms ================== */
.card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card form label {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}
.card form input[type="text"], .card form input[type="email"], .card form input[type="password"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card form input[type="text"]:focus, .card form input[type="email"]:focus, .card form input[type="password"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  outline: none;
}
.card form button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.card form button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}
/* ================== Checkbox styling ================== */
.card input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #007bff;
}
/* ================== Connected Devices Table ================== */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.responsive-table th, .responsive-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}
.responsive-table th {
  background-color: #f4f4f4;
  font-weight: 600;
}
.responsive-table tr:nth-child(even) {
  background-color: #fafafa;
}
.responsive-table tr:hover {
  background-color: #f1f1f1;
}
.responsive-table button {
  padding: 6px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.responsive-table button:hover {
  background-color: #0056b3;
}
/* ================== Responsive Adjustments ================== */
@media (max-width: 768px) {
  .card form input[type="text"], .card form input[type="email"], .card form input[type="password"] {
    font-size: 13px;
    padding: 8px;
  }
  .card form button {
    font-size: 13px;
    padding: 8px 12px;
  }
  .responsive-table th, .responsive-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
  .responsive-table button {
    padding: 4px 8px;
    font-size: 11px;
  }
}
/* Toggle Switch Styling */
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-left: 10px;
}
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}
/* Circle inside slider */
.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
/* Checkbox checked */
.switch input:checked + .slider {
  background-color: #007bff;
}
.switch input:checked + .slider::before {
  transform: translateX(26px);
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .toggle-item {
    flex-direction: row;
    justify-content: space-between;
  }
  .toggle-label {
    font-size: 13px;
  }
  .switch {
    width: 45px;
    height: 22px;
  }
  .slider::before {
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
  }
}
/*Payment*/
.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.payment-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}
.payment-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.payment-btn i {
  font-size: 18px;
}
.payment-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
}
.payment-form input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}
.card-row {
  display: flex;
  gap: 10px;
}
.card-row > div {
  flex: 1;
}
.card-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 24px;
  color: #007bff;
}
.submit-btn {
  background: #28a745;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 15px;
  width: 100%;
}
.submit-btn:hover {
  background: #218838;
}
.credit-card {
  width: 100%;
  max-width: 340px;
  height: 200px;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.credit-card:hover {
  transform: translateY(-5px);
}
/* Card themes */
.credit-card.visa {
  background: linear-gradient(135deg, #1a1f71, #3a7bd5);
}
.credit-card.mastercard {
  background: linear-gradient(135deg, #c02425, #f0cb35);
}
.credit-card.amex {
  background: linear-gradient(135deg, #007991, #78ffd6);
}
.credit-card.expired {
  filter: grayscale(100%);
  opacity: 0.6;
}
/* Top row */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-top i {
  font-size: 32px;
}
.card-status {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 20px;
}
/* Card number */
.card-number {
  font-size: 20px;
  letter-spacing: 3px;
  margin: 20px 0;
}
/* Bottom row */
.card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.card-bottom small {
  opacity: 0.8;
  display: block;
}
.add-card {
  background: #f8f9fa;
  color: #333;
  border: 2px dashed #ccc;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
.add-card i {
  font-size: 40px;
  margin-bottom: 10px;
}
.credit-card.purple-card {
  background: linear-gradient(135deg, #6a0dad, #b19cd9); /* Purple gradient */
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 340px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.credit-card.purple-card:hover {
  transform: translateY(-5px);
}
.credit-card.purple-card .card-top i {
  font-size: 32px;
}
.credit-card.purple-card .card-status {
  font-size: 11px;
  background: rgba(255, 215, 0, 0.2); /* Gold accent */
  padding: 4px 8px;
  border-radius: 20px;
}
.credit-card.purple-card .card-number {
  font-size: 20px;
  letter-spacing: 3px;
  margin: 20px 0;
}
.credit-card.purple-card .card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.credit-card.purple-card .card-bottom small {
  opacity: 0.8;
  display: block;
}
.credit-card.red-card {
  background: linear-gradient(135deg, #ff4d4f, #ff7875); /* Red gradient */
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 340px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.credit-card.red-card:hover {
  transform: translateY(-5px);
}
.credit-card.red-card .card-top i {
  font-size: 32px;
}
.credit-card.red-card .card-status {
  font-size: 11px;
  background: rgba(255, 215, 0, 0.2); /* Gold accent */
  padding: 4px 8px;
  border-radius: 20px;
}
.credit-card.red-card .card-number {
  font-size: 20px;
  letter-spacing: 3px;
  margin: 20px 0;
}
.credit-card.red-card .card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.credit-card.red-card .card-bottom small {
  opacity: 0.8;
  display: block;
}
.credit-card.grey-card {
  background: linear-gradient(135deg, #d9d9d9, #bfbfbf); /* Grey gradient */
  color: #666; /* Muted text */
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 340px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: relative;
}
.credit-card.grey-card.expired::after {
  content: "EXPIRED";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: bold;
  pointer-events: none;
}
.credit-card.grey-card .card-top i {
  font-size: 32px;
}
.credit-card.grey-card .card-status {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 20px;
}
.credit-card.grey-card .card-number {
  font-size: 20px;
  letter-spacing: 3px;
  margin: 20px 0;
}
.credit-card.grey-card .card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.credit-card.grey-card .card-bottom small {
  opacity: 0.8;
  display: block;
}
/*transaction history*/
.transaction-filters select, .transaction-filters input[type="date"] {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.transaction-table th, .transaction-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.transaction-table tr:hover {
  background-color: #f1f1f1;
}
.transaction-table .success {
  color: #28a745;
  font-weight: 600;
}
.transaction-table .pending {
  color: #ffc107;
  font-weight: 600;
}
.transaction-table .failed {
  color: #dc3545;
  font-weight: 600;
}
/*Forms*/
/* Form input with icon */
/* Input with icon wrapper */
.input-icon {
  position: relative;
  margin-bottom: 15px;
}
.input-icon i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  pointer-events: none; /* So icon doesn’t block input clicks */
}
.input-icon input {
  width: 100%;
  padding: 10px 12px 10px 35px; /* Left padding to avoid icon overlap */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}
.input-icon input:focus {
  border-color: #007bff;
}
/* Card row for multiple inputs in one line */
.card-row {
  display: flex;
  gap: 15px;
}
.card-row div {
  flex: 1;
}
/* Basic styling for forms inside cards */
.card form input, .card form textarea, .card form select {
  width: 100%;
  padding: 10px 12px;
  margin: 5px 0 15px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.card form button {
  padding: 10px 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
/* ======================
   THEME VARIABLES
====================== */ :root {
  --bg-main: #f4f4f4; /* light mode content */
  --bg-card: #ffffff;
  --text-main: #222222;
  --text-muted: #666666;
  --border-color: #e0e0e0;
}
/* Dark mode variables (content only) */
body.dark-mode {
  --bg-main: #0f172a;
  --bg-card: #111827;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --border-color: #1f2937;
}
/* ======================
   BODY
====================== */
body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter Tight', 'PT Sans', Arial, sans-serif;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}
/* ======================
   NAVBAR (ALWAYS BLUE IN LIGHT MODE)
====================== */
.navbar {
  background: #034abf; /* always light mode blue */
  color: #ffffff;
  border-bottom: 1px solid #023d9b;
  transition: background 0.3s, color 0.3s;
}
.navbar a {
  color: #ffffff;
}
.navbar .profile-dropdown {
  background: #111827; /* dark dropdown in both modes */
  border: 1px solid #1f2937;
}
.navbar .profile-dropdown a {
  color: #e5e7eb;
}
.navbar .profile-dropdown a:hover {
  background: #1f2937;
}
/* ======================
   SIDEBAR (ALWAYS DARK)
====================== */
.sidebar {
  background: #0b1220; /* original dark sidebar */
  color: #ffffff;
}
.sidebar a {
  color: #cbd5e1;
}
.sidebar a:hover, .sidebar a.active {
  color: #ffffff;
}
/* ======================
   CONTENT AREA (SWITCHES DARK MODE)
====================== */
.content-area {
  background: var(--bg-main);
  color: var(--text-main);
  transition: background 0.3s, color 0.3s;
}
/* ======================
   CARDS TEXT COLOR FIX
====================== */
.card {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.card h3, .card p, .card span, .card small, .card label {
  color: var(--text-main);
  transition: color 0.3s;
}
.card button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.card button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}
/* ======================
   FORMS & INPUTS
====================== */
input, select, textarea {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}
/* ======================
   TABLES - Header Dark Text Stable
====================== */
th {
  padding: 12px;
  font-weight: 600;
  background: var(--bg-card); /* matches card background */
  color: #222222; /* always dark for header text */
  border: 1px solid var(--border-color);
}
/* Table cells */
td {
  padding: 12px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
/* Table rows stable */
tr {
  background: var(--bg-card);
  color: var(--text-main);
}
tr:nth-child(even) {
  background: var(--bg-card);
}
tr:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
/* ======================
   FOOTER
====================== */
.footer {
  background: var(--bg-card);
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}
/* ===== Headings Color Fix ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  transition: color 0.3s;
}
/* ======================
   NAVBAR RIGHT ALIGNMENT
====================== */
.navbar-right {
  display: flex;
  align-items: center; /* vertically center all items */
  gap: 15px; /* space between dark mode toggle and profile */
}
/* ======================
   DARK MODE TOGGLE
====================== */
.dark-toggle {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px; /* match profile pic approx */
  width: 40px;
  border-radius: 6px;
  transition: background 0.2s;
}
.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
/* ======================
   FORM LABELS FIX
====================== */
label, .card label, .modal-content label, input + label, textarea + label, select + label {
  color: var(--text-main) !important; /* force white in dark mode */
  transition: color 0.3s;
}
/*dropdown-additions*/
.sidebar ul li.dropdown.active .arrow {
  transform: rotate(180deg);
}
/* Dropdown menu */
.sidebar ul li .dropdown-menu {
  display: none;
  background: #0f172a;
}
.sidebar ul li .dropdown-menu li a {
  padding-left: 40px;
}
.sidebar ul li.dropdown.active .dropdown-menu {
  display: block;
}
/* === FORCE badge to behave like button === */
table .badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 14px !important;
  min-width: 64px;
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background-clip: padding-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  line-height: 1;
  white-space: nowrap;
}
/* States */
table .badge.success {
  background-color: #e6f7ef !important;
  color: #157347 !important;
  border-color: #b7e4c7 !important;
}
table .badge.warning {
  background-color: #fff8e1 !important;
  color: #8a6d00 !important;
  border-color: #ffe08a !important;
}
table .badge.danger {
  background-color: #fdecea !important;
  color: #b02a37 !important;
  border-color: #f5c2c7 !important;
}
/* Dropdown wrapper */
.action-dropdown {
  position: relative;
  display: inline-block;
}
/* Button styling */
.action-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  min-width: 80px;
  text-align: left;
}
/* Dropdown menu */
.action-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  z-index: 100;
  padding: 5px 0;
}
.action-menu li {
  list-style: none;
}
.action-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}
.action-menu li a:hover {
  background-color: #f1f1f1;
}
/* Show menu on button hover */
.action-dropdown:hover .action-menu {
  display: block;
}
.table-wrapper {
  max-height: none;
  overflow-y: visible;
}
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
/* Product table specific */
table .product-img {
  width: 60px;
  border-radius: 6px;
  font-size: 12px;
}
.table-wrapper {
  overflow: hidden; /* remove scroll */
}
.responsive-table th, .responsive-table td {
  text-align: left;
  padding: 10px 8px;
}
.action-dropdown {
  position: relative;
  display: inline-block;
}
.action-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  min-width: 80px;
  text-align: left;
}
.action-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  z-index: 100;
  padding: 5px 0;
}
.action-menu li {
  list-style: none;
}
.action-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}
.action-menu li a:hover {
  background-color: #f1f1f1;
}
.action-dropdown:hover .action-menu {
  display: block;
}
.cart-table-wrapper {
  overflow-x: auto;
  width: 100%;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 12px;
}
.cart-table th, .cart-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
  font-size: 12px;
}
.cart-table th {
  background-color: #f8f8f8;
  text-align: left;
  font-size: 12px;
}
.cart-table img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  font-size: 12px;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 5px;
}
.qty-control button {
  width: 28px;
  height: 28px;
  border: none;
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}
.qty-control input {
  width: 90px; /* Increased width to fit 2-digit numbers */
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 28px;
  font-size: 14px; /* Slightly bigger for readability */
}
.remove-btn {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.cart-total {
  text-align: right;
  font-weight: bold;
  font-size: 12px;
  margin-top: 10px;
}
.checkout-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #28a745;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}
/* Grid for stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
/* Base card tweaks */
.card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.85;
}
.card h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
/* Color variants */
.card-primary {
  background: #8fbdfc;
  color: #084298;
}
.card-secondary {
  background: #f1f3f5;
  color: #495057;
}
.card-success {
  background: #8df8c6;
  color: #157347;
}
.card-warning {
  background: #fce69f;
  color: #8a6d00;
}
.card-danger {
  background: #fdecea;
  color: #b02a37;
}
.card-dark {
  background: #212529;
  color: #ffffff;
}
.card-dark {
  background: #212529;
  color: #ffffff;
}
.card-dark h2, .card-dark h4, .card-dark p {
  color: #ffffff;
}
.card-grey {
  background: #f5f5f5;
  color: #444;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.card-icon {
  font-size: 20px;
  opacity: 0.9;
}
.card-dark .card-icon, .card-dark h4, .card-dark h2 {
  color: #fff;
}
.stats-grid .card h2, .stats-grid .card h4 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.stats-grid .card-icon {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.alert i {
  font-size: 16px;
}
/* Alerts Variants */
.alert-primary {
  background: #e7f1ff;
  color: #0b5ed7;
  border-color: #b6d4fe;
}
.alert-success {
  background: #e6f7ef;
  color: #157347;
  border-color: #b7e4c7;
}
.alert-warning {
  background: #fff8e1;
  color: #8a6d00;
  border-color: #ffe08a;
}
.alert-danger {
  background: #fdecea;
  color: #b02a37;
  border-color: #f5c2c7;
}
.alert-dark {
  background: #212529;
  color: #ffffff;
  border-color: #343a40;
}
.alert-grey {
  background: #f1f3f5;
  color: #495057;
  border-color: #dee2e6;
}
/*Progress bars*/
.progress-group {
  margin-bottom: 16px;
}
.progress-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}
.progress {
  background-color: #e9ecef;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 14px;
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
/* Variants */
.progress-primary {
  background: #77aaf5;
}
.progress-success {
  background: #40db93;
}
.progress-warning {
  background: #ffc107;
  color: #000;
}
.progress-danger {
  background: #dc3545;
}
.progress-dark {
  background: #212529;
}
.progress-grey {
  background: #adb5bd;
}
/*Tabs*/
.tabs {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.tab-buttons {
  display: flex;
  border-bottom: 1px solid #eee;
}
.tab-btn {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.tab-btn:hover {
  background: #f5f7fa;
}
.tab-btn.active {
  color: #4f46e5;
  border-bottom: 3px solid #4f46e5;
}
.tab-content {
  display: none;
  padding: 20px;
}
.tab-content.active {
  display: block;
}
/*Accordion*/
.accordion-section-header {
  background: #4f46e5;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.accordion {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 1400px;
}
.accordion-item + .accordion-item {
  border-top: 1px solid #eee;
}
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: #f5f7fa;
  transition: background 0.3s;
  display: flex;
  justify-content: space-between; /* Arrow at right edge */
  align-items: center;
}
.accordion-header:hover {
  background: #eaeef7;
}
.accordion-header[aria-expanded="true"] {
  background: #9cabfa;
  color: #fff;
}
.accordion-icon {
  transition: transform 0.3s;
  font-size: 14px;
}
.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}
.accordion-body {
  display: none;
  padding: 15px 20px;
  background: #fff;
  max-height: 200px; /* Scroll if content is bigger */
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}
/* Buttons*/
.btn {
  font-weight: 300;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  margin: 5px;
}
/* Sizes */
.btn-big {
  padding: 16px 32px;
  font-size: 14px;
}
.btn-large {
  padding: 14px 28px;
  font-size: 12px;
}
.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}
/* Colors */
.btn-primary {
  background: #4f46e5;
  color: #fff;
}
.btn-success {
  background: #16a34a;
  color: #fff;
}
.btn-warning {
  background: #f59e0b;
  color: #fff;
}
.btn-danger {
  background: #dc2626;
  color: #fff;
}
/* Outlined */
.btn-outlined {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}
.btn-outlined.btn-primary {
  color: #4f46e5;
  border-color: #4f46e5;
}
.btn-outlined.btn-success {
  color: #16a34a;
  border-color: #16a34a;
}
.btn-outlined.btn-danger {
  color: #dc2626;
  border-color: #dc2626;
}
.btn-outlined.btn-warning {
  color: #f59e0b;
  border-color: #f59e0b;
}
/* Light buttons base */
.btn-light {
  background: rgba(245, 247, 250, 0.8);
  color: #333;
  border: 2px solid transparent;
  transition: 0.3s;
}
/* Light button types */
.btn-light.btn-primary {
  color: #4f46e5;
}
.btn-light.btn-success {
  color: #16a34a;
}
.btn-light.btn-warning {
  color: #f59e0b;
}
.btn-light.btn-danger {
  color: #dc2626;
}
/* Hover effects with type-specific background */
.btn-light.btn-primary:hover {
  background: rgba(79, 70, 229, 0.1);
}
.btn-light.btn-success:hover {
  background: rgba(22, 163, 74, 0.1);
}
.btn-light.btn-warning:hover {
  background: rgba(245, 158, 11, 0.1);
}
.btn-light.btn-danger:hover {
  background: rgba(220, 38, 38, 0.1);
}
.btn-light-radius {
  border-radius: 30px;
}
/* Border radius variations */
.btn-radius-small {
  border-radius: 4px;
}
.btn-radius-medium {
  border-radius: 12px;
}
.btn-radius-large {
  border-radius: 30px;
}
/* Hover effects */
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
/* -------------------- INPUTS -------------------- */
input[type="text"], input[type="email"], input[type="number"], input[type="password"], textarea, select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  transition: all 0.3s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #4f46e5; /* primary color focus */
  box-shadow: 0 0 5px rgba(79, 70, 229, 0.3);
}
/* -------------------- BORDER-RADIUS VARIANTS -------------------- */
.input-rounded {
  border-radius: 20px;
}
.input-square {
  border-radius: 0;
}
/* -------------------- COLORS -------------------- */
.input-primary {
  border-color: #4f46e5;
}
.input-secondary {
  border-color: #6c757d;
}
.input-success {
  border-color: #28a745;
}
.input-warning {
  border-color: #ffc107;
}
.input-danger {
  border-color: #dc3545;
}
.input-dark {
  border-color: #343a40;
}
.input-grey {
  border-color: #adb5bd;
}
/* -------------------- TOGGLES -------------------- */
.toggle-switch {
  position: relative;
}
.toggle-switch input {
  display: none; /* hide default checkbox */
}
.toggle-slider {
  width: 40px;
  height: 20px;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  transition: 0.3s;
  flex-shrink: 0;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-switch input:checked + .toggle-slider {
  background: #4f46e5; /* color when active */
}
/* -------------------- CHECKBOXES & RADIOS -------------------- */
.checkbox-container, .radio-container {
  display: block;
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
.checkbox-container input, .radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkbox-checkmark, .radio-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 4px;
  transition: all 0.3s;
}
.radio-checkmark {
  border-radius: 50%;
}
.checkbox-container:hover input ~ .checkbox-checkmark, .radio-container:hover input ~ .radio-checkmark {
  background-color: #ddd;
}
.checkbox-container input:checked ~ .checkbox-checkmark {
  background-color: #4f46e5;
}
.radio-container input:checked ~ .radio-checkmark {
  background-color: #4f46e5;
}
.checkbox-checkmark::after {
  content: "";
  position: absolute;
  display: none;
}
.checkbox-container input:checked ~ .checkbox-checkmark::after {
  display: block;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.radio-checkmark::after {
  content: "";
  position: absolute;
  display: none;
}
.radio-container input:checked ~ .radio-checkmark::after {
  display: block;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
/* -------------------- SELECTS -------------------- */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5'%3E%3Cpath fill='%23333' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 5px;
  padding-right: 30px;
}
/* -------------------- TEXTAREA SCROLL -------------------- */
textarea {
  max-height: 150px;
  overflow-y: auto;
}

/* Right navbar alignment (important) */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Notification wrapper */
.navbar-notification {
  position: relative;
  display: flex;
  align-items: center;
}

/* Button */
.notification-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 6px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* Badge */
.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;

  min-width: 14px;
  height: 14px;

  background: #ff3b3b;
  color: #fff;
  font-size: 9px;
  font-weight: 600;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

/* Pulse */
.notification-badge.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.6);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* =========================
   Notifications Page
========================= */

.page-header {
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
}

.page-header p {
  font-size: 13px;
  color: #777;
  margin-top: 5px;
}

/* Filters */
.notification-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.notification-filters .btn {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-filters .btn:hover {
  background: #f1f3f5;
}

.notification-filters .btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.notification-filters .btn.danger {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

/* Notifications Wrapper */
.notifications-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Notification Item */
.notification-item {
  display: flex;
  gap: 15px;
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  position: relative;
}

.notification-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* Unread indicator */
.notification-item.unread {
  border-left: 4px solid #007bff;
  background: #f8fbff;
}

/* Icon */
.notification-item .icon {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.icon.success {
  background: #28a745;
}

.icon.warning {
  background: #ffc107;
  color: #222;
}

.icon.info {
  background: #17a2b8;
}

.icon.danger {
  background: #dc3545;
}

/* Content */
.notification-item .content {
  flex: 1;
}

.notification-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
}

.notification-item p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.notification-item .time {
  font-size: 11px;
  color: #999;
  display: block;
  margin-top: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .notification-item {
    padding: 15px;
  }

  .notification-item h4 {
    font-size: 14px;
  }
}
