/* ==========================
   🎨 Root & Global Variables
   ========================== */
:root {
  --main-accent: #255aab;
  --accent-darker: #1e4a91;
  --accent-gradient: #255aab;
  --text-dark: #4a004a;
}



/* ==========================
   🧍 General Styles
   ========================== */
html, body {
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeinbg 2s ease-in-out;
}

@keyframes fadeinbg {
  from { background-position: left; }
  to { background-position: right; }
}

.logout {
  text-align: right;
  margin-top: -30px;
  padding-right: 11px;
  text-decoration: underline;
  cursor: pointer;
  color: blue;
}

/* ==========================
   🧩 Header / Navbar
   ========================== */
.logo-bar {
  background-color: var(--main-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.7rem;
  text-align: center;
  padding: 0.82rem;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  position: relative;
  z-index: 10;
  user-select: none;
}

.logo-bar img {
  height: 38px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 1px var(--main-accent));
}

.addbutton{
        display: flex;
    align-items: flex-end;
    justify-content: right;
}
/* ==========================
   💳 Auth Card
   ========================== */
.auth-card {
  max-width: 410px;
  margin: auto;
  background: linear-gradient(135deg, #fff 80%, #fce9fb 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px #f6f2f6;
  padding: 2.3rem 1.5rem 1.5rem;
  animation: fadein 0.7s ease forwards;
  color: var(--text-dark);
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ==========================
   🧭 Buttons
   ========================== */
.btn {
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 30px;
  user-select: none;
}

.btn-primary,
.btn-success {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover {
  background: var(--main-accent);
  filter: brightness(0.95);
}

.btn-primary:focus,
.btn-success:focus,
.btn-warning:focus {
  outline: none;
}

/* ==========================
   🧮 Form Controls
   ========================== */
.form-control {
  font-size: 1rem;
  border: 1.8px solid var(--main-accent);
  border-radius: 10px;
  transition: all 0.25s ease-in-out;
  box-shadow: inset 0 1px 5px #f6f2f6;
}

.form-control:focus {
  border-color: var(--main-accent) !important;
  background: #f3f7fb;
  outline: none;
  color: var(--text-dark);
}

/* ==========================
   📋 Table Styles
   ========================== */
.table-scroll-container {
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 350px;
  border-radius: 8px;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  position: sticky;
  top: 0;
  background: var(--main-accent);
  color: #fff;
  font-weight: 600;
  z-index: 5;
}

.table th,
.table td {
  min-width: 50px;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
  color: var(--text-dark);
  border-top: 1px solid #f3ccef;
}

.table-success {
  background: var(--main-accent) !important;
  color: #fff !important;
}

.table-danger {
  background: #b025ae !important;
  color: #fff !important;
}

.table-active {
  background-color: #fcd9fc !important;
}

/* ==========================
   📦 Modal & Dropdown Fix
   ========================== */
.modal {
  z-index: 1050 !important;
}

.modal-backdrop {
  z-index: 1040 !important;
}

.modal-dialog {
  max-width: 90vw !important;
  margin: 1rem auto;
}

.modal-content {
  border-radius: 12px;
  border: 1.5px solid #637bf1;
  background: #edf1fc;
  box-shadow: 0 8px 30px #f163f140;
  /* overflow: hidden; */
}

.modal-header {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-header .btn {
  white-space: nowrap;
}

.modal .dropdown-menu {
  position: absolute !important;
  z-index: 9999 !important;
}
.dropdown{
  position:static;
}

/* ==========================
   🧾 Multi-Select Dropdown
   ========================== */
.multi-select-dropdown {
  position: relative;
  display: inline-block;
  width: 210px;
}

.dropdown-btn {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.dropdown-list {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 210px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.dropdown-list label {
  display: block;
  padding: 6px 10px;
  cursor: pointer;
}

.dropdown-list input {
  margin-right: 8px;
}

.multi-select-dropdown.open .dropdown-list {
  display: block;
}

/* ==========================
   ⚠️ Alerts & Links
   ========================== */
.error-message,
.success-message {
  font-size: 0.98rem;
  min-height: 22px;
  font-weight: 600;
  color: var(--main-accent);
}

a, .text-primary {
  color: var(--main-accent) !important;
  transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
  color: var(--accent-darker) !important;
  text-decoration: underline;
  outline: none;
}

/* ==========================
   📱 Responsive Adjustments
   ========================== */
@media (max-width: 576px) {
  body, html {
    overflow-x: hidden;
  }

  .auth-card {
    padding: 1rem;
  }

  .logo-bar {
    font-size: 1.25rem;
    padding: 0.55rem 0;
  }

  .modal-dialog {
    max-width: 95vw !important;
    margin: 0.5rem auto;
  }

  .modal-header,
  .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-header .btn,
  .modal-footer .btn {
    width: 100%;
  }

  .table-scroll-container {
    max-height: 250px;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    min-width: 80px;
  }

  
}

 .action-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
     justify-content: flex-end; 
  }

  .action-row::-webkit-scrollbar {
    height: 6px;
  }

  .action-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }