@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

/* ===========================================================
   LOGIN PAGE — MAIN LAYOUT
   =========================================================== */

/* Full-page background and centering */
.login-body {
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

/* Login container box */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  padding: 50px 70px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================================================
   LOGIN PAGE — LOGOS
   =========================================================== */

.login-logo-main {
  height: 90px;
  margin-bottom: 10px;
}

.login-logo-sub {
  height: 70px;
  margin-bottom: 25px;
}

/* ===========================================================
   LOGIN PAGE — INPUT FIELDS
   =========================================================== */

.login-input {
  width: 234px;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.login-input:focus {
  border-color: #ec619a;
}

/* ===========================================================
   LOGIN PAGE — SUBMIT BUTTON
   =========================================================== */

.login-btn {
  background-color: #ec619a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.login-btn:hover {
  background-color: #ec619a;
  font-weight: bold;
}

/* ===========================================================
   LOGIN PAGE — ERROR MESSAGE
   =========================================================== */

.login-error {
  color: #e43636;
  margin-top: 10px;
  font-size: 14px;
}

/* ===========================================================
   LOGIN PAGE — PASSWORD TOGGLE & FORGOT PASSWORD LINK
   =========================================================== */

/* Password field wrapper (for toggle icon) */
.password-wrapper {
  position: relative;
  width: 260px; /* matches input width */
  margin: 0 auto 15px auto; /* consistent spacing */
}

.password-wrapper .login-input {
  width: 80%;
  padding-right: 38px; /* space for toggle icon */
  margin-bottom: 0; /* prevents double margin */
}

/* Eye icon */
.show-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.show-password:hover {
  opacity: 1;
}

/* Forgot password link */
.forgot-password {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #ec619a;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.forgot-password:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ===========================================================
   GLOBAL STYLES — SHARED ACROSS ALL PAGES
   =========================================================== */

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #222;
}

/* ===========================================================
   HEADER — TOP BAR, LOGO, USER MENU
   =========================================================== */

.top-bar {
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 40px 10px;
  border-bottom: 2px solid #f9f9f9;
}

/* Centered logo wrapper */
.center-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-center {
  height: 120px;
  width: auto;
}

/* ===========================================================
   HEADER — USER AVATAR & DROPDOWN MENU
   =========================================================== */

.user-menu {
  position: absolute;
  right: 28%;
  top: 38%;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

/* Dropdown menu container */
.dropdown {
  display: none;
  position: absolute;
  top: 55px;
  right: 0;
  background-color: #fff;
  border: 1px solid #ffd0e3;
  border-radius: 6px;
  z-index: 10;
}

.dropdown a {
  display: block;
  padding: 10px 15px;
  color: #ec619a;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
}

.dropdown a:hover {
  background-color: #fff;
  color: #88cdd3;
  font-weight: bold;
}

/* Optional contact information */
.contact {
  font-size: 15px;
  color: #444;
  line-height: 1.3;
  text-align: center;
  margin-top: 8px;
}

.contact a {
  color: #ec619a;
  text-decoration: none;
}

.contact a:hover {
  color: #88cdd3;
}

/* ===========================================================
   NAVIGATION BAR
   =========================================================== */

.navbar {
  background-color: #f9f9f9;
  padding: 15px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 110px;
  flex-wrap: wrap;
  position: relative;
}

.navbar a {
  color: #ec619a;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease, opacity 0.2s ease;
}

.navbar a:hover {
  color: #88cdd3;
  opacity: 0.8;
}

/* Active page highlight */
.navbar a.active {
  font-weight: 700;
  color: #88cdd3;
}

/* 🔔 REQUEST BADGE (Notification Counter) */
.req-badge {
  background: #e63946;       /* red bubble */
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 6px;
  display: none;             /* hidden when count = 0 */
  font-weight: 600;
  vertical-align: middle;
}

/* ===========================================================
   MAIN CONTENT AREA (Dashboard)
   =========================================================== */

main {
  padding: 5px;
  text-align: center;
  flex: 1;
}

h2 {
  color: #ec619a;
  margin-bottom: 10px;
}

/* Dashboard header section */
.dashboard-header {
  text-align: center;
}

.dashboard-logo {
  height: 120px;
  width: auto;
  display: block;
  margin: 10px auto 5px auto;
}

/* Descriptive text under the logo */
.table-desc {
  color: #555;
  font-size: 15px;
  max-width: 800px;
  margin: 0 auto 25px;
  line-height: 1.5;
}

/* ===========================================================
   FILTER BAR — SEARCH, FILTERS, BUTTONS
   =========================================================== */

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px auto 30px;
  width: 95%;
}

/* Left side (Add button in Accounts page, etc.) */
.filter-left {
  display: flex;
  justify-content: flex-start;
  flex: 1;
}

/* Center search and dropdowns */
.filter-center form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  flex: 2;
}

/* Right side (Delete buttons, etc.) */
.filter-right {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

/* Search box */
.search-input {
  padding: 10px 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  width: 450px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #ec619a;
}

/* Dropdown filter boxes */
.filter-select {
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  outline: none;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  border-color: #ffd0e3;
}

/* Small descriptive text */
.filter-text {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: #555;
}

/* ===========================================================
   BUTTONS — SHARED ACROSS DASHBOARD & OTHER PAGES
   =========================================================== */

.filter-btn {
  background-color: #ec619a;
  color: white;
  font-family: "Montserrat", sans-serif;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-btn:hover {
  background-color: #ec619a;
  font-weight: bold;
}

.add-btn {
  background-color: #88cdd3;
  color: white;
  font-family: "Montserrat", sans-serif;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.add-btn:hover {
  background-color: #88cdd3;
  font-weight: bold;
}

.delete-btn {
  background-color: #f16363;
  color: white;
  font-family: "Montserrat", sans-serif;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-btn:hover {
  background-color: #f16363;
  font-weight: bold;
}

/* ==========================================================================
   DASHBOARD PAGE — INLINE STYLE REPLACEMENTS
   ========================================================================== */

/* Main two-column wrapper */
.account-details-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
}

/* Left product box (formerly inline 350px width) */
.product-box {
  flex: 0 0 350px;
}

/* Disabled form fields (formerly inline grey backgrounds) */
.disabled-field:disabled {
  background: #f0f0f0 !important;
  cursor: not-allowed !important;
  color: #666;
}

/* Disabled buttons */
.disabled-btn {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* ===========================================================
   TABLE STYLING — MAIN DASHBOARD TABLE
   =========================================================== */

.table-container {
  overflow-x: auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 97.5vw;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
  table-layout: auto;
  word-wrap: break-word;
}

thead {
  background-color: #88cdd3;
  color: #ffffff;
  text-align: center;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  white-space: normal;
}

/* Row alternation and hover */
tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

tbody tr:hover {
  background-color: #eaf7f9;
}

/* Selected row highlight WITHOUT overriding status colours */
tr.selected {
  background-color: #fddde6 !important;   /* soft pink highlight */
  outline: none !important;               /* remove blue outline */
  transition: background-color 0.2s ease;
  cursor: pointer;
}

/* Sorting arrows */
th {
  cursor: pointer;
  user-select: none;
}

.sort-arrow {
  margin-left: 5px;
  color: #ffffff !important;
  font-size: 0.9em;
}

th.sorted-asc .sort-arrow::after {
  content: "▲";
  color: #ffffff !important;
}

th.sorted-desc .sort-arrow::after {
  content: "▼";
  color: #ffffff !important;
}

/* Empty table message */
.no-data-message {
  display: none;
  text-align: center;
  color: #333;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 15px;
}

.status-icon {
    margin-left: 6px;
    font-size: 1.1rem;
    vertical-align: middle;
    display: inline-block;
    text-shadow: 0 0 3px rgba(0,0,0,0.35);
}

/* ===========================================================
   ADD NEW PRODUCT — DASHBOARD LEFT PANEL
   =========================================================== */

#add-product-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Labels for form fields */
#add-product-form label {
  font-family: "Montserrat", sans-serif;
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-top: 8px;
  margin-bottom: -6px;
  text-align: center;
}

/* Product dropdown */
#add-product-form select {
  width: 100%;
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  outline: none;
  text-align: center;
  appearance: auto;
  background-image: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#add-product-form select:focus {
  border-color: #ffd0e3;
}

/* Text and date inputs */
#add-product-form input[type="text"],
#add-product-form input[type="date"] {
  width: 100%;
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  color: #333;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#add-product-form input[type="text"]:focus,
#add-product-form input[type="date"]:focus {
  border-color: #88cdd3;
  box-shadow: 0 0 0 2px rgba(136, 205, 211, 0.2);
}

#add-product-form input[type="date"]::placeholder {
  color: #888;
  text-align: center;
}

/* Submit button */
#add-product-btn {
  background-color: #ec619a;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s ease;
}

