/* =========================================================
   06-components.dropdown.css
   Dropdown buttons, upload form, chat list
========================================================= */

/* .dropdown-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
} */

.dropdown-toggle i:first-child { margin-right: 10px; }

/* .dropdown-toggle:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
} */

.dropdown-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.uploadForm {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.uploadForm h2 {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  color: var(--text);
}

.saas-radio-group {
  display: grid;
  gap: 10px;
  margin: var(--space-3) 0;
}

.saas-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

/* .button-visual {
  width: 100%;
  border: none;
  background: var(--primary);
  color: white;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 120ms ease;
} */
/* .button-visual:hover { background: var(--primary-hover); } */

.paychecks-empty {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Chats container (your existing structure) */
.div26 {
  margin-top: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  max-height: 340px;
  overflow: auto;
}

.div27 { padding: var(--space-2); }

.user-info {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.user-name { font-weight: 600; font-size: 13px; }
.user-email { font-size: 12px; color: var(--muted); }


/* //////////////////////////////////////////////////////////////////// */

/* ===== Sidebar buttons (match website palette) ===== */
.dropdown-toggle{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;

  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  cursor: pointer;

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dropdown-toggle:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dropdown-toggle:focus-visible{
  outline: none;
  box-shadow: var(--shadow-sm), var(--ring);
}

/* Upload action button inside PDF dropdown */
.button-visual,
#uploadBtn{
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-weight: 650;
  cursor: pointer;

  background-image: linear-gradient(120deg, #afe5ff, #cfb7ff);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(162, 117, 255, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.button-visual:hover,
#uploadBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(162, 117, 255, 0.30);
}

.button-visual:active,
#uploadBtn:active{
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}


/* ---------- 2) Sidebar toggles: stable layout (no clipping) ---------- */
#mySidenav .dropdown-toggle{
  width: 100%;
  /* switch from flex to grid for perfect alignment */
  display: grid !important;
  grid-template-columns: 18px 1fr 18px; /* left icon | label | chevron */
  align-items: center;
  column-gap: 10px;

  /* IMPORTANT: allow wrapping; do NOT clip */
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* left icon sits in column 1 */
#mySidenav .dropdown-toggle > i:first-child{
  grid-column: 1;
  justify-self: start;
}

/* Let the text wrap naturally in column 2
   (text nodes are in the button; grid col 2 will take remaining space) */
#mySidenav .dropdown-toggle{
  line-height: 1.25;
}

/* ---------- 3) Kill ALL existing chevrons inside buttons (prevents doubles) ---------- */
#mySidenav .dropdown-toggle i.fa-chevron-down{
  display: none !important; /* beats your inline display/visibility quirks */
}

/* ---------- 4) Add ONE consistent chevron via CSS (only on real dropdowns) ---------- */
/* Apply only to the actual dropdown toggles you use */
#mySidenav #dropdown-toggle4::after,
#mySidenav #dropdown-toggle::after{
  content: "\f078"; /* Font Awesome chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;

  grid-column: 3;
  justify-self: end;
  opacity: .75;
  font-size: 0.9rem;
}

/* Optional: rotate chevron when open (if you set aria-expanded properly) */
#mySidenav #dropdown-toggle4[aria-expanded="true"]::after,
#mySidenav #dropdown-toggle[aria-expanded="true"]::after{
  transform: rotate(180deg);
  opacity: 1;
}

/* Ensure toggle buttons don’t look “misaligned” when multi-line */
#mySidenav #dropdown-toggle4::after,
#mySidenav #dropdown-toggle::after{
  transition: transform .18s ease, opacity .18s ease;
}

/* ---------- 5) Remove any weird spacing caused by bootstrap buttons ---------- */
#mySidenav .dropdown-toggle{
  padding-right: 12px; /* keeps arrow away from edge */
}

/* Hide only Bootstrap's automatic caret, keep your own icons */
.dropdown-toggle::after {
  display: none !important;
  content: none !important;
}
