
/* ===== Modern Dashboard CSS ===== */
:root {
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --primary-light: #4895ef;
  --secondary: #f72585;
  --success: #4cc9f0;
  --danger: #f72585;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: radial-gradient(circle at center, #e9ebf3 0%, #c8c6f6 100%);
  color: var(--dark);
  padding: 0;
  min-height: 70vh;

}

.container {
  width: 170%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== Typography ===== */

.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}


h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #164996;
}

h3 {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #314061;
  letter-spacing: -0.3px;
}


/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
 .main-content h2 {
    font-size: 1.1rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-links a {
    width: 100%;
    justify-content: center;
  }
  
  /* Stacked table for mobile */
  table {
    display: block;
    width: 100%;
  }
  
  thead {
    display: none;
  }
}


.container {
  width: 170%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}


/* =======START FOR ALL PASSWORD PAGES HERE========= */

/* LOGIN PAGE START*/

.login-container {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  background: rgb(255, 255, 255);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.5s ease-out;
  margin-top: 120px;
 

}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: 2rem;
  color: #2a66c1;
  margin-bottom: 0.5rem;
  text-align: center;
  margin-left: 50px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.9px;
  font-weight: 600;
  
}


.login-header p {
  color: #575e70;
  margin-top: -10px;
  margin-bottom: 60px;
  letter-spacing: -0.1px;
  font-family: 'Inter', sans-serif;
  font-size: 0.91rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;

}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  font-size: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: #f8f9fa;
  
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  background-color: white;
  
}

.form-group::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  z-index: 2;
}


.login-btn {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--primary-dark);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.login-btn:hover {
  
  background-color: #f72585;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


.error-message {
  padding: 0.8rem 1rem;
  margin-top: 1rem;
  background-color: rgba(247, 37, 133, 0.2);
  color: #a31245;
  border-left: 4px solid var(--danger);
  border-radius: 4px;
  font-weight: 500;
  animation: shake 0.5s ease-in-out;
}

/* Animation for error message */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ===== Responsive Styles ===== */
@media (max-width: 980px) {
  .login-container {
    margin: 2rem auto;
    padding: 1.5rem;
    width: 90%;
    margin-top: 160px;
  }
  
  .login-header h2 {
    font-size: 1.3rem;
    text-align: center;
    margin-left: 63px;
  }
  
  .form-group input {
    padding: 0.7rem 1rem 0.7rem 2.2rem;
  }
  
  .form-group::before {
    left: 0.8rem;
    font-size: 0.87rem;

  }

.login-header p {
  font-size: 0.85rem;
}

}


/* text link */
.text-link {
  color: #408fe3;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.text-link:hover,
.text-link:focus {
  color: #053160;
  text-decoration: underline;
  outline: none;
}


/* trademark */
.trademark p {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: -50px;
}

@media (max-width: 600px) {

  .trademark p {
  margin-top: -10px;
}

.text-link {
  font-size: 0.8rem;
}


}


.below-login-logo {
  text-align: center;
  margin-top: -60px;
}

.login-logo {
  max-width: 120px;
  height: auto;
  display: inline-block;
  margin-bottom: 10px;
}

.trademark {
  font-size: 14px;
  color: #666;
  margin-top: -20px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .below-login-logo {
    margin-top: -0px; /* Adjust top margin on mobile */
  }

  .login-logo {
    max-width: 100px; /* Smaller logo for mobile */
    margin-bottom: 8px;
  }

  .trademark {
    font-size: 0.78rem;  /* Smaller text on mobile */
    margin-top: -20;    /* Remove top margin on mobile */
  }
}




/* TERMS PAGE HERE */
/* === Terms and Conditions Page Styles === */
.terms-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  
  padding: 40px 20px;
}

.terms-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 40px;
  background-color: #f4f4fb;
  color: #333;
  line-height: 1.4;
  border-radius: 10px;
}

.terms-container h1,
.terms-container h2 {
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
}

.terms-container h1 {
  font-size: 1.6rem;
}

.terms-container h2 {
  font-size: 1.1rem;
  margin-bottom: 9px;
}

.terms-container p {
  font-size: 0.85rem;
  color: #57636e;
  margin-bottom: 1.2em;
  text-align: justify;
  letter-spacing: -0.2px;
  font-family: 'Inter', sans-serif;
  margin-top: 0px;
  line-height: 1.65;
}


.terms-container a.back-home {
  display: inline-block;
  margin-top: 30px;
  text-decoration: none;
  background: #007bff;
  color: #fff;
  padding: 7px 18px;
  border-radius: 5px;
  font-weight: bold;
}

.terms-container a.back-home:hover {
  background-color: #0056b3;
}

@media (max-width: 800px) {

.terms-container h1 {
  font-size: 1.2rem;
}

.terms-container h2 {
  font-size: 1rem;
}

.terms-container p {
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: left;
}

.terms-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 23px;

}

}


/*========RESET REQUEST PAGE START HERE========== */
.reset-container {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 90%;
  margin: 4rem auto;
  font-family: 'Poppins', sans-serif;
  margin-top: 180px;
}

.reset-container h2 {
  margin-bottom: 1rem;
  color: #0d4c8c;
  font-family: 'Poppins', sans-serif;
}

.reset-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.reset-container input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.reset-container input[type="email"]:focus {
  border-color: #2980b9;
  outline: none;
}

.reset-container button {
  width: 100%;
  padding: 0.75rem;
  background-color: #2980b9;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.reset-container button:hover {
  background-color: #216799;
}

/* JS NOTIFICATION */
.notification {
  padding: 12px 15px;
  margin-top: 20px;
  border-radius: 6px;
  font-weight: 500;
  font-family: Arial, sans-serif;
  animation: fadeIn 0.3s ease-in-out;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}




/* ===============RESET PAGE STARTS============
/* reset-password.css */
.reset-container {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 90%;
  margin: 4rem auto;
  font-family: 'Poppins', sans-serif;
  margin-top: 180px;
}

.reset-container h2 {
  margin-bottom: 1rem;
  color: #0d4c8c;
  font-family: 'Poppins', sans-serif;
}

.reset-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  font-family: 'Inter', sans-serif;
}

.reset-container input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.reset-container input[type="password"]:focus {
  border-color: #2980b9;
  outline: none;
}

.reset-container button {
  width: 100%;
  padding: 0.75rem;
  background-color: #2459c2;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-family: 'Inter', sans-serif;
 
}

.reset-container button:hover {
  background-color: #141f52;
}

/* Add this to your assets/style.css */

.notification {
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.notification.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 5px solid #28a745;
}

.notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 5px solid #dc3545;
}

/* =======END FOR ALL PASSWORD PAGES=========== */


/*======DESIGN FOR HEADER STICKY START HERE*/
/* ===== Sticky Header ===== */
.main-header {
  position: sticky;
  top: 0;
  background-color: #141431;
  padding: 3px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 9999000009;
}

