html,
body {
  /* height: 100vh; */
  width: 100vw;
  margin: 0;
  padding: 0;
  /* overflow: hidden; */
  background: #f4f4f4 !important;
}

/* Ensure font is applied to form elements */

*,
*::before,
*::after {
  font-family: "Inter", sans-serif;
}

.dashboard-select-label {
  margin-bottom: 0;
  margin-right: 8px;
  font-weight: 500;
  font-size: 1rem;
}
.dropdown .btn {
  font-weight: 500;
  color: #111827;
  background-color: unset !important;
  border: 0 !important;
}

.dropdown-menu {
  width: 40vw !important;
  height: 100vh;
  right: -14px !important;
  border-radius: 0 !important;
  top: 46px !important;
}
.dropdown-item .initials {
  padding: 3px;
  background: #f43f5e;
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}
.dropdown-item {
  padding: 0.75rem 2rem 0.75rem 1rem !important;
}

/* Share menu sizing override (keep compact) */
#shareDropdownContainer .dropdown-menu {
  width: auto !important;
  min-width: 160px !important;
  max-width: 240px !important;
  height: auto !important;
  max-height: none !important;
  right: 0 !important;
  top: 100% !important;
  margin-top: 6px !important;
  border-radius: 8px !important;
  padding: 0.25rem 0 !important;
}
/* .dropdown-item:hover {
  background-color: #e498a4 !important;
  color: #070707 !important;
} */
@media (max-width: 900px) {
  #dashboardSelect {
    width: 120px !important;
  }
}
@media (max-width: 600px) {
  #dashboardSelect {
    width: 90px !important;
    font-size: 0.85rem;
  }
  .dashboard-select-label {
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  #dashboardMenu.dropdown-menu {
    width: 80vw !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    right: 5% !important;
    border: #111827 1px solid !important;
  }
}

/* Offcanvas Sidebar */
.offcanvas {
  width: 320px !important;
  max-width: 100vw;
  background: #fff;
  box-shadow: 2px 0 16px rgba(44, 62, 80, 0.12);
  padding-top: 24px;
  padding-bottom: 12px;
}

@media (max-width: 600px) {
  .offcanvas {
    width: 100vw !important;
  }
}

/* Superset Embed Sizing */
#superset-emb,
#superset-emb iframe {
  width: 100vw !important;
  min-width: 100vw !important;
  /* height: calc(100vh - 80px) !important;
  min-height: calc(100vh - 80px) !important; */
  border: none;
  display: block;
  position: absolute;
  top: 56px;
  padding: 0 10px;
  left: 0;
}

#superset-emb {
  position: relative;
  height: calc(100vh - 56px);
  width: 100vw;
  top: 0;
  margin-top: 20px;
}

/* Hide scrollbars for a clean look */
body,
html {
  scrollbar-width: none;
}
body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none;
}

.auth-main {
  position: relative;
}
.auth-main .auth-wrapper {
  height: 100%;
  width: 100%;
  min-height: 100vh;
}
.auth-main .auth-wrapper .saprator {
  position: relative;
  display: flex;
  align-self: center;
  justify-content: center;
}
.auth-main .auth-wrapper .saprator:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--bs-border-color);
  z-index: 1;
}
.auth-main .auth-wrapper .saprator span {
  font-size: 0.875rem;
  padding: 8px 24px;
  background: var(--bs-card-bg);
  z-index: 5;
  text-transform: capitalize;
  color: var(--pc-heading-color);
  font-weight: 500;
}
.auth-main .auth-wrapper.v3 {
  display: flex;
  align-items: center;
}
.auth-main .auth-wrapper.v3 .auth-form {
  flex-direction: column;
  background: #ebd5c6;
  min-height: 100vh;
  padding: 24px;
  background-repeat: no-repeat;
  background-size: auto 75%;
  background-position: left center;
  position: relative;
  /*justify-content: space-between;*/
}
.auth-main .auth-wrapper.v3 .auth-form > * {
  position: relative;
  z-index: 5;
}
.auth-main .auth-wrapper.v3 .auth-form:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(16px);
}
.auth-main .auth-wrapper .auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}
.auth-main .auth-wrapper .auth-form .card {
  width: 100%;
  max-width: 480px;
  box-shadow: none;
}
.auth-main .auth-wrapper .auth-form .card-header {
  background: #ed1846;
}
.auth-main .auth-wrapper .auth-form img + span {
  padding-left: 10px;
}
.auth-main .auth-wrapper .auth-form h5 span {
  text-decoration: underline;
}
.auth-main .auth-wrapper .auth-footer,
.auth-main .auth-wrapper .auth-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-footer {
  visibility: hidden;
}
.login-logo {
  width: 150px;
}
.navbar-toggler-icon {
  background-size: 125%;
  /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");*/
}
.navbar-logo {
  width: 80px;
}

