/* ===== Body ===== */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fb;
  color: #333;
}


/* ===== Header ===== */
.header {
  width: 100%;
  color: #fff;
}

/* ===== Top Bar ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(to right, #A61C82, #7B1E6A);
}

.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-name {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

/* ===== Right Section ===== */
.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.top-right a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.top-right a:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(to right, #A61C82, #7B1E6A);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  margin: 0;
  font-size: 36px;
}

.hero p {
  margin-top: 10px;
  font-size: 18px;
}

/* ===== Content Area ===== */
.home-content {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ===== Card ===== */
.card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  line-height: 1.7;
  font-size: 16px;
  transition: transform 0.2s ease;

  /* Added height control */
  min-height: 250px; /* Ensures card has a decent height */
}

/* Optional: For larger content, auto-expand */
.card p {
  margin-bottom: 15px;
}

.card:hover {
  transform: translateY(-3px);
}

.card a {
  color: #A61C82;
  font-weight: 500;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}


/* ===== Login Page ===== */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 650px;
  width: 100%;
  text-align: center;
}

.logo-section img {
  max-width: 180px;
  margin-bottom: 15px;
}

.tagline {
  font-size: 18px;
  color: #555;
  margin-bottom: 15px;
  font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.login-form input[type="submit"] {
  width: 95px;
  padding: 12px;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.login-form input[type="submit"]:hover {
  background-color: #0056b3;
}

.login-links {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.login-links a {
  color: #0d6efd;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

/* ===== Login Roles ===== */
.login-roles {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.login-role {
  flex: 1;
  min-width: 220px;
  max-width: 260px;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 25px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.employee-role { background-color: #00acc1; }
.distributor-role { background-color: #702c63; }

.login-role:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.role-icon { font-size: 50px; margin-bottom: 15px; }
.role-text { font-size: 16px; text-align: center; }
.desktop-logout {
  display: block;
}

@media (max-width: 768px) {

  .desktop-logout {
    display: none;
  }

}
/* ===== Responsive ===== */
 @media (max-width: 768px) {

  .top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    min-height: 60px;
  }

  .top-left {
    flex: 1;
  }

 .top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

  .welcome {
    font-size: 12px;
    white-space: nowrap;
    
  }

}
@media (max-width: 600px) {
  .login-roles { flex-direction: column; gap: 20px; }
}

/* ===== Drupal Toolbar Cleanup ===== */
.toolbar-bar,
.toolbar-tray {
  box-shadow: none !important;
  border-bottom: none !important;
}

.messages {
  margin: 20px auto;
  max-width: 600px;
  padding: 20px;
  border-radius: 8px;
  font-weight: 500;
}

.messages--error {
  background: #fee2e2;
  border: 2px solid #fecaca;
  color: #dc2626;
}

.messages__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: #0074d9;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #999;
  margin: 0 8px;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding-right: var(--bs-breadcrumb-item-padding-x);
    color: var(--bs-breadcrumb-divider-color);
    content: var(--bs-breadcrumb-divider, "") !important;
}

@media (min-width: 1200px) {
    .h1, h1 {
        font-size: 1.5rem !important;
    }
}

body { 
  display: flex;
  flex-direction: column;
}
/* main,
.layout-content,
.region-content {
  min-height: calc(100vh - 140px);
} */


/* .container {
  flex: 1;
  min-height: calc(100vh - 180px);
} */
.nav-bar-mobile li:last-child {
  margin-bottom: 0;
}

.nav-bar-mobile li a {
  padding: 12px 16px;
}
/* 
.mobile-logout a {
  color: #dc3545 !important;
} */

.footer {
    background: #1f1f1f;
    color: #ccc;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}



@media only screen and (max-width: 768px) {
  .custom-breadcrumb {
    display: none !important;
  }
}



/* Mobile Menu */
/* ===== Common navigation link style (applies to both desktop and mobile) ===== */
.nav-bar-desktop a,
.nav-bar-mobile a,
.nav-bar-desktop li a,
.nav-bar-mobile li a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-bar-desktop a:hover,
.nav-bar-desktop li a:hover,
.nav-bar-desktop li a.home-active,
.nav-bar-mobile a:hover,
.nav-bar-mobile li a:hover,
.nav-bar-mobile li a.home-active {
  background: #00addc;
  color: #fff;
}

/* ===== Desktop navigation ===== */

/* Container */
.nav-bar-desktop {
  background: #fff;
  border: none;
  box-shadow: none;
}

/* List */
.nav-bar-desktop {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 15px 3px;
  border-bottom: 1px solid #e5e5e5;
}

/* Hide on mobile */
@media (max-width: 768px) {
  .nav-bar-desktop {
    display: none;
  }
}

/* ===== Mobile navigation ===== */

/* Mobile nav container */
.nav-mobile {
  background: #fff;
  border: none;
  box-shadow: none;
    top: 100%;
  right: 0;   /* 👈 THIS makes it open from right */
  width: 240px;
  background: #fff;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border-radius: 8px;
}


/* Mobile nav list (items stacked vertically, one per row) */
/* .nav-bar-mobile {
  display: none;
  flex-direction: column;
  gap: 0px;
  list-style: none;
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.nav-bar-mobile.is-open {
  display: flex;
} */

.nav-bar-mobile.is-open {
  display: flex;
  flex-direction: column;
}
.nav-bar-mobile {
  display: none;
}

.nav-bar-mobile.is-open {
  display: flex;
}
.nav-toggle-mobile {
  color: #fff;
  font-size: 22px;
  padding: 4px 8px;
  line-height: 1;
}
.logo {
  max-height: 57px;
  width: auto;
}
/* Each mobile item as a full‑width block, one row per item */
.nav-bar-mobile li {
  width: 100%;
   margin-bottom: 8px;
}

.nav-bar-mobile li a {
  display: block;
  width: 100%;
}

/* Hamburger toggle */
.nav-toggle-mobile {
   display: none;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 12px;
  color: #fff;
}
/* .nav-mobile {
  position: relative;
}

.nav-bar-mobile {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: #fff;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border-radius: 8px;
} */
/* Show mobile nav and toggle only on mobile */
@media (max-width: 768px) {
  .nav-toggle-mobile {
    display: block;
  }

  .nav-bar-desktop {
    display: none;
  }
   .top-left .logo {
    display: none;
  }

  /* On mobile, hide desktop nav, show only mobile nav */
  .nav-mobile {
    display: block;
  }
}

/* Hide mobile nav on desktop (keep only desktop nav) */
@media (min-width: 769px) {
  .nav-mobile {
    display: none;
  }
}

.nav-bar-desktop a.home-active,
.nav-bar-mobile a.home-active {
  background: linear-gradient(to right, #00addc, #0095c0);
  color: #fff !important;
  border-radius: 5px;
}

.salesforce-login-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.salesforce-login-error strong {
    display: block;
    color: #721c24;
    margin-bottom: 4px;
    font-weight: 600;
}