.main-header img {
  height: 60px;
  max-width: 140px;
  object-fit: contain;
}

/* Optional: Responsive resizing */
@media screen and (max-width: 600px) {
  .main-header img {
    height: 30px;
    margin-top: 8px;
  }
}




/* Left sidebar */
/* === Sidebar Design Start=== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 820px;
  height: 100%;
  background-color: #141431;
  padding: 20px 15px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
margin-top: -2px;
  z-index: 999;
}

.sidebar h3 {
  font-size: 1rem;
  margin: 20px 0 30px 15px;
  font-weight: 500;
  color: #b8b4db;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  text-decoration: none; /* ensures no underline */
  letter-spacing: -0.1px;
  margin-top: -1px;
  margin-bottom: -5px;
}


.sidebar ul {
  list-style: none;
  padding: 0;
  text-align: left;
 
}

.sidebar ul li {
  margin-bottom: 15px;
}

.sidebar ul li a {
  color: #e5e7f1;
  text-decoration: none;
  display: block;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  margin-bottom: 4px;
 

}

.sidebar a i {
  margin-right: 8px;
}

/* New Sidebar Design with Enhanced Transitions */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.sidebar-menu li {
  margin-bottom: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #fff;
  background: #2d2f49;
  position: relative;
  overflow: hidden;
}

.sidebar-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.4s ease;
  z-index: 0;
}

.sidebar-menu a i {
  font-size: 18px;
  margin-right: 12px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
}