#add-product-btn:hover {
  background-color: #d5578b;
  font-weight: 600;
}

/* Inline small link */
.inline-link {
  color: #ec619a;
  text-decoration: none;
  font-weight: 600;
}

.inline-link:hover {
  color: #88cdd3;
  font-weight: bold;
}

/* ===========================================================
   FOOTER — STATIC PAGE FOOTER
   =========================================================== */

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footer {
  background-color: #f9f9f9;
  text-align: center;
  padding: 15px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  bottom: 0;
  width: 100%;
  flex-shrink: 0;
}

.footer p {
  margin: 0;
  font-size: 14px;
  color: #666;
  letter-spacing: 0.3px;
}

footer a {
  text-decoration: none;
  color: #2896ef;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #2896ef;
  font-weight: bold;
}

/* ===========================================================
   ACCOUNTS PAGE — MAIN LAYOUT
   =========================================================== */

/* Outer container for entire Accounts page */
.accounts-main {
  padding: 30px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* ===========================================================
   ACCOUNTS PAGE — CONTROL BAR (Add / Select / Delete)
   =========================================================== */

/* Top control bar wrapper */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

/* Left and right button groups */
.filter-left,
.filter-right {
  flex: 0 0 auto;
}

/* Center dropdown section */
.filter-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Customer dropdown selector */
#customer-select {
  width: 58%;
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  text-align: center;
}