.dash-tile.card {
  border: 1px solid #ececec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  /*min-width: 220px;*/
  /*width: 250px;*/
}
.dash-tile.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.dash-tile.card:hover .dashboard-title {
  text-decoration: underline;
  color: #e52c4a;
}
.badge.draft {
  background: #a5a5a5;
  color: #fff;
}
.badge.published {
  background: #2bb673;
  color: #fff;
}
.dashboard-title {
  font-weight: 600;
  font-size: 16px;
}
.icon-symbol {
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background: #e52c4a;
  border-radius: 50%;
}
.icon-symbol i {
  color: #ffffff;
  font-size: 18px;
}
@media (max-width: 600px) {
  .dash-tile.card {
    min-width: 95vw;
    width: 100%;
  }
}
/* --- Modern Dropdown Styling --- */
.custom-dashboard-dropdown {
  min-width: 270px;
  max-width: 600px;
  padding: 10px 0;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(50, 50, 93, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e3ea;
  background: #fff;
  margin-top: 8px !important;
  max-height: 70vh;
  overflow-x: auto;
  overflow-y: auto;
  /* Add animation for open */
  animation: dropdown-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-dashboard-dropdown .dropdown-item {
  font-size: 1.08rem;
  font-weight: 500;
  color: #181d27;
  padding: 12px 22px;
  transition: background 0.18s, color 0.18s;
  border-radius: 8px;
  margin: 0 6px 4px 6px;
  display: flex;
  align-items: center;
}

/*.custom-dashboard-dropdown .dropdown-item:hover,
.custom-dashboard-dropdown .dropdown-item:focus {
  background-color: #f9e6ef !important;
   color: #e52c4a !important; 
 text-decoration: none;
}*/

/* .custom-dashboard-dropdown .dropdown-item.active,
.custom-dashboard-dropdown .dropdown-item.active:focus {
  background-color: #e52c4a !important;
  color: #fff !important;
} */

@media (max-width: 600px) {
  .custom-dashboard-dropdown {
    min-width: 80vw !important;
    max-width: 90vw !important;
    border-radius: 10px !important;
  }
}
/* Simple, modern dashboard dropdown button */
.dashboard-dropdown-btn {
  background: #fff;
  color: #181d27 !important;
  border: 1.5px solid #ececec !important;
  border-radius: 8px !important;
  padding: 0.55rem 1.2rem !important;
  font-weight: 500 !important;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.15s, border-color 0.13s, color 0.12s,
    background 0.16s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* .dashboard-dropdown-btn:focus,
.dashboard-dropdown-btn:hover {
  border-color: #e52c4a !important;
   color: #e52c4a !important; 
  box-shadow: 0 6px 16px rgba(229,44,74,0.07);
  background: #f9e6ef;
} */
.dashboard-dropdown-btn .bi {
  font-size: 1.06rem;
  opacity: 0.95;
}
.funnel-btn {
  background: #ffffff !important; /* Light pink */
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.funnel-btn .bi-funnel {
  color: #050505; /* Darker pink */
  font-size: 1.7rem;
}
.dropdown-item:focus,
.dropdown-item:active {
  background-color: #fff !important; /* or whatever you want */
  color: #181d27 !important; /* your desired text color */
  outline: none !important;
  box-shadow: none !important;
}
#sso-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

#sso-login-btn:hover {
  background-color: #f3f4f6;
  border-color: #cbd5e1;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

#sso-login-btn img {
  margin-top: -2px;
}

#sso-login-btn span {
  font-weight: 500;
}

#login-btn {
  width: 100%;
  background-color: #2563eb;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#login-btn:hover {
  background-color: #1d4ed8;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

#login-btn:active {
  background-color: #1e40af;
}

/* Reusable auth primary button (same style as #login-btn) */
.auth-btn {
  width: 100%;
  background-color: #2563eb;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-btn:hover { background-color: #1d4ed8; box-shadow: 0 3px 6px rgba(0,0,0,0.08); }
.auth-btn:active { background-color: #1e40af; }

.auth-muted { color: #6b7280; }
.auth-link { color: #2563eb; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

/* Keep spinner aligned nicely within buttons */
.btn .spinner-border { vertical-align: -0.125em; }

/* Secondary button variant matching theme */
.auth-btn-secondary {
  width: 100%;
  background-color: #ffffff;
  color: #111827;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.auth-btn-secondary:hover { background-color: #f9fafb; box-shadow: 0 3px 6px rgba(0,0,0,0.06); }
.auth-btn-secondary:active { background-color: #f3f4f6; }
.form-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #111827;
}

#user-access-table th,
#user-access-table td {
  padding: 18px 22px !important;
  vertical-align: middle;
  font-size: 1.1rem;
  background: #fff;
  border-bottom: 1.5px solid #ececec;
  text-align: center;
}

#user-access-table th {
  background: #f6f0fa;
  font-weight: 700;
  letter-spacing: 0.025em;
  border-bottom: 2px solid #bca7fa;
}

#user-access-table tr:last-child td {
  border-bottom: none;
}

/* Row hover: just background color, no animation */
#user-access-table tbody tr:hover {
  background: #f3ecfc !important;
}

/* Modern buttons, no animation */
#user-access-table .btn {
  min-width: 120px;
  margin-left: 6px;
  margin-top: -2px;
  box-shadow: 0 1px 7px 0 rgba(140, 80, 255, 0.05);
  border-radius: 8px;
  font-weight: 500;
  border: none;
}
#user-access-table .btn-success {
  background: linear-gradient(90deg, #56f1a7 0%, #13b889 100%);
  color: #fff;
}
#user-access-table .btn-danger {
  background: linear-gradient(90deg, #f76e9a 0%, #845ef7 100%);
  color: #fff;
}
#user-access-table .btn-success:hover,
#user-access-table .btn-danger:hover {
  filter: brightness(1.07);
}

/* Icons, no animation */
#user-access-table .text-success,
#user-access-table .text-danger {
  font-size: 1.33em;
  vertical-align: middle;
  margin-right: 7px;
}
#user-access-table .text-success {
  color: #18c172 !important;
  text-shadow: 0 1px 7px #e0fff1;
}
#user-access-table .text-danger {
  color: #f45470 !important;
  text-shadow: 0 1px 7px #ffe0e7;
}
#user-access-table {
  margin: 36px auto 0 auto;
  /* min-width: 900px; */ /* <--- You can remove or comment out this line for more flexibility */
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid #bca7fa;
  box-shadow: 0 4px 28px 0 rgba(90, 110, 130, 0.1);
  background: #fff;
  table-layout: auto; /* <--- This enables columns to size based on their content */
}
/* Custom styling only for Manage Access dropdown */
.access-dropdown-menu {
  width: 270px !important;
  max-height: 70vh !important;
  overflow-y: auto !important;
  right: -14px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  top: 46px !important;
  background: #fff;
  z-index: 999;
}

@media (max-width: 600px) {
  .access-dropdown-menu {
    width: 85vw !important;
    max-height: 50vh !important;
    right: 10px !important;
  }
}