.sidebar-menu a span {
  flex: 1;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Unique background colors per item - cool tones only */
.sidebar-menu li:nth-child(1) a { background: #4a6cf7; }  /* Blue */
.sidebar-menu li:nth-child(2) a { background: #1abc9c; }  /* Turquoise */
.sidebar-menu li:nth-child(3) a { background: #1b7a57; }  /* Green */
.sidebar-menu li:nth-child(4) a { background: #3498db; }  /* Light Blue */
.sidebar-menu li:nth-child(5) a { background: #1682a0; }  /* Teal */
.sidebar-menu li:nth-child(6) a { background: #9b59b6; }  /* Purple */
.sidebar-menu li:nth-child(7) a { background: #34495e; }  /* Dark Slate Blue */


/* Hover effects with smooth transitions */
.sidebar-menu li:hover {
  transform: translateY(-2px);
}

.sidebar-menu a:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.sidebar-menu a:hover::before {
  width: 100%;
}

.sidebar-menu a:hover i {
  transform: rotate(10deg) scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-menu a:hover span {
  letter-spacing: 0.5px;
}

/* Active state */
.sidebar-menu a.active {
  transform: translateX(8px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.sidebar-menu a.active i {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Animation for menu items when loading */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-menu li {
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.sidebar-menu li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-menu li:nth-child(2) { animation-delay: 0.2s; }
.sidebar-menu li:nth-child(3) { animation-delay: 0.3s; }
.sidebar-menu li:nth-child(4) { animation-delay: 0.4s; }
.sidebar-menu li:nth-child(5) { animation-delay: 0.5s; }
.sidebar-menu li:nth-child(6) { animation-delay: 0.6s; }
.sidebar-menu li:nth-child(7) { animation-delay: 0.7s; }

/* subheader in menu */
.sidebar-menu .menu-section {
  padding: 10px 15px;
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 20px;
  border-bottom: 1px solid #eee;
}


/* === Main Content next to sidebar === */
.main-content {
  margin-left: 240px;
  padding: 20px;
}

/* Test sidebar and menu */
/* DESKTOP */
.sidebar {
  width: 230px;
  position: fixed;
  top: 70px; /* adjust if your header height differs */
  left: 0;
  height: 100%;
  background: #151634;
  padding: 20px;
}

/* Hide toggle on desktop */
.menu-toggle {
  display: none;
}

/* MOBILE */
@media (max-width: 1028px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 70%;
    background: #151634;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    left: 0;
  }

.menu-toggle {
  display: block;
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  top: -2px;
  right: 15px;
  color: #ccd4f6;
  width: 60px; /* ← Add this */
  text-align: center; /* ← Center the icon inside */
}

.sidebar h3 {
  margin-top: 60px;
  margin-bottom: 30px;
}

}

@media (max-width: 868px) {

  .sidebar ul li a {
    font-size: 0.9rem;
    margin-bottom: 0px;
  }

}


.main-header {
  background: #151634; /* Matches sidebar */
  border-bottom: 1px solid #1f203c;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container img {
  height: 40px;
  margin-left: 20px;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.datetime-desktop {
  display: block;
  font-weight: 300;
  color: #c9d0f1; /* Light text */
  font-family: 'Poppins', sans-serif;
}

.header-icons {
  display: flex;
  gap: 15px;
}

.icon-item {
  display: flex;
  align-items: center;
  color: #cac6e7; /* Light icons */
  text-decoration: none;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.icon-item i {
  margin-right: 5px;
  font-size: 27px;
  color: #cdcde1;
}

.icon-label {
  display: inline;
}

.menu-toggle {
  font-size: 20px;
  cursor: pointer;
  color: #f5f5f5; /* Light burger icon */
}

/* Responsive */
@media screen and (max-width: 1028px) {
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 35px;
    padding: 0 10px;
  }

  .logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    z-index: 2;
  }

  .logo-container img {
    height: 30px;
    max-width: 100px;
    margin-top: 2px;
    margin-left: -11px;
  }

  .header-icons {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    z-index: 1;
    margin-top: 2px;
    margin-left: 80px;
    font-size: 20px;
  }

  .header-icons i {
    font-size: 23px;
  }

  .icon-label {
    display: none; /* Hide text on mobile */
  }

  .menu-toggle {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    font-size: 22px;
    color: #d9e0ff;
    z-index: 2;
    margin-right: -22px;
   
  }

  .datetime-desktop {
    display: none;
  }
}

/* dropdown hover */
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.icon-item {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: row;      /* Side by side */
  align-items: center;      /* Vertically center */
  color: #d3d7ee;
  margin-right: 30px;
}

.icon-item i {
  font-size: 25px;
  margin-right: 6px;        /* Space between icon and label */
}

.icon-label {
  font-size: 14px;
  margin-top: 0;            /* Remove top margin */
}


@media (max-width: 768px) {
  .header-icons {
    position: absolute;     /* So it can be centered within relative parent */
    left: 50%;              /* Move left edge to 50% */
    top: 50%;               /* Center vertically if needed */
    transform: translate(-50%, -50%);  /* Center exactly by shifting left/up by half width/height */
    gap: 15px;
    z-index: 10;
  }

  .icon-item {
    flex-direction: row;    /* Arrange icon + label horizontally on mobile */
    color: #d4d4ec;         /* Example: light color for mobile */
     margin-right: 1px;
  }

  .icon-item i {
    font-size: 24px;
  }

  .icon-label {
    font-size: 14px;
    margin-top: 0;
    margin-left: 6px;
  }
}


/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 35px;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
  min-width: 150px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

/* Show dropdown when active */
.icon-item.active .dropdown-menu {
  display: block;
}

/* notifications */



.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: bold;
  line-height: 1;
  pointer-events: none; /* clicks pass through */
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  min-width: 20px;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}





/* ============DESIGN FOR ALL INTERIOR PAGES START HERE============= */



/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-links a {
    width: 100%;
    justify-content: center;
  }
  
  /* Stacked table for mobile */
  table {
    display: block;
    width: 100%;
  }
  
  thead {
    display: none;
  }
  
  tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    background: white;
    box-shadow: var(--shadow-sm);
  }
  
  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid var(--light-gray);
  }
  
  td:last-child {
    border-bottom: none;
  }
  
  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-dark);
    margin-right: 1rem;
    flex: 1;
  }
  
  .action-buttons {
    justify-content: flex-end;
  }
  
  .password-form {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .action-buttons {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .action-buttons a {
    justify-content: center;
  }
}




*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}



:root {
  --primary: #4361ee;
  --primary-light: #5a75f5;
  --danger: #ef233c;
  --light-gray: #f1f5f9;
  --medium-gray: #e2e8f0;
  --dark-gray: #64748b;
  --border-radius: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}


/* ==================CUSTOMERS PAGE STARTS============ */

/*  Modern Table Styles*/
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
  background: white;
  transition: var(--transition);
}

.table-container:hover {
  box-shadow: var(--shadow-lg);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  font-size: 0.95rem;
}

th, td {
  padding: 0.65rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
  transition: var(--transition);
  color: #616161;
  font-size: 0.88rem;
}

th {
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

th:first-child {
  border-top-left-radius: var(--border-radius);
}

th:last-child {
  border-top-right-radius: var(--border-radius);
}

tr {
  transition: var(--transition);
}

tr:hover {
  background-color: rgba(67, 97, 238, 0.03);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

tr:last-child td {
  border-bottom: none;
}

/* Action Buttons - Modern Style */
.action-buttons {
  display: flex;
  gap: 0.75rem;
}

.action-buttons a, 
.action-buttons button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  min-width: 70px;
}

.action-buttons a.edit {
  background-color: var(--primary-light);
  color: white;
}

.action-buttons a.delete,
.action-buttons button.delete {
  background-color: var(--danger);
  color: white;
}

.action-buttons a:hover,
.action-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  opacity: 0.9;
}

.action-buttons a:active,
.action-buttons button:active {
  transform: translateY(0);
}

/* Modern Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-content p {
  font-size: 0.87rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.modal-content .modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-content button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  flex: 1;
  max-width: 120px;
}

#confirmYes {
  background-color: var(--danger);
  color: white;
}

#confirmYes:hover {
  background-color: #d11a2d;
  box-shadow: var(--shadow-sm);
}

#confirmNo {
  background-color: white;
  color: var(--dark-gray);
  border: 1px solid var(--medium-gray);
}

#confirmNo:hover {
  background-color: var(--light-gray);
}

/* Responsive Table */
@media (max-width: 968px) {
  th, td {
    padding: 1rem;
  }
}

/* Stacked table for mobile */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
  }

  td {
    padding: 0.75rem 1rem 0.75rem 50%;
    position: relative;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: calc(50% - 1rem);
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.85rem;
  }

  .action-buttons {
    justify-content: flex-end;
  }
}


/* SECTION WITH FILTER  */
/* ===== CUSTOMER CONTROL BAR ===== */
.customer-controls-section {
  margin-bottom: 25px;
}

.customer-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  flex-wrap: wrap;
  gap: 10px;
}

/* Left / Center / Right groups */
.control-left,
.control-center,
.control-right {
  display: flex;
  align-items: center;
}

/* Center form stays aligned */
.control-center {
  flex-grow: 1;
  justify-content: center;
}

/* Buttons (reuse your CRM look) */
.btn-primary,
.btn-secondary,
.btn-filter,
.select-filter {
  font-size: 14px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 39px;
  text-decoration: none; /* removes underline */
}

/* Primary button */
.btn-primary {
  background: #007bff;
  color: #fff;
  font-weight: 500;
  padding: 8px 16px;
  box-shadow: 0 3px 8px rgba(0,123,255,0.25);
}

.btn-primary:hover {
  background: #0056d2;
  box-shadow: 0 4px 12px rgba(0,123,255,0.35);
}

/* Secondary button */
.btn-secondary {
  background: #f1f3f5;
  color: #333;
  font-weight: 500;
  padding: 8px 16px;
}

.btn-secondary:hover {
  background: #e0e3e7;
}

/* Filter group styling */
.filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  background: #f9fafc;
  border-radius: 8px;
  padding: 4px;
}

.btn-filter {
  background: #f1f3f5;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none; /* removes underline */
}

.btn-filter.active {
  background: #1f377c;
  color: #fff;
}

.select-filter {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 12px;
}

.select-filter:hover {
  border-color: #007bff;
}

/* PDF button icon spacing */
.btn-secondary i,
.btn-primary i {
  margin-right: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .customer-control-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .control-center {
    justify-content: center;
    width: 100%;
  }

  .filter-group {
    flex-wrap: wrap;
    justify-content: center;
  
  }

  .btn-filter,
  .select-filter,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    border-radius: 8px !important;
  }
}

@media (max-width: 768px) {
  .filter-group > * {
    margin-bottom: 8px; /* adds space between month, year, filter */
  }

  .filter-group {
    flex-wrap: wrap;
    justify-content: center;
  }

    /* Make Add Customer button balanced on mobile */
  .control-left .btn-primary {
    width: auto;          /* don’t stretch full width */
    max-width: 100%;       /* still responsive */
    align-self: center;
    margin: 0 auto 8px;   /* center with spacing */
  }

}


/* Customer Form */
.payment-form2 {
  background: #ffffff;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 380px;
  margin-bottom: 2rem;
}

.payment-form2 h3 {
  margin-bottom: 20px;
  color: #111827;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.025em;
}

.payment-form2 label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.payment-form2 input[type="text"],
.payment-form2 input[type="email"],
.payment-form2 input[type="date"],
.payment-form2 input[type="password"],

.payment-form2 textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
  transition: all 0.2s ease;
}

.payment-form2 input[type="text"]:focus,
.payment-form2 input[type="email"]:focus,
.payment-form2 input[type="date"]:focus,
.payment-form2 textarea:focus {
  border-color: #3b82f6;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Select Dropdown Styling */
.payment-form2 select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fafafa;
  transition: all 0.2s ease;
}

.payment-form2 select:focus {
  border-color: #3b82f6;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.payment-form2 button.btn-primary {
  background-color: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.payment-form2 button.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.payment-form2 a.btn {
  background-color: #f8fafc;
  color: #374151;
  padding: 10px 16px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.payment-form2 a.btn:hover {
  background-color: #f1f5f9;
  border-color: #d1d5db;
}

.payment-form2 textarea {
  min-height: 70px;
  resize: vertical;
  font-family: 'Inter', sans-serif;
}

/* Compact spacing */
.payment-form2 > * {
  margin-bottom: 12px;
}

.payment-form2 > *:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .payment-form2 {
    padding: 20px;
    max-width: 100%;
  }
  
  .payment-form2 h3 {
    font-size: 1rem;
    margin-bottom: 18px;
  }
}


/*==================== EDIT CUSTOMER PAGE ========*/
/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Primary Button */
.btn-primary {
  background-color: #6c63ff;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #554eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Secondary Button */
.btn-secondary {
  background-color: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Button Icons */
.btn-primary i, 
.btn-secondary i {
  font-size: 14px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
}

@media screen and (max-width: 768px) {
  .form-actions {
    gap: 10px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 10px 14px;
    font-size: 13px;
  }
}


/* PASSWORD FORM */
/* Form container */
#customerPortalForm {
    border: 1px dashed #ccc;
    padding: 20px;
    margin-top: 15px;
    max-width: 400px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Label */
#customerPortalLabel {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 0.9rem;
}

/* Password input */
#portal_password_input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#portal_password_input:focus {
    border-color: #3e8e41;
    outline: none;
}

/* Submit button */
#customerPortalSubmit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #2c387d;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    font-family: 'Inter', sans-serif;
}

#customerPortalSubmit:hover {
    background-color: #1e164d;
}

/* Font Awesome icon inside button */
#customerPortalSubmit i {
    font-size: 14px;
}



/* ===========DASHBORAD PAGE START HERE ============*/

.dashboard-widgets {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* Modern Light Mode Widgets */
:root {
  --widget-bg: rgba(255, 255, 255, 0.85);
  --widget-border: rgba(255, 255, 255, 0.3);
  --widget-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  --accent: #4361ee; /* Royal Blue (adjustable) */
  --text-main: #2b2d42;
  --text-secondary: #6c757d;
  --highlight: rgba(67, 97, 238, 0.1);
}

/* Widget Card - Glassmorphism & Smooth Effects */
.widget {
  background: var(--widget-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--widget-border);
  box-shadow: var(--widget-shadow),
              inset 0 1px 1px rgba(255, 255, 255, 0.7);
  padding: 24px;
  flex: 1 1 220px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

/* Hover Effect - Elevate & Glow */
.widget:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1),
              0 6px 12px rgba(0, 0, 0, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.95);
}

/* Subtle Gradient Shine on Hover */
.widget::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

.widget:hover::before {
  opacity: 1;
  transform: rotate(15deg) translateY(20%);
}

/* Floating Dot Animation */
.widget::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.widget:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-8px) scale(1.1); }
}

/* Text Styling */
.widget h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.widget:hover h4 {
  color: var(--accent);
}

.widget p {
  font-size: 1.9rem;
  font-weight: 600;
  color: #3d4a6d;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

/* Underline Animation for Value */
.widget p::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.widget:hover p::after {
  width: 100%;
}

/* ✅ Responsive Tweaks: 2 per row on mobile */
@media (max-width: 600px) {
  .widget {
    flex: none;
    width: calc(50% - 10px);
    backdrop-filter: none; /* Optional: Disable blur on mobile for speed */
  }

.widget h4 {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 1px;

}

.widget p {
  font-size: 1.5rem;
}

}



/* ======== MODERN DASHBOARD BOXES ======== */

.section1-title {
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #1e3a8a;
  letter-spacing: -0.2px;
}

.dashboard-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 1.5rem 0;
}

.dashboard-box {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.dashboard-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  transition: height 0.25s ease;
}

.dashboard-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12);
  border-color: #bfdbfe;
}

.dashboard-box:hover::before {
  height: 6px;
}

.dashboard-box i {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #3b82f6;
  transition: transform 0.25s ease;
}

.dashboard-box:hover i {
  transform: scale(1.1);
}

.dashboard-box .btn-link {
  margin-top: 0.5rem;
  font-weight: 500;
  color: #1e3a8a;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  position: relative;
  padding-bottom: 2px;
}

.dashboard-box .btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #3b82f6;
  transition: width 0.25s ease;
}

.dashboard-box:hover .btn-link::after {
  width: 100%;
}

.dashboard-container-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dashboard-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .dashboard-box {
    padding: 1.25rem 0.75rem;
  }
  
  .dashboard-box i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .dashboard-box .btn-link {
    font-size: 0.8rem;
  }
  
  .section1-title {
    margin: 1.5rem 0 1rem;
    font-size: 1rem;
  }
  
  .dashboard-container-box {
    padding: 1.25rem;
    margin: 1.25rem 0;
  }
}

@media (max-width: 480px) {
  .dashboard-links {
    grid-template-columns: 1fr;
  }
  
  .dashboard-box {
    padding: 1.25rem;
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    align-items: center;
  }
  
  .dashboard-box i {
    margin-bottom: 0;
    font-size: 1.25rem;
  }
  
  .dashboard-box .btn-link {
    margin-top: 0;
  }
  
  .dashboard-box::before {
    width: 4px;
    height: 100%;
  }
  
  .dashboard-box:hover::before {
    width: 6px;
  }
}

/* graphics section */
.dashboard-graphs {
  margin-top: 40px;
  padding: 0px;
}

.graphs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .graphs-container {
    grid-template-columns: 1fr; /* One column on mobile */
  }
}

.graph-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

canvas {
  width: 100% !important;
  height: 300px !important;
}

.dashboard-graphs h4 {
  font-family: 'Poppins', sans-serif;
  color: #5c5169;
  font-weight: 600;
  letter-spacing: -0.3px;
}



/* =================FINANCE PAGE STYLES START =================*/
/* Finance Page Styles */
.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

h2, h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #164996;
}

h3 {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #314061;
  letter-spacing: -0.3px;
}

/* Summary Section */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  padding: 1.2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  
  /* Unique hover effects */
  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    
    &::before {
      opacity: 1;
    }
  }
  
  /* Subtle gradient overlay effect */
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3f51b5, #2196f3);
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  
  /* Optional floating effect */
  &:active {
    transform: translateY(-1px);
  }
  
  /* Glow effect for important cards */
  &.highlight {
    animation: pulse-glow 2s infinite alternate;
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 81, 181, 0.2);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(63, 81, 181, 0);
  }
}

.summary-card p {
  margin: 0;
  font-size: 1.8rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.2px;
  font-weight: 500;
  color: #46526b;
}

.summary-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.3rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.3px;
  font-weight: 400;
}


