/* ================================================================
CSS INDEX
================================================================
1.  UNIVERSAL BOX MODEL RESET
2.  LINK BUTTON STYLING
3.  LOGIN PAGE
4.  STAGE 4 – FORM PAGES
5.  TASK DETAIL PAGE
6.  TASK TREE
7.  TASK ACTION BUTTONS
8.  PROGRESS BAR
9.  GANTT BAR
10. CSS Copied from base.html
11. Copied from project_create.html
12. Making the cards pop a little, :)
13. Making the interactive-project-card pop a little, :)
14. LAYOUT WRAPPERS
15. HEADER & FOOTER
16. HEADER LOGO & TITLE
17. CHOICES.JS LAVENDER THEME OVERRIDES
18. image-grid-3x1
19. Forms styling
================================================================
*/

/* =====================
UNIVERSAL BOX MODEL RESET
=======================*/
*, *::before, *::after {
    box-sizing: border-box;
}

h1 {
    color: #5D5275;
    margin-top: 0;
}

.lavender-line {
    height: 4px;
    width: 100%;
    background: #d8b4e2c4;
    border-radius: 2px;
    margin: 10px 0 25px;
}

label {
    font-weight: 600;
    color: #5D5275;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CFC6DD;
    border-radius: 10px;
    background: #FAF8FF;
    margin-bottom: 15px;
    margin-top: 5px;
    font-size: 15px;
}

button {
    background: #9C89B8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin: 4px;
}

/* =====================
LINK BUTTON STYLING
=======================*/

.button_href_link {
    display: inline-block;         /* Allows padding and margins to work correctly on a link */
    background: #9C89B8;           /* Matches your standard button background */
    color: white;                  /* Overrides the default blue link color */
    text-decoration: none;         /* Removes the link underline */
    padding: 8px 18px;             /* Slightly smaller padding to fit nicely inside a table cell */
    border-radius: 10px;           /* Matches your theme's standard rounded corners */
    font-size: 15px;               /* Scaled for table readability */
    font-weight: 600;              /* Makes the text pop */
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;   /* Smooth hover transition */
    margin: 2px;
}

.button_href_link:hover {
    background: #7E6AA2;           /* Matches your standard button hover color */
    color: white;                  /* Ensures text stays white on hover */
    text-decoration: none;         /* Keeps the underline hidden on hover */
}


button:hover {
    background: #7E6AA2;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #E9E3F5;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #F2ECFA;
}
.kpi-block {
    background: #FAF8FF;
    border: 1px solid #E2D9F3;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.kpi-block h3 {
    color: #5E5472;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.tabs {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
}

.tab-btn {
    background: #E6DFF1;
    color: #6A4C8C;
    padding: 12px 24px;
    border-radius: 10px 10px 0 0;
    border: 1px solid #D6CBE4;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.tab-btn:hover {
    background: #DCCCEA;
    color: #4A2E6F;
}