#customer-select:focus {
  border-color: #ffd0e3;
}

/* Add customer button */
#add-customer-btn {
  background-color: #88cdd3;
  color: white;
  font-family: "Montserrat", sans-serif;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#add-customer-btn:hover {
  background-color: #88cdd3;
  font-weight: bold;
}

/* Delete buttons */
#delete-customer-btn,
#delete-line-btn {
  background-color: #f16363;
  color: white;
  font-family: "Montserrat", sans-serif;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#delete-customer-btn:hover,
#delete-line-btn:hover {
  background-color: #f16363;
  font-weight: bold;
}

/* Spacing between multiple delete buttons */
.filter-right .delete-btn:not(:last-child) {
  margin-right: 8px;
}

/* ===========================================================
   ACCOUNTS PAGE — REQUIRED FIELD INDICATORS
   =========================================================== */

/* Red asterisk for required fields */
.required {
  color: red;
  font-weight: bold;
}

/* Text note below fields */
.required-note {
  font-size: 12px;
  color: #555;
  margin-top: -5px;
  margin-bottom: 20px;
  font-style: normal;
  text-align: center;
}

.required-note .red {
  color: red;
  font-weight: bold;
  font-size: 13px;
}

/* ===========================================================
   ACCOUNTS PAGE — MAIN SECTION (Left Details + Right Table)
   =========================================================== */

.account-details-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  padding: 0 5%;
  gap: 40px;
  margin: 30px 0;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

/* ===========================================================
   ACCOUNTS PAGE — LEFT PANEL (Customer Details Box)
   =========================================================== */

.customer-details {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 25px 30px;
  width: 360px;
  flex-shrink: 0;
}

/* Left panel heading */
.customer-details h2 {
  color: #ec619a;
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
}

/* Field labels */
.customer-details label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #444;
  margin-top: 10px;
  margin-bottom: 5px;
}

/* Text & textarea fields */
.customer-details input,
.customer-details textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease;
  resize: none;
  text-align: center;
  box-sizing: border-box;
}

.customer-details input:focus,
.customer-details textarea:focus {
  border-color: #ec619a;
}