/* TABLE STYLING AFFECTING ALL PARTS OF THE APP*/
.finance-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.finance-table th,
.finance-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.finance-table th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
}

.finance-table tr:hover {
  background-color: rgba(67, 97, 238, 0.05);
}

.finance-table tr:last-child td {
  border-bottom: none;
}


/* form size fix for all forms*/
@media (max-width: 768px) {
  .finance-table th,
  .finance-table td {
    min-height: 40px;  /* or whatever height fits your design */
    vertical-align: middle; /* center content vertically */
  }
}


/* Responsive Styles */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }
  
  .finance-table {
    display: block;
    overflow-x: auto;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }

.summary-card p {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
}

.summary-card strong {
  font-size: 0.83rem;
}

}



@media (max-width: 480px) {
  .finance-form {
    padding: 1rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  h3 {
    font-size: 1rem;
  }
}


/* On small screens (mobile), force exactly 2 columns */
@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* finance form hidden */
.hidden {
  display: none;
}

.btn-toggle {
  margin-bottom: 1rem;
  padding: 10px 18px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.btn-toggle:hover {
  background-color: #2980b9;
}

.finance-form {
  border: 1px solid #ccc;
  padding: 16px;
  margin-top: 10px;
  background: #f9f9f9;
  border-radius: 5px;
}

/* Form main container */
.finance-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 30px;
}

/* Each group of label and input */
.form-group {
  display: flex;
  flex-direction: column;
}

/* Labels */
.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

/* Inputs, select, textarea */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #007BFF;
  outline: none;
}

/* Textarea specific */
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit Button */
.finance-form .btn-primary {
  background-color: #007BFF;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.finance-form .btn-primary:hover {
  background-color: #0056b3;
}

/* Optional icon spacing */
.btn-primary i {
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .finance-form {
    padding: 15px;
  }

.finance-form {
  margin-left: 0px;
}

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

.form-group {
  width: 100% !important;
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100% !important;
  display: block;
  box-sizing: border-box;
}

}


/* Action buttons */
.btn-edit,
.btn-delete {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;       /* smaller font */
  padding: 4px 7px;      /* smaller padding */
  border-radius: 4px;    /* slightly rounded */
  margin: 0 3px;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-edit {
  background-color: #3498db;
}

.btn-edit:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

.btn-delete {
  background-color: #e74c3c;
}

.btn-delete:hover {
  background-color: #c0392b;
  transform: scale(1.05);
}



/* filter form */
/* BASE STYLES (unchanged from your original) */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(1, 30, 65, 0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  margin-bottom: 4px;
  color: #495057;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.3px;
}

.form-group select {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  color: #495057;
  height: 38px;
  
}

.btn {
  padding: 8px 46px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  height: 38px;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0069d9;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* ONLY MOBILE CHANGE (2 items per row) */
@media (max-width: 768px) {
  .form-group:not(:last-child):not(:nth-last-child(2)) {
    width: calc(50% - 6px);
    flex: none;
  }
}

/* no warning after filter */
.no-records-warning {
  background-color: #ffe6e6; /* light red/pink background */
  color: #cc0000;            /* dark red text */
  border: 1px solid #cc0000; /* red border */
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 400;
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
}

@media (max-width: 768px) {

  .no-records-warning {
    font-size: 0.88rem;
  }
}



/* =================LEADS PAGES START HERE ===================*/

/* Leads Stats Section */
#leads-stats-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
  justify-content: space-between;
  margin-bottom: 60px;
  padding-left: 0px;
  padding-right: 180px;

}



/* Each Column */
.stats-column {
  flex: 1 1 32%;
  min-width: 0; /* allow shrinkage */
  perspective: 1000px; /* For 3D effect */
}

/* Force 4 columns on desktop */
@media (min-width: 1024px) {
  .stats-column {
    flex: 1 1 23%; /* 4 columns with spacing (100% - 3 * 15px gap) */
  }
}

/* Stat Box Styling */
.stat-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 8px 2px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient border effect */
.stat-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #4776a8, #8ac4ff, #4776a8);
  z-index: -1;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover Effect */
.stat-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(71, 118, 168, 0.15);
}

.stat-box:hover::before {
  opacity: 1;
}

/* Pulsing animation on value */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Stat Title */
.stat-box h4 {
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  font-family: 'Inter', sans-serif;
  position: relative;
  display: inline-block;
}

.stat-box h4::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4776a8, #8ac4ff);
  transition: width 0.3s ease;
}

.stat-box:hover h4::after {
  width: 80%;
}

/* Stat Value */
.stat-box p {
  font-size: 2.3rem;
  font-weight: 500;
  background: linear-gradient(135deg, #4776a8, #5d9cec);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  font-family: 'Montserrat';
 
  animation: pulse 3s infinite;
}

/* Subtle floating particles */
.stat-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(71, 118, 168, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 80% 70%, rgba(71, 118, 168, 0.1) 0%, transparent 20%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-box:hover::after {
  opacity: 1;
}

/* Mobile Optimization: Shrink fonts and spacing */
@media (max-width: 768px) {
  .stat-box {
    padding: 14px 10px;
  }

#leads-stats-section {
  padding-left: 0px;
  padding-right: 0px;

}

  .stat-box h4 {
    font-size: 0.8rem;
  }

  .stat-box p {
    font-size: 2rem;
    animation: none; /* Disable animation on mobile */
  }
  
  .stat-box:hover {
    transform: translateY(-3px); /* Smaller hover effect on mobile */
  }
}


.lead-btn-edit, .lead-btn-delete, .lead-btn-convert {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  margin-right: 6px;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
}
.lead-btn-edit {
  background-color: #2980b9;
}
.lead-btn-delete {
  background-color: #c0392b;
}
.lead-btn-convert {
  background-color: #27ae60;
}
.lead-btn-edit:hover, .lead-btn-delete:hover, .lead-btn-convert:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  opacity: 0.9;
}


/* unconcert button */
.btn-unconvert {
  background-color: #ffc107; /* Amber/yellow */
  color: #212529;
  padding: 3px 7px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-unconvert:hover {
  background-color: #e0a800;
  color: #fff;
}



/*form Buttons*/
#lead-btn-submit.lead-btn-primary {
  background-color: #2980b9;
  border: none;
  padding: 10px 20px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  
}
#lead-btn-submit.lead-btn-primary:hover {
  background-color: #1f618d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#lead-btn-cancel.lead-btn-secondary {
  background-color: #7f8c8d;
  border: none;
  padding: 10px 20px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-left: 10px;
}
#lead-btn-cancel.lead-btn-secondary:hover {
  background-color: #606b6e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* =====================
   Form Group Styling - Compact
   ===================== */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #444;
  font-family: 'Inter', sans-serif;
}
.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: #2980b9;
  box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.2);
  outline: none;
  background-color: #fff;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}
.form-col {
  flex: 1;
  padding: 0 8px;
  min-width: 200px;
}