.tab-btn.active {
    background: #FAF8FF;
    color: #4A2E6F;
    border-bottom: 1px solid white;
    box-shadow: 0 -2px 6px rgba(150, 120, 180, 0.2);
    border-radius: 10px 10px 0 0;
}
.hidden {
    display: none;
}
.kpi-form {
    background: #FAF8FF;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #E6DFF1;
    margin-bottom: 20px;
}
.kpi-form h3 { color: #5E5472; margin-top:0; }
#add-kpi-btn {
    background: #D8B4E2;
    color: #4A3F5C;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}
#add-kpi-btn:hover { background: #C9A3D6; }
.remove-kpi-btn {
    background: #E3D2EB;
    color: #4A3F5C;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.remove-kpi-btn:hover { background: #D0BDD9; }

.category-form-block {
  background: #FAF8FF;
  padding: 20px;
  border: 1px solid #E6DFF1;
  border-radius: 12px;
  margin-bottom: 20px;
}
.remove-category-btn {
  background: #E3D2EB;
  color: #4A3F5C;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.remove-category-btn:hover { background: #D0BDD9; }

#add-category-btn {
  background: #D8B4E2;
  color: #4A3F5C;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
#add-category-btn:hover { background: #C9A3D6; }

.lavender-box {
    background: #FAF8FF;
    border: 1px solid #E6DFF1;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.entry-block {
    background: #FFFFFF;
    border: 1px solid #E6DFF1;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.add-btn {
    background: #D6B5E1;
    color: #4A3F5C;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.add-btn:hover { background: #C8A5D4; }

.remove-btn {
    background: #E4D4EC;
    color: #4A3F5C;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.remove-btn:hover { background: #D2C0D8; }

.submit-btn {
    background: #B892CE;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    cursor: pointer;
    margin: 2px;
}

.submit-btn:hover {
    background: #A681BF;
}

/* COMMENTED OUT DUPLICATE: The .hidden class is already defined on line 85 */
/*
.hidden { display: none; }
*/

.save-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #9a23fb;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    margin: 2px;
}
.save-btn:hover {
    background: #B892CE;
}

.dropdown {
    list-style: none;
}

.dropdown-btn {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 20px;
    color: #818181;
    display: block;
    border: none;
    background: none;
    width:100%;
    text-align: left;
    cursor: pointer;
    outline: none;
    list-style-type: none;
  }

.dropdown-menu{
    list-style-type: none;

}
  .dropdown-btn:hover {
    color: #f1f1f1;
  }

 .ul {
    list-style-type: none;
  }
/* Turn the UL into a 3â€‘column grid */
.checkbox-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 20px;
    padding-left: 0 !important;
    list-style: none;
}

/* Each checkbox item */
.checkbox-grid li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #faf7fc;
    border: 1px solid #e0d7f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

/* Hover effect */
.checkbox-grid li:hover {
    background: #f3e9ff;
    border-color: #c7b3e6;
}

/* Checkbox styling */
.checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6a1b9a;
}

/* =====================
LOGIN PAGE
=======================*/

/* Full-page centering */
.login-wrapper {
min-height: 80vh;
display: flex;
justify-content: center;
align-items: center;
background: #f7f5fb;
padding: 20px;
}

/* Card styling */
.login-card {
width: 100%;
max-width: 500px;
background: #ffffff;
padding: 32px 28px;
border-radius: 14px;
box-shadow: 0 4px 18px rgba(0,0,0,0.08);
text-align: center;
}

.login-title {
font-size: 1.6rem;
font-weight: 700;
color: #4a148c;
margin-bottom: 20px;
}

/* Error message */
.login-error {
background: #ffe6e6;
color: #b30000;
padding: 10px;
border-radius: 6px;
margin-bottom: 15px;
font-size: 0.9rem;
}

/* Form fields */
.login-field {
text-align: left;
margin-bottom: 18px;
}

.login-field label {
font-weight: 600;
color: #4a148c;
margin-bottom: 6px;
display: block;
}

.login-field input {
width: 100%;
padding: 10px 12px;
border: 1px solid #d2c7e5;
border-radius: 8px;
font-size: 0.95rem;
transition: border-color 0.2s;
}

.login-field input:focus {
border-color: #6a1b9a;
outline: none;
box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.15);
}

/* Button */
.login-btn {

padding: 12px;
background: #6a1b9a;
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
margin-top: 10px;
}

.login-btn:hover {
background: #4a148c;
}

/* Links */
.login-links {
margin-top: 14px;
}

.login-links a {
color: #6a1b9a;
font-size: 0.9rem;
text-decoration: none;
}

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

/* Strong, scoped override for the Register button */

button.btn,
.card button.btn,
.card .btn {
  display: inline-block !important;
  width: auto !important;           /* prevent full-width rules */
  padding: 12px 20px !important;
  background: #6a1b9a !important;   /* desired lavender */
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

/* Hover */
button.btn:hover,
.card button.btn:hover {
  background: #4a148c !important;
}

/* If Bootstrap's .btn or .btn-primary is applied, neutralize full-width/blue inside login card */
.card .btn,
.card .btn-primary,
.card .btn-block {
  width: auto !important;
  display: inline-block !important;
  background: transparent !important; /* let .btn set the color */
  border: none !important;
  box-shadow: none !important;
}


.auth {
  width: 100%;
  position: relative;
  z-index: 1;
  background: transparent;
  height: 99vh; /* vh = viewport height */
  display: flex; /*needed for formatting*/
  justify-content: center;
  align-items: center;
}

.auth::after{
  z-index: -1; /* places it behind objects with a higher z-index*/
  opacity: 0.1;
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: url(../images/pattern.jpg);
}

.auth > .card {
  padding: 3rem 4rem;
  width: 60%;
  max-width: 65rem; /* means rem = root element. Represents the size of the root element
  /* background-color: #555; */
}

@media screen and (min-width: 750px) {
  .auth > .card {
    padding: 5rem 8rem;
    width: 95%;
    max-width: 65rem;
  }
}

.auth__header h3 {
  color: var(--color-sub);
  font-weight: 700;
  margin-top: 1rem;
  text-align: center;
  word-wrap: normal;
}

.auth__header p {
  font-weight: 400;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.auth__form {
  margin: 3rem 0;
}

.auth .auth__form label,
.auth .auth__alternative p {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-sub-light);
  justify-content: center;
}

.auth .auth__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0;
}
.auth .auth__actions a {
  text-decoration: underline;
}

.auth .auth__alternative a {
  font-size: 2rem;
  font-weight: 500;
}

/* =====================
STAGE 4 â€“ FORM PAGES
=======================*/

.form-container {
    background: #FAF8FF;
    border: 1px solid #E6DFF1;
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto 40px;
}

.form-container h2 {
    color: #5D5275;
    margin-bottom: 10px;
}

.form-container .lavender-line {
    margin-bottom: 25px;
}

.form-container button {
    background: #B892CE;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
}

.form-container button:hover {
    background: #A681BF;
}

/* =====================
TASK DETAIL PAGE
=======================*/

.task-detail-card {
    background: #FFFFFF;
    border: 1px solid #E6DFF1;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.task-detail-card h2 {
    color: #5D5275;
    margin-top: 0;
}

.task-meta {
    color: #7A6E8A;
    font-size: 14px;
    margin-bottom: 15px;
}

.update-block {
    background: #FAF8FF;
    border: 1px solid #E6DFF1;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.update-block small {
    color: #7A6E8A;
}

/* =====================
TASK TREE
=======================*/

.task-tree {
    list-style: none;
    padding-left: 0;
}

.task-tree li {
    background: #FAF8FF;
    border: 1px solid #E6DFF1;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: 0.2s;
}

.task-tree li:hover {
    background: #F3E9FF;
    border-color: #C7B3E6;
}

.task-tree a {
    color: #6A4C8C;
    font-weight: 600;
    text-decoration: none;
}

.task-tree a:hover {
    text-decoration: underline;
}

.task-tree ul {
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 0;
    border-left: 2px dashed #E6DFF1;
}

/* =====================
TASK ACTION BUTTONS
=======================*/

.task-action-btn {
    background: #D8B4E2;
    color: #4A3F5C;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.task-action-btn:hover {
    background: #C9A3D6;
}

.task-complete-btn {
    background: #B892CE;
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.task-complete-btn:hover {
    background: #A681BF;
}

/* =====================
PROGRESS BAR
=======================*/

.progress-container {
    background: #F2ECFA;
    border-radius: 12px;
    height: 18px;
    width: 100%;
    overflow: hidden;
    margin: 10px 0 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #B892CE, #9C89B8);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 12px;
}

/* =====================
GANTT BAR
=======================*/
.gantt-container {
    width: 100%;
    padding: 10px 0;
}

.gantt-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.gantt-label {
    width: 180px;
    font-weight: 600;
    color: #5D5275;
}

.gantt-bar {
    position: relative;
    height: 20px;
    background: #E9E3F5;
    border-radius: 10px;
}

.gantt-progress {
    height: 100%;
    background: #B892CE;
    border-radius: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* .card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-align: center;
} */

.card h2 {
    margin-bottom: 15px;
}

.button-1 {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #4a6cf7;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.button-1:hover {
    background: #3a59d4;
}
/*======================================================================================================
=======================================CSS Copied from base.html========================================
======================================================================================================*/

.alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.alert.error { background: #ffdddd; border: 1px solid #ff5c5c; }
.alert.success { background: #ddffdd; border: 1px solid #5cff5c; }
.alert.warning { background: #fff4cc; border: 1px solid #ffcc00; }
.alert.info { background: #ddeeff; border: 1px solid #5c9cff; }

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #333;
    display: flex;

    /* A soft base color with two large, blurry radial gradients in opposite corners */
    background-color: #F5F5FA;
    background-image:
        radial-gradient(at 0% 0%, rgba(216, 180, 226, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(156, 137, 184, 0.2) 0px, transparent 50%);
    background-attachment: fixed; /* Keeps the graphic in place when scrolling */
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #9C89B8;
    color: white;
    padding: 30px 20px;
    min-height: 100vh;
    box-shadow: 4px 0 16px rgba(0,0,0,0.1);
}

.sidebar h2 {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 700;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    transition: background 0.2s;
}

.sidebar a:hover {
    background: #7E6AA2;
}

/* Main content */
.content {
    flex: 1;
    padding: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(156, 137, 184, 0.3);
}

.card_container {
    padding: 30px;
    border-radius: 18px;
    /* The Gradient */
    background: linear-gradient(135deg, #d3cad6 0%, #9C89B8 60%, #FFDDA1 100%);

    /* Optional: A subtle shadow using the purple to anchor it */
    box-shadow: 0 10px 20px rgba(156, 137, 184, 0.2);
}

/* COMMENTED OUT DUPLICATE BLOCK: All of the rules below were pasted from the base.html merge but are exact duplicates of the rules already defined at the very top of this file (lines 1 - 67). */
/* h1 {
    color: #5D5275;
    margin-top: 0;
}

.lavender-line {
    height: 4px;
    width: 80px;
    background: #D8B4E2;
    border-radius: 2px;
    margin: 10px 0 25px;
}

label {
    font-weight: 600;
    color: #5D5275;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CFC6DD;
    border-radius: 10px;
    background: #FAF8FF;
    margin-bottom: 15px;
    font-size: 15px;
}

button {
    background: #9C89B8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #7E6AA2;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #E9E3F5;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #F2ECFA;
}
.kpi-block {
    background: #FAF8FF;
    border: 1px solid #E2D9F3;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.kpi-block h3 {
    color: #5E5472;
}
*/

/*==================================================================================================
    Copied from project_create.html
====================================================================================================
*/

/* hide panes by default */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* subtabs */
.subtab-pane { display: none; }
.subtab-pane.active { display: block; }

/* simple lavender look for subtabs/tabs */
.subtabs { margin-top: 12px; display:flex; gap:8px; }
.subtab-btn {
    background:#E6DFF1; color:#6A4C8C; padding:8px 14px; border-radius:8px; border:1px solid #D6CBE4;
    cursor:pointer; font-weight:600;
}
.subtab-btn.active { background:#FAF8FF; color:#4A2E6F; box-shadow:0 -1px 6px rgba(150,120,180,0.12); }

/*==================================================================================================
    Making the cards pop a little, :)
====================================================================================================
*/
.interactive-card {
    background: #FAF8FF;               /* Standard subtle background */
    border: 1px solid #E6DFF1;
    border-radius: 16px;
    padding: 25px;
    max-width: 300px;
    text-align: center;

    /* The Magic Ingredient: This tells the browser to smoothly animate any changes over 0.3 seconds */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* What happens when the user's mouse enters the div */
.interactive-card:hover {
    /* 1. The Zoom: Scales the element up to 103% of its original size */
    transform: scale(1.03);

    /* 2. The Light Up: Changes to pure white to simulate getting brighter */
    background: #FFFFFF;

    /* 3. The Glow: Adds a soft, colored shadow around the edges (X-offset, Y-offset, Blur, Color) */
    box-shadow: 0 10px 25px rgba(156, 137, 184, 0.3);

    /* Optional: Slightly lighten the border so it blends nicely into the glow */
    border-color: #D8B4E2;
}
/*==================================================================================================
    Making the interactive-project-card pop a little, :)
====================================================================================================
*/
/* The outer track of the progress bar */
.progress-track {
    width: 80%;
    height: 25px;              /* Slightly taller to make room for the border */
    background-color: #f4effa; /* A very pale, soft lavender background */
    border: 2px solid #000000; /* Your requested 2px border in a deeper lavender */
    border-radius: 5px;
    overflow: hidden;
    margin: 0 0 2% 10%;
    box-sizing: border-box;    /* Prevents the border from breaking your layout width */
}

/* The inner fill - Percentage-based */
.progress-fill {
    height: 100%;
    background-color: #8c6bce; /* A vibrant primary lavender */
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

/* The inner fill - Calculated (Two Values) */
.progress-fill-math {
    height: 100%;
    background-color: #7b58c4; /* A slightly deeper lavender to distinguish it from the percentage one */
    transition: width 0.4s ease-in-out;

    /* The Magic: (Current / Max) * 100 = Percentage % */
    width: calc((var(--current) / var(--max)) * 100%);
}
.interactive-project-container-heading {
    background: #f7f4f4;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-bottom: 10px;
    width: 100%;
    overflow: hidden;
    /* Cleaned up heights */
    min-height: 150px;
    height: 180px;
}

.perfect-fit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.interactive-project-container-body {
    padding: 10px;
    text-align: left;
    /* Cleaned up min-height */
    min-height: 80px;
}

.interactive-project-container-footer {
    background: #ab7abe4d;
    padding: 10px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-top: 10px;
    /* Cleaned up min-height */
    min-height: 80px;
}

.interactive-dashboard-grid {
    display: grid;
    /* Set a clean max-width of 380px.
      It's noticeably smaller than 500px, but still gives the content room to breathe.
    */
    grid-template-columns: repeat(auto-fit, minmax(280px, 480px));
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.interactive-project-card {
    background: #FAF8FF;
    border: 4px solid #ad8ce0;
    border-radius: 25px;
    max-width: 100%;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.interactive-project-card:hover {
    transform: scale(1.03);
    background: #FFFFFF;
    box-shadow: 0 10px 25px rgba(156, 137, 184, 0.3);
    border-color: #D8B4E2;
}

/* Main heading */
h1.page-title {
    color: #4A405A; /* Darker, slightly desaturated purple for contrast */
    font-weight: 700; /* Bold weight for impact */
    letter-spacing: -0.5px; /* Slight tightening for a cleaner look */
    margin-bottom: 8px; /* Reduce gap to subtitle */
}

/* Secondary description text */
p.page-subtitle {
    color: #6D6A75; /* Slightly lighter gray-purple for less visual noise */
    font-size: 1.1em; /* Make it easily readable */
    margin-top: 0;
}

/* =====================
LAYOUT WRAPPERS
=======================*/

.main-wrapper {
    flex: 1;                       /* Takes up all remaining width next to the sidebar */
    display: flex;
    flex-direction: column;        /* Stacks the header, content, and footer top-to-bottom */
    min-height: 100vh;             /* Ensures it spans the full height of the screen */
    background: #f3f3f5;           /* Matches your existing body background */
}
/* The new wrapper - sits between header and footer, forces children side-by-side */
.middle-layout {
    display: flex;
    flex-direction: row;
    flex: 1; /* This forces the middle section to stretch and push the footer to the bottom */
}

/* =====================
HEADER & FOOTER
=======================*/

.top-header {
    display: flex;
    justify-content: space-between; /* Pushes title to the left, user menu to the right */
    align-items: center;
    background: #FFFFFF;
    padding: 15px 40px;
    border-bottom: 1px solid #E6DFF1;
    box-shadow: 0 4px 10px rgba(156, 137, 184, 0.05); /* Very subtle shadow blending into the page */
}

.top-header h3 {
    margin: 0;
    color: #5D5275;
}

.top-header a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #9C89B8;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}
.top-header a:hover {
    background: #aa9cbe;
}

.top-header .header-user-menu {
    font-weight: 600;
    color: #9C89B8;
}

.bottom-footer {
    display: inline-block;
    background: #8579a3;
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid #E6DFF1;
}

.bottom-footer p {
    margin: 0;
    color: #7A6E8A;
    font-size: 14px;
}
/* =====================
HEADER LOGO & TITLE
=======================*/

/* Align the logo and text horizontally */
.header-title {
    display: flex;
    align-items: center;    /* Keeps the logo and text vertically centered with each other */
    gap: 15px;              /* Creates a nice 15px gap between the logo and the text */
}

/* The exact 100x50 container you requested */
.logo-container {
    width: 300px;
    height: 150px;
    border-radius: 6px;     /* Subtle rounded corners to match your theme */
    display: flex;          /* Used here just to center the temporary "LOGO" text */
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;       /* Ensures the image doesn't spill out of the 100x50 box */
}

/* Pre-styling for your future image */
.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* 'contain' ensures your whole logo fits without being cropped or stretched */
}

/* =====================
CHOICES.JS LAVENDER THEME OVERRIDES
=======================*/

/* The main container */
.choices[data-type*="select-multiple"] .choices__inner {
    background-color: #FAF8FF;
    border: 1px solid #CFC6DD;
    border-radius: 10px;
    padding: 4px 8px;
    min-height: 48px;
    margin-top: 5px;

}

/* The selected "pill" tags */
.choices__list--multiple .choices__item {
    background-color: #D8B4E2;
    border: 1px solid #C9A3D6;
    color: #4A2E6F;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 10px;
}

/* The remove 'X' button on the tags */
.choices[data-type*="select-multiple"] .choices__button {
    border-left: 1px solid rgba(74, 46, 111, 0.2);
    margin-left: 6px;
}

/* The dropdown menu */
.choices__list--dropdown {
    background-color: #FFFFFF;
    border: 1px solid #CFC6DD;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(156, 137, 184, 0.2);
}

/* Hovering over an item in the dropdown */
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #F3E9FF;
    color: #4A2E6F;
}

/* The search input text */
.choices__input {
    color: #5D5275;
    background-color: transparent;
}
.empty-text {
    color: #a38ccc; /* Your mid-tone lavender */
    font-style: italic;
    opacity: 0.8;
}
.related-widget-wrapper-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;      /* Prevents the icon itself from squishing */
}

.image-grid-3x1 {
    display: grid;
    /* This creates exactly 1 row with 3 equal-width columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; /* Space between the images */
    width: 100%;
}
.standalone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    border: 4px solid #ad8ce0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.standalone-img:hover{
    transform: scale(1.5);
    box-shadow: #4A2E6F;
    box-shadow: 0 10px 25px rgba(156, 137, 184, 0.3);
    border-color: #D8B4E2;
}

/* =====================
FORMS styling
=======================*/

/* ====== Form base and container ====== */
:root{
  --form-bg: #ffffff;
  --card-bg: #f7f6fb;
  --field-border: #d6dbe0;
  --field-focus: #6aa0ff;
  --error-color: #d9534f;
  --muted: #6b7280;
  --radius: 8px;
  --max-width: 820px;
  --gutter: 16px;
  --label-weight: 600;
  --font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Constrain and center forms across the site */
.form-card,
.form-wrapper,
.card form {
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 20px;
  background: var(--form-bg);
  border-radius: var(--radius);
  font-family: var(--font-family);
  color: #111827;
}

/* Default spacing for form blocks */
.form-row,
.form-field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

/* Labels */
.form-row label,
.form-field label {
  font-weight: var(--label-weight);
  margin-bottom: 6px;
  color: #111827;
  font-size: 14px;
}

/* Inputs, selects, textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  transition: box-shadow .12s ease, border-color .12s ease;
  outline: none;
}

/* Focus state */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--field-focus);
  box-shadow: 0 0 0 4px rgba(106,160,255,0.12);
}

/* Placeholder styling */
::placeholder {
  color: #9aa3ad;
}

/* Error state */
.field-error input,
.field-error select,
.field-error textarea {
  border-color: var(--error-color);
  box-shadow: 0 0 0 4px rgba(217,83,79,0.06);
}
.field-error .error-text {
  color: var(--error-color);
  font-size: 13px;
  margin-top: 6px;
}

/* Help / info text shown under a field */
.field-help {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* Submit button */
button[type="submit"],
button.primary {
  display: inline-block;
  padding: 10px 18px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
button[type="submit"]:hover { filter: brightness(.95); }

/* Secondary button */
button.secondary {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

/* Two-column layout for wider screens */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}
@media (min-width: 880px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Inline label + control row (compact) */
.form-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-inline label { min-width: 160px; margin-bottom: 0; }

/* Small controls (checkboxes, radios) */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

/* Make selects and boolean dropdowns consistent height */
select, input[type="checkbox"], input[type="radio"] {
  min-height: 40px;
}

/* Compact form presentation for auth pages */
.auth-card .form-row { margin-bottom: 12px; }
.auth-card input, .auth-card select, .auth-card textarea { padding: 12px 14px; }

/* Accessibility: focus visible for keyboard users */
:focus-visible {
  outline: 3px solid rgba(37,99,235,0.18);
  outline-offset: 2px;
}

/* Utility classes */
.text-muted { color: var(--muted); font-size: 13px; }
.full-width { width: 100%; }
.center { text-align: center; }