/* Save button inside the details panel */
#save-customer-btn {
  background-color: #ec619a;
  color: white;
  font-family: "Montserrat", sans-serif;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 15px;
  width: 100%;
  transition: background-color 0.2s ease;
}

#save-customer-btn:hover {
  background-color: #ec619a;
  font-weight: bold;
}

/* Read-only field appearance */
input[readonly] {
  background-color: #e9e9e9;
  color: #555;
  cursor: not-allowed;
  border: 1px solid #bbb;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===========================================================
   ACCOUNTS PAGE — RIGHT PANEL (Products Table)
   =========================================================== */

/* Right side container */
.table-container {
  flex: 1;
  width: 100%;
  overflow-x: auto;
}

/* Customer products table */
#customer-products-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 400px; /* Prevent columns from squashing */
}

/* Header cells */
#customer-products-table th {
  background-color: #88cdd3;
  color: #fff;
  padding: 10px;
  font-weight: 600;
  font-size: 15px;
}

/* Data cells */
#customer-products-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

/* Alternate row colors */
#customer-products-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover highlight */
#customer-products-table tr:hover {
  background-color: #eaf7f9;
}

/* ===========================================================
   EXPORT PAGE — FORM, DROPDOWNS & LAYOUT
   =========================================================== */

/* Main dropdown styling */
.export-form select {
  width: 95%;
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  text-align: center;
  margin-bottom: 15px;
}

.export-form select:focus {
  border-color: #ffd0e3;
}

/* Labels above each field */
.export-form label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  margin-bottom: 5px;
  color: #333;
  text-align: center;
}

/* Wrapper for the export form section */
.export-controls {
  text-align: center;
  margin-top: 30px;
}

/* Form panel box */
.export-form {
  display: inline-block;
  text-align: center;
  background: #f9f9f9;
  padding: 25px 35px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Section heading */
.export-controls h2 {
  font-family: "Montserrat", sans-serif;
  color: #333;
  margin-bottom: 15px;
}

/* Submit button */
.export-form .btn-primary {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  background-color: #ec619a;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.export-form .btn-primary:hover {
  background-color: #d5588a;
}

/* Date input fields */
.date-input {
  width: 85%;
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  text-align: center;
  margin-bottom: 10px;
}

.date-input:focus {
  border-color: #ffd0e3;
}

/* ===========================================================
   EXPORT PAGE — PDF OUTPUT TEMPLATE (WeasyPrint)
   =========================================================== */

/* PDF wrapper layout */
.pdf-export {
  font-family: "Montserrat", sans-serif;
  color: #333;
  padding: 25px 30px;
}

/* PDF title heading */
.pdf-export h2 {
  color: #ec619a;
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
}

/* PDF table */
.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  border-radius: 6px;
  overflow: hidden; /* Ensures rounded corners show properly */
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.pdf-table th,
.pdf-table td {
  border: 1px solid #ddd;
  padding: 10px 8px;
  font-size: 13px;
  text-align: left;
}

.pdf-table th {
  background-color: #88cdd3; /* Brand green-blue */
  color: white;
  font-weight: 600;
  text-transform: capitalize;
}

.pdf-table tr:nth-child(even) {
  background-color: #f4f4f4; /* Light grey alternating rows */
}

.pdf-table tr:nth-child(odd) {
  background-color: #ffffff; /* White alternating rows */
}

/* PDF footer text */
.pdf-footer {
  text-align: center;
  margin-top: 35px;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

/* ===========================================================
   EXPORT PAGE — STATUS / RESULT MESSAGES
   =========================================================== */

.export-message {
  margin-top: 15px;
  background-color: #f9f9f9;
  padding: 12px 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

/* ===========================================================
   HELP PAGE — FAQ CONTAINER & LAYOUT
   =========================================================== */

/* Outer container for FAQ box */
.help-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  padding: 30px 40px;
  text-align: left; /* Ensures all text inside is left aligned */
}

/* Page heading */
.help-container h2 {
  color: #ec619a;
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: 600;
}

/* ===========================================================
   HELP PAGE — FAQ ITEMS (Questions & Answers)
   =========================================================== */

/* Each FAQ block */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  text-align: left; /* Keeps text left aligned */
}

/* FAQ clickable question row */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: left; /* Align question text */
}