/* Button container for form */
.form-button-group {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

/* Leads Table Styling */
.lead-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.lead-table {
  width: 90%;
  min-width: 1100px; /* Wider table for desktop */
  border-collapse: collapse;
  margin: 0;
}
.lead-table th, .lead-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
  font-size: 0.85rem;
}
.lead-table th {
  background-color: #4361ee;
  color: white;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  position: sticky;
  top: 0;
  font-size: 0.8rem;
}
.lead-table tr:nth-child(even) {
  background-color: #f8f9fa;
}
.lead-table tr:hover {
  background-color: #f1f5ff;
  transition: background-color 0.2s ease;
}

/* Action buttons cell */
.lead-table .actions-cell {
  white-space: nowrap;
}

/* Responsive table for mobile - keep existing behavior */
@media screen and (max-width: 1028px) {
  .lead-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .lead-table {
    min-width: 100%;
  }
  
  .lead-table thead {
    display: none;
  }
  .lead-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  .lead-table td {
    display: block;
    text-align: right;
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #eee;
  }
  .lead-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    padding-left: 5px;
    font-weight: 700;
    text-align: left;
  }
  
  .lead-table td:last-child {
    border-bottom: none;
  }
}

/* Form responsive adjustments */
@media screen and (max-width: 768px) {
  .form-container {
    padding: 15px;
  }
  
  .form-col {
    flex: 100%;
    padding: 0;
    margin-bottom: 8px;
  }
  
  .form-button-group {
    flex-direction: column;
  }
  
  #lead-btn-cancel.lead-btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }
}


/* leads form */
/* Toggle Add Lead Button */
#show-lead-form-btn {
 margin-bottom: 60px;
  padding: 10px 18px;
  background: #065fbf;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 600;

}

#show-lead-form-btn:hover {
  background: #0056b3;
}

/* Lead form container styling */
#lead-form-container {
  border: 1px solid #ccc;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
  margin-bottom: 2rem;
}


/* LEADER FILTER BUTTONS */
.filter-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-links a {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none !important;
    color: #2c3e50;
    font-weight: 500;
    border-radius: 8px;
    background: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid #e0e0e0;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
}

/* Hover State */
.filter-links a:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

/* Active State - High Contrast */
.filter-links a.active {
    background: #0354ab;
    color: white !important;
    
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.4);
    animation: active-pulse 2s infinite;
}

.filter-links a.active:hover {
    transform: none;
    background: #0069d9;
    border-color: #0069d9;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .filter-links {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .filter-links a {
        flex: 0 1 auto;
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
        margin: 5px 0;
        min-width: 120px;
        text-align: center;
    }
}

/* Animation for active state */
@keyframes active-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* Focus styles for accessibility */
.filter-links a:focus,
.filter-links a:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
    text-decoration: none !important;
}


/* unconverted success */
.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 15px 0;
  font-size: 0.9rem;
}




/*===================== PAYMENTS PAGE START HERE==================== */
.finance-table {
  width: 100%;
  max-width: 1250px;
  border-collapse: collapse;
}

.finance-table th,
.finance-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  
}


.finance-table td::before {
  content: attr(data-label);
  font-weight: bold;
  color: #989898;
  display: none;
}

.finance-table td {
  color: #6c6c6c;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
}

/* ✅ Single media query block */
@media screen and (max-width: 768px) {
  .finance-table thead {
    display: none;
  }

  .finance-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
  }

  .finance-table td {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 8px 5px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .finance-table td::before {
    display: inline-block;
    padding-left: 10px;
    text-align: left;
    min-width: 120px;
  }

  .finance-table td[data-label="Actions"] {
    flex-direction: row; /* side by side */
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
  }

  .finance-table td[data-label="Actions"]::before {
    content: "Actions";
    margin-left: auto;
    font-weight: bold;
    color: #666;
  }

  .btn-edit, .btn-delete {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    padding: 4px 8px;
  }
}

/* buttons styling */
td.actions a {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 6px;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Edit button - blue */
td.actions a.btn-edit {
  color: #0d6efd; /* bootstrap blue */
  background-color: #e7f1ff;
}

td.actions a.btn-edit:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Delete button - red */
td.actions a.btn-delete {
  color: #dc3545; /* bootstrap red */
  background-color: #f8d7da;
}

td.actions a.btn-delete:hover {
  background-color: #dc3545;
  color: #fff;
}

td.actions a i {
  pointer-events: none;
}


/* Payment form*/
.payment-form {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  margin-bottom: 2rem;
}

.payment-form h3 {
  margin-bottom: 15px;
  color: #0b4c91;
  font-weight: 500;
  letter-spacing: -0.3px;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
}

.payment-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 400;
  color: #737373;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

.payment-form input[type="text"],
.payment-form input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.3s;
}

.payment-form input[type="text"]:focus,
.payment-form input[type="number"]:focus {
  border-color: #6c63ff;
  outline: none;
}

.payment-form button.btn-primary {
  background-color: #6c63ff;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payment-form button.btn-primary:hover {
  background-color: #554eea;
}

.payment-form a.btn {
  background-color: #f5f5f5;
  color: #333;
  padding: 10px 14px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
  transition: background-color 0.3s;
}

.payment-form a.btn:hover {
  background-color: #e0e0e0;
}

/* ALERT MESSAGE */
.alert.success {
  background-color: #e6f9ed;
  color: #2f8048;
  border: 1px solid #a8dfbf;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 14px;
}

@media screen and (max-width: 768px) {

.payment-form h3 {
  font-size: 1.1rem;
}

}


/* filter */
.payment-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  flex: 1 1 calc(50% - 10px); /* Two per row, accounting for gap */
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #374863;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
  background-color: #075fdb;
}

@media screen and (min-width: 769px) {
  .filter-btn {
    flex: 1; /* Full horizontal buttons */
  }
}


  /* payment button form here */
#togglePaymentForm {
  display: inline-block;
  background-color: #007bff; /* Bootstrap primary */
  color: white;
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#togglePaymentForm:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

#togglePaymentForm i {
  margin-right: 6px;
}

/* button clicked */
.filter-btn.active,
.filter-btn.active:hover {
  background-color: #075fdb !important;
}