.faq-question:hover {
  color: #ec619a;
}

/* Expand/collapse icon */
.faq-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Icon rotation when open */
.faq-icon.rotate {
  transform: rotate(180deg);
}

/* Hidden answer text */
.faq-answer {
  display: none;
  margin-top: 10px;
  color: #555;
  line-height: 1.6;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
  text-align: left; /* Align answer text */
}

/* Fade-in animation for answer */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===========================================================
   HELP PAGE — LINKS INSIDE FAQ ANSWERS
   =========================================================== */

/* Hyperlinks inside answers */
.faq-answer a {
  color: #ec619a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.faq-answer a:hover {
  color: #88cdd3;
  font-weight: bold;
}

/* ===========================================================
   HELP PAGE — USER PERMISSIONS SECTION
   =========================================================== */

/* Section after FAQ for notes */
.faq-note {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #eee;
  color: #444;
  text-align: left;
  line-height: 1.6;
  font-size: 15px;
}

/* Permissions subsection heading */
.faq-note h3 {
  color: #ec619a;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

/* List structure inside permissions note */
.faq-note ul {
  margin: 10px 0 10px 20px;
  padding: 0;
  list-style: disc;
}

/* Individual list items */
.faq-note li {
  margin-bottom: 6px;
  font-size: 15px;
}

/* ===========================================================
   EMAIL PAGE — MAIN CONTAINER & LAYOUT
   =========================================================== */

/* Wrapper around the email form */
.email-controls {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* Main form panel */
.email-form {
  display: inline-block;
  text-align: center;
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  width: 85%;
  max-width: 800px;
}

/* ===========================================================
   EMAIL PAGE — FORM LABELS
   =========================================================== */

.email-form label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  margin-top: 12px;
  margin-bottom: 6px;
  color: #333;
  text-align: center;
}

/* ===========================================================
   EMAIL PAGE — FORM FIELDS (Inputs, Selects, Textarea, Chips)
   =========================================================== */

/* Shared styling for all input/textarea/select fields and chip container */
.email-form input,
.email-form select,
.email-form textarea,
.email-input-area {
  width: 94%;
  max-width: 700px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease;
  margin: 0 auto 14px auto;
  outline: none;
  text-align: center;
  box-sizing: border-box;
  display: block;
}

/* Highlight fields on focus */
.email-form input:focus,
.email-form select:focus,
.email-form textarea:focus,
.email-input-area:focus-within {
  border-color: #ec619a;
}

/* ===========================================================
   EMAIL PAGE — MULTIPLE EMAIL INPUT (Chip System)
   =========================================================== */

/* Container for chips + input */
.email-input-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #fafafa;
  padding: 8px 10px;
}

/* The input at the end of the chip list */
.email-input-area input {
  border: none;
  flex: 1;
  min-width: 200px;
  background: transparent;
  outline: none;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  text-align: center;
}

/* Individual email "chips" */
.email-chip {
  background-color: #88cdd3;
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* X button on chip */
.remove-chip {
  cursor: pointer;
  font-weight: bold;
  color: #fff;
}

/* ===========================================================
   EMAIL PAGE — MESSAGE BODY TEXTAREA
   =========================================================== */

#message-body {
  resize: vertical;
  height: 220px;
  text-align: left;
  white-space: pre-line;
  font-family: "Montserrat", sans-serif;
}

/* ===========================================================
   EMAIL PAGE — SEND BUTTON
   =========================================================== */

#send-email-btn {
  margin-top: 15px;
  width: 50%;
  max-width: 250px;
  background-color: #ec619a;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#send-email-btn:hover {
  background-color: #ec619a;
  font-weight: bold;
}

/* ===========================================================
   EMAIL PAGE — STATUS MESSAGE
   =========================================================== */

.status-message {
  font-size: 14px;
  margin-top: 10px;
  color: #333;
}

/* FINAL STATUS COLOUR OVERRIDES — strongest priority */
tbody tr.status-emailed td,
tbody tr.status-emailed {
    background-color: #f3e8ff !important;
}

tbody tr.status-confirmed td,
tbody tr.status-confirmed {
    background-color: #e7fbe7 !important;
}