/* delete notification */
.custom-confirm-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dialog-content {
  background: rgb(244, 248, 252);
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dialog-confirm {
  background: #e74c3c;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dialog-cancel {
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}



/* buttons */
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.actions .btn-view {
  background-color: #3498db;
}

.actions .btn-edit {
  background-color: #27ae60;
}

.actions .delete {
  background-color: #e74c3c;
}

.actions a:hover {
  opacity: 0.85;
}

.actions i {
  font-size: 14px;
}


/* FINANCE PAGE */
.custom-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.dialog-icon {
  color: #ff9800;
  font-size: 50px;
  margin-bottom: 20px;
}

.dialog-content p {
  margin-bottom: 25px;
  font-size: 18px;
}

.dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.dialog-confirm, .dialog-cancel {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.dialog-confirm {
  background: #e74c3c;
  color: white;
}

.dialog-confirm:hover {
  background: #c0392b;
}

.dialog-cancel {
  background: #ecf0f1;
}

.dialog-cancel:hover {
  background: #bdc3c7;
}


/* SIDEBAR HEADER H3 UNDERLINE REMOVAL */
.sidebar h3 {
  text-decoration: none !important;
  border-bottom: none !important;
}


/* INVOICES PAGE */
/* Filter Form Styles */
.filter-form1 {
  --primary-color: #4361ee;
  --hover-color: #3a56d4;
  --border-color: #e2e8f0;
  --focus-color: #93c5fd;
  --text-color: #334155;
  --placeholder-color: #94a3b8;
  --background-color: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --transition: all 0.2s ease-in-out;

  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.filter-form1 input,
.filter-form1 select {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--background-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
  min-width: 180px;
  height: 40px;
}

.filter-form1 input::placeholder {
  color: var(--placeholder-color);
}

.filter-form1 input:focus,
.filter-form1 select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.filter-form1 input:hover,
.filter-form1 select:hover {
  border-color: var(--primary-color);
}

.filter-form1 button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  height: 40px;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  gap: 6px;
}

.filter-form1 button:hover {
  background-color: var(--hover-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.filter-form1 button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Custom select arrow */
.filter-form1 select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

/* Filter icon in button */
.filter-form1 button svg {
  width: 16px;
  height: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-form1 {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-form1 input,
  .filter-form1 select,
  .filter-form1 button {
    width: 100%;
    min-width: auto;
  }
}



/* =========VEIWPAYMENT.PHP STYLING ============*/

/* ======== PAYMENT DETAILS CONTAINER ======== */
.payment-details-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Payment Summary Card */
.payment-summary-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.summary-header {
  background: #1e3a8a;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left; /* Force left alignment */
}

.summary-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  justify-content: flex-start; /* Left-align header content */
}

.summary-body {
  padding: 0.75rem 1.25rem;
  text-align: left; /* Force left alignment */
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start; /* Align items to top */
  text-align: left; /* Force left alignment */
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 500;
  color: #334155;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  text-align: left; /* Force left alignment */
  flex: 1; /* Take available space */
  padding-right: 0.5rem; /* Add spacing between label and value */
}

.summary-value {
  color: #475569;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-align: right; /* Keep values right-aligned */
  flex: 1; /* Take available space */
}

/* Status Badges - Left-aligned in mobile */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin-right: auto; /* Push badges to left in mobile */
}

/* Responsive Adjustments - Mobile First */
@media (max-width: 768px) {
  .payment-details-container {
    gap: 1rem;
  }
  
  .summary-header {
    padding: 0.65rem 1rem;
    text-align: left;
  }
  
  .summary-body {
    padding: 0.65rem 1rem;
    text-align: left;
  }
  
  .summary-row {
    flex-direction: column; /* Stack vertically on mobile */
    gap: 0.25rem;
    align-items: flex-start; /* Left-align all content */
    padding: 0.75rem 0;
  }
  
  .summary-label,
  .summary-value {
    text-align: left; /* Force left alignment on mobile */
    width: 100%; /* Full width on mobile */
    font-size: 0.8rem;
  }
  
  .summary-value {
    padding-left: 0; /* Remove indentation */
  }
  
  .status-badge {
    margin-left: 0; /* Remove any auto margins */
    margin-right: 0; /* Remove any auto margins */
  }
}

/* Additional small screen adjustments */
@media (max-width: 480px) {
  .summary-header h3 {
    font-size: 0.9rem;
  }
  
  .summary-label,
  .summary-value {
    font-size: 0.78rem;
  }
  
  .status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Payment Actions */
.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Payment History Section */
.payment-history-section {
    margin-top: 2rem;
}

.payment-history-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}




/* Responsive Adjustments */
@media (max-width: 768px) {
    .payment-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .summary-label, .summary-value {
        flex: none;
        text-align: left;
    }
    
}

@media (max-width: 576px) {
    .summary-header h3, .payment-history-section h3 {
        font-size: 1rem;
    }
    
}


/* edit page */
.payment-form.edit-form-container {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

/* Heading styling */
.payment-form.edit-form-container h2 {
  margin-bottom: 15px;
  color: #0b4c91;
  font-weight: 500;
  letter-spacing: -0.3px;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
}

/* Labels */
.payment-form.edit-form-container label {
  display: block;
  margin-bottom: 5px;
  font-weight: 400;
  color: #737373;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

/* Inputs */
.payment-form.edit-form-container input[type="text"],
.payment-form.edit-form-container input[type="email"],
.payment-form.edit-form-container input[type="tel"],
.payment-form.edit-form-container input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}

.payment-form.edit-form-container input:focus {
  border-color: #6c63ff;
  outline: none;
}

/* Button styles */
.payment-form.edit-form-container button.btn-primary {
  background-color: #6c63ff;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payment-form.edit-form-container button.btn-primary:hover {
  background-color: #554eea;
}

/* Cancel button */
.payment-form.edit-form-container a.btn {
  background-color: #f5f5f5;
  color: #333;
  padding: 10px 14px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
  transition: background-color 0.3s;
}

.payment-form.edit-form-container a.btn:hover {
  background-color: #e0e0e0;
}

/* Alert styling */
.payment-form.edit-form-container .alert.error {
  background-color: #fcebea;
  color: #cc1f1a;
  border: 1px solid #f5c6cb;
  padding: 10px 14px;
  border-radius: 4px;
  margin-top: 15px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .payment-form.edit-form-container h2 {
    font-size: 1.1rem;
  }

  .payment-form.edit-form-container {

    margin-right: 740px;
    padding-right: 100px;
  }
}

/* VIEW PAGE BUTTONS HERE COZ OF INTERFERENCE */

/* Download buttons in history of payments) */
.btn-sm {
  padding: 2px 12px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0056b3;
}

/* Smaller size on mobile */
@media screen and (max-width: 600px) {
  .btn-sm {
    padding: 0px 10px;
    font-size: 10px;
    white-space: nowrap;
    min-width: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    background-color: #0056b3;
    gap: 4px;
    font-size: 0.9rem;
  
  }

  .btn-sm i {
    font-size: 15px;
  }
}

/* ========ALL PAGES WIDE WRAPPER OPENER================= */
/* Main Content Wrapper - iPad Optimized */
.main-content {
  width: 100%;
  max-width: 1200PX; /* Remove max-width restriction */
  margin: 20px 0;
  padding: 20px;
  box-sizing: border-box;
}

/* iPad Portrait (768px-1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .main-content {
    padding: 25px 40px;
    margin-left: 0; /* Full width on iPad */
    width: 100%;
  }
  
  /* When sidebar is open */
  .sidebar-active .main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
}

/* Desktop (1025px and up) */
@media screen and (min-width: 1025px) {
  .main-content {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 30px 50px;
  }
}

/* Mobile (up to 767px) */
@media screen and (max-width: 767px) {
  .main-content {
    padding: 15px;
  }
  
  /* When sidebar is open */
  .sidebar-active .main-content {
    transform: translateX(250px);
    width: calc(100% - 250px);
    overflow-x: hidden;
  }
}


/* =================FORM ACTION BUTTONS==============*/

/* INVOICE PAGE*/
td[data-label="Action"] {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: none;
}

.btn-primary {
  background-color: #6c63ff;
  color: white;
}

.btn-primary:hover {
  background-color: #554eea;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #065e98; /* WhatsApp green */
  color: white;
}

.btn-success:hover {
  background-color: #1da851;
  transform: translateY(-1px);
}

/* Button Icons */
.btn i {
  font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  td[data-label="Action"] {
    justify-content: center;
  }
  
  .btn {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  td[data-label="Action"] {
    flex-direction: column;
    gap: 6px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Prevent full width on mobile */
@media (max-width: 768px) {
    .btn {
        width: auto;
        display: inline-block;
    }
}


/* LEAD BUTTONS PAGE FORM */
/* Action Buttons - Uniform Styling */
td[data-label="Actions"] {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

/* Base Button Style */
.lead-btn-edit,
.lead-btn-delete,
.lead-btn-convert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Edit Button */
.btn-edit, .lead-btn-edit {
  background-color: #3498db; /* Blue */
}

.btn-edit:hover, .lead-btn-edit:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

/* Delete Button */
.btn-delete, .lead-btn-delete {
  background-color: #e74c3c; /* Red */
}

.btn-delete:hover, .lead-btn-delete:hover {
  background-color: #c0392b;
  transform: translateY(-1px);
}

/* Convert Button */
.btn-convert, .lead-btn-convert {
  background-color: #2ecc71; /* Green */
}

.btn-convert:hover, .lead-btn-convert:hover {
  background-color: #27ae60;
  transform: translateY(-1px);
}

/* Tooltip Styles */
[title] {
  position: relative;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  margin-bottom: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  td[data-label="Actions"] {
    justify-content: center;
    gap: 6px;
  }
  
  .lead-btn-edit,
  .lead-btn-delete,
  .lead-btn-convert {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  td[data-label="Actions"] {
    flex-wrap: wrap;
  }
}

/* FNANCIAL FORM PAGE BUTTONS */
td .btn-edit,
td .btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 0 4px;
}

/* Edit Button */
.btn-edit {
  background-color: #3c3979; /* Your brand purple */
}

.btn-edit:hover {
  background-color: #554eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Delete Button */
.btn-delete {
  background-color: #e74c3c; /* Alert red */
}

.btn-delete:hover {
  background-color: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button Icons */
.btn-edit i,
.btn-delete i {
  font-size: 14px;
}

/* Tooltip Styles */
[title] {
  position: relative;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  td .btn-edit,
  td .btn-delete {
    width: 30px;
    height: 30px;
    margin: 0 3px;
  }
}

@media (max-width: 480px) {
  td .btn-edit,
  td .btn-delete {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  [title]:hover::after {
    font-size: 11px;
    padding: 3px 6px;
  }
}


/* FOR CUSTOMERS.PHP table */

.action-buttons {
  display: flex;
  gap: 6px;
}

.action-buttons a {
  padding: 4px 8px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
}

.action-buttons .edit {
  background-color: #364f6a;
  color: white;
}

.action-buttons .delete {
  background-color: #dc3545;
  color: white;
}

/* Mobile-specific styles */
@media (max-width: 600px) {


  .action-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: flex-start;
  }

  .action-buttons a {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    font-size: 13px;
  }

}

@media (max-width: 768px) { .payment-actions .btn { text-align: center; width: 100%; } }



/* ==========ACCOUNT MANAGEMENT PAGE */
.two-column-settings {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.finance-form-container {
  flex: 1;
  min-width: 300px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.alert.success {
  background-color: #d4edda;
  padding: 10px;
  border-left: 5px solid #28a745;
  margin-bottom: 20px;
}

.alert.error {
  background-color: #f8d7da;
  padding: 10px;
  border-left: 5px solid #dc3545;
  margin-bottom: 20px;
}





/* Main container for two-column layout */
/* ======== USER SETTINGS PAGE ======== */
.two-column-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1200px;
  margin: 20px auto;
  font-family: 'Inter', sans-serif;
}

.finance-form-container {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}

.finance-form-container h3 {
  font-size: 16px;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #007BFF;
}

.finance-form-container h3 i {
  color: #3b82f6;
  font-size: 18px;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-form .form-group {
  display: flex;
  flex-direction: column;
}

.payment-form label {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  margin-bottom: 5px;
}

.payment-form input[type="password"],
.payment-form input[type="email"] {
  padding: 8px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}

.payment-form input[type="password"]:focus,
.payment-form input[type="email"]:focus {
  border-color: #3b82f6;
  outline: none;
}

.password-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.form-actions {
  margin-top: 10px;
  text-align: right;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-primary i {
  font-size: 12px;
}

/* Admin User Section */
.admin-user-section {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin: 30px auto;
  max-width: 800px;
  border: 1px solid #e2e8f0;
  font-family: 'Inter', sans-serif;
}

.admin-user-section h3,
.admin-user-section h4 {
  font-size: 16px;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #007BFF;
}

.admin-user-section h3 i,
.admin-user-section h4 i {
  color: #3b82f6;
  font-size: 18px;
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-user-form .form-group {
  display: flex;
  flex-direction: column;
}

.admin-user-form label {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  margin-bottom: 5px;
}

.admin-user-form input,
.admin-user-form select {
  padding: 8px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.admin-user-form .form-actions {
  grid-column: 1 / -1;
  text-align: right;
}

hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 20px 0;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.user-table th,
.user-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.user-table th {
  background-color: #f8fafc;
  color: #1e3a8a;
  font-weight: 600;
}

.user-table tr:hover td {
  background-color: #f8fafc;
}

.btn-danger {
  background-color: #e03131;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-danger:hover {
  background-color: #c92a2a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .two-column-settings {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .admin-user-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .finance-form-container,
  .admin-user-section {
    padding: 16px;
  }
  
  .admin-user-form {
    grid-template-columns: 1fr;
  }
  
  .user-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .finance-form-container h3,
  .admin-user-section h3 {
    font-size: 15px;
  }
  
  .payment-form input,
  .admin-user-form input,
  .admin-user-form select {
    padding: 7px 10px;
  font-size: 12px;
  }
  
  .btn-primary,
  .btn-danger {
    padding: 7px 12px;
    font-size: 12px;
  }
}




