body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0e1b33;
  color: #fff;
}

.header {
  background-color: #1b1f2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.brand {
  font-size: 1.5em;
  font-weight: bold;
  background: linear-gradient(90deg, #00d2d3, #2e8bff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand span {
  font-weight: bold;
}

.header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, border-bottom 0.3s;
}

.header nav a:hover {
  color: #00d2d3;
  border-bottom: 2px solid #00d2d3;
}

.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #00d2d3, #2e8bff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 20px;
}

.cta-button {
  background: linear-gradient(90deg, #00d2d3, #2e8bff);
  color: #000;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, outline 0.3s;
}
.cta-button:hover {
  background: transparent;
  outline: 2px solid #00d2d3;
  color: #00d2d3;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  background-color: #0e1b33;
}

.feature-card {
  background-color: #1b1f2a;
  border-radius: 8px;
  padding: 20px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 210, 211, 0.2);
}

.feature-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.footer {
  background-color: #1b1f2a;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
}









/* AI Scale Chat */
.ai-scale-chat {
  background: linear-gradient(90deg, #fdfdfd, #003942);
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 900px;
  color: #000;
}

.ai-scale-chat h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.ai-scale-chat p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.ai-scale-chat .cta-button {
  background: #000;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.ai-scale-chat .cta-button:hover {
  background: transparent;
  outline: 2px solid #000;
  color: #000;
}

/* Mission & Impact */
.mission-impact {
  background-color: #1b1f2a;
  padding: 40px 20px;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 12px;
  color: #fff;
}

.mission-impact h2 {
  color: #00d2d3;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.mission-impact p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.mission-impact .stakeholder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-impact .stakeholder-list li {
  margin-bottom: 10px;
  padding-left: 1.2em;
  position: relative;
}

.mission-impact .stakeholder-list li span {
  position: absolute;
  left: 0;
  color: #00d2d3;
  font-size: 1.2em;
}



.notes-container, .tasks-container {
  max-width: 1000px; /* Increase width for immersive look */
  margin: 40px auto;
  background-color: #1b1f2a;
  padding: 40px;  /* Increase padding */
  border-radius: 8px;
  min-height: 70vh; /* Make it fill a large part of the viewport */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.notes-container h1, .tasks-container h1 {
  color: #00d2d3;
  margin-top: 0;
}
/* Example: If your modal is .modal-content, update this */
.modal-content {
  background: #fff;
  color: #181A1B;
  border-radius: 18px;
  max-width: 350px;
  width: 96vw;
  min-height: 480px;
  box-shadow: 0 12px 32px rgba(34, 40, 64, 0.15), 0 1.5px 4px rgba(34,40,64,0.12);
  padding: 48px 28px 36px 28px; /* vertical space prioritized */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 18px;
  position: relative;
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: left;
}

.modal-content input {
  font-size: 1.08em;
  padding: 0.7em;
  margin-bottom: 1em;
  border-radius: 7px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
}

.modal-content .btn-gradient {
  font-size: 1.12em;
  height: 2.7em;
  border-radius: 7px;
  margin-top: 10px;
}

.modal-content .btn-outline {
  width: 100%;
  border-radius: 7px;
}

.modal-content p, .modal-content a {
  text-align: center;
  margin: 0;
  font-size: 1em;
}

.modal-content {
  animation: pop .18s cubic-bezier(.42,1.7,.62,1) 1;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.98) translateY(20px);}
  to   { opacity: 1; transform: scale(1) translateY(0);}
}



.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  color: #000;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.modal.hidden {
  display: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid #00d2d3;
  color: #00d2d3;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-outline:hover {
  background: #00d2d3;
  color: #000;
}









.assessment-container {
  background: #1b1f2a;
  padding: 40px 32px 32px 32px;
  border-radius: 18px;
  max-width: 700px;
  margin: 60px auto 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.20);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.assessment-header h1 {
  color: #00d2d3;
  font-size: 2.2em;
  margin: 0;
}

#step-indicator {
  color: #fff;
  font-size: 1em;
  opacity: 0.85;
  font-weight: 500;
  align-self: flex-start;
}

#question-container label {
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 8px;
}

#question-container textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1em;
  border: 1px solid #222d3a;
  margin-bottom: 12px;
  background: #273046;
  color: #fff;
  resize: vertical;
}

#next-button {
  align-self: flex-end;
  margin-top: 14px;
  min-width: 160px;
  padding: 12px 28px;
  font-size: 1.1em;
  border-radius: 24px;
  font-weight: 600;
  background: linear-gradient(90deg,#00d2d3,#2e8bff);
  color: #000;
  border: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

#next-button:hover {
  background: transparent;
  outline: 2px solid #00d2d3;
  color: #00d2d3;
}

html, body {
  height: 100%;
  min-height: 100%;
}
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0e1b33; /* matches your main background */
}
.dashboard-main, .quiz-container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
  align-items: center;     /* horizontal center */
  min-height: 60vh;        /* for shorter content */
  width: 100%;
  margin: 0 auto;
}
.quiz-modal {
  background: #fff !important;
  color: #222 !important;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.16);
  padding: 40px 38px 32px 38px;
}

.footer {
  flex-shrink: 0;
}


.modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}



.hidden { display: none; }

.dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.profile-panel, .how-it-works-panel {
  background: #1b1f2a;
  border-radius: 12px;
  padding: 28px;
  margin: 24px 0;
  text-align: left;
}
.profile-panel h2, .how-it-works-panel h2 { color: #00d2d3; }

/* This is for general .btn-gradient buttons (not modal) */
.btn-gradient {
  padding: 0.75rem 2.5rem;    /* Restore normal button width */
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #00d2d3 0%, #2e8bff 100%);
  color: #111;
  font-weight: 600;
  font-size: 1.03rem;
  cursor: pointer;
  transition: filter .2s;
}

/* Only make buttons full-width INSIDE the modal-content (for login/sign up forms) */
.modal-content .btn-gradient {
  width: 100%;
  padding: 0.75rem 0;
}

.btn-gradient:hover {
  filter: brightness(0.97);
}

.auth-switch {
  margin-top: 0.3rem;
  margin-bottom: 0.2rem;
  font-size: .0000001rem;                /* Make it much smaller */
  text-align: center;
  color: #333;
}
.auth-switch a {
  color: #551a8b;
  text-decoration: underline;
  font-weight: 200;
}



@keyframes fadein-slideup {
  from { opacity: 0; transform: translateY(40px);}
  to   { opacity: 1; transform: translateY(0);}
}


.assessment-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 40px 0 rgba(0,30,110,0.12);
  padding: 48px 38px 36px 38px;
  max-width: 640px;
  margin: 60px auto 38px auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  animation: fadein-slideup 0.6s cubic-bezier(.62,1.6,.62,1);
  position: relative;
}

.assessment-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(90deg, #00d2d3 40%, #2e8bff 80%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 34px;
}

.assessment-section {
  margin-bottom: 28px;
}

.assessment-section-title {
  font-size: 1.22em;
  font-weight: 600;
  color: #009eea;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.icon {
  font-size: 1.2em;
}

.assessment-summary {
  font-size: 1.13em;
  color: #2e394b;
  margin-bottom: 10px;
  text-align: center;
}

.assessment-findings {
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 10px;
  margin: 12px 0 8px 0;
  letter-spacing: 0.03em;
}
.badge-success { background: #e5f8ee; color: #1eae69; border-left: 5px solid #1eae69;}
.badge-warning { background: #fff4e6; color: #ff9211; border-left: 5px solid #ff9211;}

.list-plain {
  padding-left: 20px;
  margin-bottom: 8px;
  margin-top: 0;
}
.list-plain li {
  font-size: 1.07em;
  color: #283042;
  margin-bottom: 3px;
  line-height: 1.45;
}

.assessment-opportunities li {
  margin-bottom: 6px;
}

.assessment-action-block {
  background: #f6fafd;
  color: #1984ce;
  border-radius: 14px;
  margin-top: 20px;
  padding: 14px 22px;
  text-align: center;
  font-size: 1.12em;
  border: 1.5px solid #e5eef6;
}
.cta-link {
  color: #009eea;
  text-decoration: underline;
  font-weight: 600;
}
@media (max-width: 700px) {
  .assessment-card { padding: 20px 5vw; }
  .assessment-title { font-size: 1.25em; }
  .assessment-section-title { font-size: 1em;}
}


/* Chat item editing styles */
.chat-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-item:hover {
  background-color: rgba(0, 210, 211, 0.1);
}

.chat-item.editing {
  background-color: rgba(0, 210, 211, 0.15);
}

.chat-item-title {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

.chat-item-input {
  background: #2a3441;
  border: 1px solid #00d2d3;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  outline: none;
}

.chat-item-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-item:hover .chat-item-actions {
  opacity: 1;
}

.edit-btn, .delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 12px;
  transition: background-color 0.2s;
}

.edit-btn:hover {
  background-color: rgba(0, 210, 211, 0.2);
}

.delete-btn:hover {
  background-color: rgba(231, 76, 60, 0.2);
}

/* Message editing styles */
.message {
  position: relative;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.5;
}

.message.user {
  background-color: #2a3441;
  margin-left: 20%;
}

.message.ai {
  background-color: #1b1f2a;
  margin-right: 20%;
}

.message.editing {
  border: 2px solid #00d2d3;
  background-color: rgba(0, 210, 211, 0.1);
}

.message-content {
  flex: 1;
}

.message-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  gap: 4px;
}

.message:hover .message-actions {
  opacity: 1;
}

.message-edit-btn, .message-resend-btn {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 11px;
  transition: background-color 0.2s;
}

.message-edit-btn:hover {
  background-color: rgba(0, 210, 211, 0.8);
}

.message-resend-btn:hover {
  background-color: rgba(46, 139, 255, 0.8);
}

.message-edit-input {
  width: 100%;
  background: #2a3441;
  border: 1px solid #00d2d3;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  min-height: 60px;
  resize: vertical;
  outline: none;
}

.message-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.save-edit-btn, .cancel-edit-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.save-edit-btn {
  background: #00d2d3;
  color: #000;
}

.save-edit-btn:hover {
  background: #00b8b9;
}

.cancel-edit-btn {
  background: #666;
  color: #fff;
}

.cancel-edit-btn:hover {
  background: #555;
}

.edited-indicator {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 4px;
}


.notes-prompts-section li, .notes-completed-section li {
  background: #212b3b;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 16px 16px 12px 16px;
  position: relative;
}
.notes-prompts-section button,
.notes-completed-section button {
  margin-left: 10px;
  background: #2692ff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 16px;
  font-weight: 700;
  cursor: pointer;
}


.note-entry-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.32);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}
.note-entry-modal .modal-content {
  background: #fff;
  padding: 32px;
  border-radius: 22px;
  min-width: 420px;
  box-shadow: 0 4px 32px rgba(30,120,210,0.14);
  color: #1a2237;
}
#noteTextarea {
  width: 100%;
  min-height: 140px;
  font-size: 1.18em;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #c0dafc;
  padding: 13px;
  background: #f7fafd;
  color: #172136;
}



/* === MODIFIED BLOCK FOR TEXTAREAS === */
.notes-container textarea,
#noteTextarea, /* Assuming this is for other general text areas, not specific to Notes page main input */
.quiz-modal textarea,
.assessment-container textarea,
.modal-content textarea {
  width: 100%;
  max-width: 98%; /* Keep this for other textareas like quiz/assessment */
  min-height: 130px;
  height: 130px;
  resize: none;
  background: #fff; /* This keeps the quiz modal textarea white */
  color: #23282e;
  font-size: 1.16em;
  padding: 20px 18px;
  border-radius: 12px;
  border: 1.5px solid #b3d7fa;
  margin: 0 auto 18px auto; /* Keep centering for other textareas */
  box-shadow: 0 3px 18px 0 rgba(0,30,110,0.09);
  display: block;
}

/* === NEW RULE SPECIFICALLY FOR THE NOTES TAB MAIN INPUT === */
#note-input {
  width: 100%; /* Make it full width */
  max-width: none; /* Remove any max-width constraint */
  margin: 0 0 18px 0; /* Remove auto margins to left-align */
  background: #282a36; /* Set background to your desired dark color for notes */
  color: #f8f8f2; /* Text color for notes textarea */
  /* You can keep other properties from the general textarea block here if needed,
     or define them uniquely for #note-input */
  min-height: 130px; /* Keep consistent min-height or adjust */
  height: auto; /* Allow height to adjust based on content */
  resize: vertical; /* Allow vertical resizing for reflections */
  padding: 15px; /* Adjust padding as needed */
  border: 1px solid #6272a4; /* Example border color */
  border-radius: 8px; /* Example border radius */
  box-sizing: border-box; /* Ensures padding/border included in width */
}

/* === MODIFIED BLOCK FOR CONTAINER ALIGNMENT === */
.notes-container, .assessment-container, .quiz-modal {
  display: flex;
  flex-direction: column;
  /* The default for flex-direction: column would be align-items: stretch,
     but if you had align-items: center set previously, this next rule will override it for .notes-container. */
}

/* === NEW RULE FOR NOTES CONTAINER SPECIFIC ALIGNMENT === */
.notes-container {
    align-items: flex-start; /* Aligns content (like h1, p, #note-form) to the left within .notes-container */
    /* Ensure no conflicting 'text-align: center' on the notes-container itself,
       or apply 'text-align: left' directly to h1 and p within it. */
}
.notes-container h1,
.notes-container p {
    text-align: left; /* Explicitly set text alignment to left */
    width: 100%; /* Ensure they take full width to allow left alignment */
}

/* --- Styles for Prompt and Completed Notes Sections --- */

/* --- Styles for list items within prompts and completed notes --- */


/* --- Styles for the Note Form --- */
#note-form {
  width: 100%; /* Ensures the form takes the full available width of .notes-container */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligns the textarea and button to the left */
  box-sizing: border-box; /* Ensures padding is included in width */
  margin-top: 30px;
  margin-bottom: 20px;
}

/* --- Specific Styles for the Notes Tab Reflection Textarea (#note-input) --- */
#note-input {
width: 100%; /* Makes it span the full width of its parent (#note-form) */
max-width: none !important; /* IMPORTANT: Overrides any conflicting max-width from general rules, allowing it to go full width */
margin: 0; /* Removes auto margins, pushing it to the left */
resize: none !important; /* IMPORTANT: Ensures the textarea is NOT resizable */
background: #fff; /* Sets the background to white */
color: #23282e; /* Sets the text color to dark (black/dark grey) */

/* Re-applying other consistent styles to ensure visual match with other textareas/design */
min-height: 130px; /* Keeps consistent minimum height */
height: 130px; /* Sets a fixed height since it's not resizable */
font-size: 1.16em; /* Consistent font size */
padding: 16px; /* Matches the side padding of your prompt cards for visual alignment */
border-radius: 12px; /* Consistent border-radius */
border: 1.5px solid #b3d7fa; /* Consistent border */
box-shadow: 0 3px 18px 0 rgba(0,30,110,0.09); /* Consistent shadow */
box-sizing: border-box; /* Ensures padding and border are included in the 100% width */
}


.notes-container textarea, 
#noteTextarea, /* If this targets a modal textarea, it will keep its styles */
.quiz-modal textarea,
.assessment-container textarea,
.modal-content textarea {
width: 100%;
max-width: 98%; /* This rule will apply to other textareas (like quiz modal) */
min-height: 130px;
height: 130px;
resize: none; /* General textareas also non-resizable */
background: #fff; /* Keeps other textareas white */
color: #23282e; /* Keeps text in other textareas dark */
font-size: 1.16em;
padding: 20px 18px;
border-radius: 12px;
border: 1.5px solid #b3d7fa;
margin: 0 auto 18px auto; /* Keeps other textareas centered if applicable */
box-shadow: 0 3px 18px 0 rgba(0,30,110,0.09);
display: block;
}
#note-form {
  /* ... other styles ... */
  margin-top: 25px; /* Reduced the gap above by 10px */
  margin-bottom: 15px; /* Reduced the gap below by 5px */
}

.tasks-heading {
  color: #8be9fd; /* Consistent heading color (Dracula cyan) */
  margin-bottom: 10px;
  text-align: left;
  font-size: 2.5em;
  font-weight: 700;
  width: 100%; /* Ensures it takes full width for left alignment */
}

.tasks-description {
  color: #f1fa8c; /* Consistent subtitle color (Dracula yellow) */
  margin-bottom: 20px;
  text-align: left;
  font-size: 1.1em;
  width: 100%; /* Ensures it takes full width for left alignment */
}

/* --- Styling for the New Message Section in Tasks --- */
.tasks-message-section {
  background-color: #44475a; /* A darker background, similar to prompt cards */
  color: #f8f8f2;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 30px; /* Space below the message */
  width: 100%; /* Spans the full width of the container */
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 1.05em;
  line-height: 1.5;
}

.tasks-message-section p {
  margin: 0; /* Remove default paragraph margins */
  text-align: left; /* Ensure text inside is left-aligned */
  color: inherit; /* Inherit color from parent */
}

/* --- Styling for the Add Task Input and Button --- */
.add-task-section {
  width: 100%; /* Make the section span full width */
  display: flex;
  flex-direction: column; /* Stack input and button */
  align-items: center; /* Center input and button horizontally */
  margin-bottom: 30px; /* Space below this section */
  box-sizing: border-box;
}

#newTaskInput {
  width: 100%; /* Take full width of its parent (.add-task-section) */
  max-width: 700px; /* Match the max-width of your #note-input for consistency */
  padding: 16px; /* Consistent padding */
  border: 1.5px solid #b3d7fa; /* Consistent border */
  border-radius: 12px; /* Consistent border-radius */
  background: #fff; /* White background for input field */
  color: #23282e; /* Dark text color */
  font-size: 1.16em;
  margin: 0 auto 18px auto; /* Center horizontally, add bottom margin */
  box-shadow: 0 3px 18px 0 rgba(0,30,110,0.09);
  box-sizing: border-box; /* Include padding/border in width */
  resize: none; /* Ensure it's not resizable */
}

#newTaskInput::placeholder {
  color: #6272a4; /* Placeholder color (Dracula comment grey) */
}

#addTaskBtn {
  background-color: #50fa7b; /* Consistent button color (Dracula green) */
  color: #282a36; /* Dark text on button */
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  margin-top: 5px; /* Adjust spacing from input */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#addTaskBtn:hover {
  background-color: #8dffb8; /* Lighter green on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

/* --- Styling for Task List Items (to look like Notes cards) --- */
.task-list {
  list-style: none;
  padding: 0;
  width: 100%; /* Ensure the list itself takes full width */
  box-sizing: border-box;
}

.task-list li {
  background: #212b3b; /* Dark background similar to note cards */
  color: #f8f8f2;
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 16px 16px 12px 16px; /* Similar padding to note cards */
  display: flex; /* Use flexbox for internal layout */
  align-items: center;
  justify-content: space-between; /* Pushes content to edges */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  width: 100%; /* Ensures list items take full width of their parent ul */
}

/* Styles for task text within the list item */
.task-list li span {
  flex-grow: 1; /* Allows the task text to take available space */
  margin-right: 10px; /* Space between text and buttons/checkbox */
  word-break: break-word; /* Prevents long words from overflowing */
}

/* Styles for checkboxes and action buttons within task list items */
.task-list li input[type="checkbox"] {
  margin-right: 10px; /* Space next to checkbox */
  accent-color: #50fa7b; /* Green accent for checkbox */
  transform: scale(1.2); /* Slightly larger checkbox */
  cursor: pointer;
}

.task-list li .actions button {
  background: none;
  border: none;
  color: #bd93f9; /* Consistent icon/action button color (Dracula purple) */
  font-size: 1.1em;
  cursor: pointer;
  margin-left: 8px; /* Space between action buttons */
  transition: color 0.3s ease;
}

.task-list li .actions button:hover {
  color: #ff79c6; /* Dracula pink on hover */
}

.task-list li.completed span {
  text-decoration: line-through;
  color: #6272a4; /* Faded color for completed tasks */
}

/* Specific styling for the delete button if needed, or it can inherit from .actions button */
.task-list li .actions .delete-btn {
  color: #ff5555; /* Dracula red for delete */
}

.task-list li .actions .delete-btn:hover {
  color: #ff79c6; /* Brighter red on hover */
}

/* --- BuildScaleAI Premium Tasks UI Styles --- */

.tasks-container {
  max-width: 1000px;
  margin: 40px auto;
  background-color: #1b1f2a;
  padding: 40px;
  border-radius: 14px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 24px rgba(0,0,0,0.17);
}

.tasks-container h1 {
  color: #00d2d3;
  margin-top: 0;
  font-size: 2.2em;
  margin-bottom: 8px;
}

.tasks-subtitle {
  color: #b8c5d1;
  font-size: 1.12em;
  margin-bottom: 32px;
  line-height: 1.5;
}

#task-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 15px;
}

#task-input {
  width: 100%;
  background: #fff;
  color: #23282e;
  font-size: 1.16em;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1.5px solid #b3d7fa;
  box-shadow: 0 3px 18px 0 rgba(0,30,110,0.09);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#task-input:focus {
  border-color: #00d2d3;
  box-shadow: 0 3px 18px 0 rgba(0, 210, 211, 0.14);
}
#task-input::placeholder {
  color: #888;
  font-style: italic;
}

.btn-gradient {
  align-self: flex-start;
  padding: 12px 32px;
  font-size: 1.1em;
  border-radius: 24px;
  font-weight: 600;
  background: linear-gradient(90deg, #00d2d3, #2e8bff);
  color: #000;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-gradient:hover {
  background: transparent;
  outline: 2px solid #00d2d3;
  color: #00d2d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 210, 211, 0.27);
}

.tasks-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 18px;
}

.task-section {
  background: #212b3b;
  border-radius: 12px;
  padding: 25px;
}

.task-section h3 {
  color: #00d2d3;
  font-size: 1.3em;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-section-icon {
  font-size: 1.18em;
}

/* Card-style Task List */
#task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #36404f;
  color: #fff;
  border-radius: 16px;
  margin-bottom: 22px;
  padding: 28px 32px;
  transition: background 0.18s, box-shadow 0.2s;
  box-shadow: 0 4px 14px 0 rgba(0,30,110,0.09);
  border-left: 4px solid #00d2d3;
  position: relative;
}

.task-item:hover {
  background: #425069;
  box-shadow: 0 8px 32px 0 rgba(0,30,110,0.18);
}

.task-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #00d2d3;
  background: #263044;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border 0.15s, background 0.2s;
  position: relative;
}

.task-checkbox.checked {
  background: #00d2d3;
  border-color: #00d2d3;
}
.task-checkbox.checked::after {
  content: "âœ“";
  color: #10151e;
  font-size: 1.4em;
  font-weight: bold;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -54%);
}

.task-text {
  flex: 1;
  font-size: 1.22em;
  font-weight: 400;
  line-height: 1.5;
  word-break: break-word;
  letter-spacing: 0.02em;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-delete-btn {
  background: #5d2731;
  border: none;
  color: #ffb9b9;
  border-radius: 7px;
  font-size: 1.15em;
  cursor: pointer;
  padding: 8px 14px;
  transition: background 0.17s, color 0.18s;
  outline: none;
}
.task-delete-btn:hover {
  background: #e74c3c;
  color: #fff;
}

.task-item.completed {
  opacity: 0.65;
  background: #233133;
  border-left: 4px solid #28d17c;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: #b1bfcf;
}

@media (max-width: 900px) {
  .task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 10px;
  }
}




.tasks-container h1 {
  color: #00d2d3;
  margin-top: 0;
  font-size: 2.2em;
  margin-bottom: 10px;
}

.tasks-subtitle {
  color: #b8c5d1;
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.5;
}

#task-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 15px;
}

#task-input {
  width: 100%;
  max-width: none;
  background: #fff;
  color: #23282e;
  font-size: 1.16em;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px solid #b3d7fa;
  box-shadow: 0 3px 18px 0 rgba(0,30,110,0.09);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#task-input:focus {
  border-color: #00d2d3;
  box-shadow: 0 3px 18px 0 rgba(0, 210, 211, 0.15);
}

.tasks-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.task-section {
  background: #212b3b;
  border-radius: 12px;
  padding: 25px;
  /* Removed the unwanted border-left from here */
}

.task-section h3 {
  color: #00d2d3;
  font-size: 1.3em;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  background: #2a3441; /* Cleaner background */
  color: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 16px; /* Reduced padding for compact look */
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px; /* Reduced gap */
  transition: all 0.3s;
  border-left: 3px solid transparent; /* Transparent border by default */
}

.task-item:hover {
  background: #323a47;
  transform: translateX(5px);
}

.task-item.completed {
  opacity: 0.7;
  background: #1e2a1e;
  border-left-color: #4caf50;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: #888;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #00d2d3; /* Hollow circle style */
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.task-checkbox.checked {
  background: #00d2d3;
}

.task-checkbox.checked::after {
  content: "âœ“";
  color: #10151e;
  font-size: 1.1em;
  font-weight: bold;
}

.task-text {
  flex: 1;
  font-size: 1.05em; /* Reduced font size */
  line-height: 1.4;
  word-break: break-word;
}

.task-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.task-item:hover .task-actions {
  opacity: 1;
}

.task-delete-btn {
  background: rgba(231, 76, 60, 0.2);
  border: none;
  color: #e74c3c;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.3s;
}

.task-delete-btn:hover {
  background: #e74c3c;
  color: #fff;
  transform: scale(1.05);
}


/* Fix Tasks page to match Notes page styling */
.tasks-container h1 {
  color: #00d2d3 !important;
  margin-top: 0 !important;
  font-size: 2em !important; /* Match notes page title size */
  margin-bottom: 8px !important;
  font-weight: bold !important;
}

.tasks-subtitle {
  color: #fff !important; /* Make caption white like notes page */
  font-size: 1em !important; /* Match notes page caption size */
  margin-bottom: 20px !important;
  line-height: 1.4 !important;
  font-weight: normal !important;
}

/* Reduce task input size to match notes input */
#task-input {
  font-size: 1em !important; /* Reduce from 1.16em */
  padding: 12px !important; /* Reduce padding */
  min-height: 40px !important; /* Reduce height */
  height: 40px !important;
}

/* Reduce button size */
.tasks-container .btn-gradient {
  padding: 8px 20px !important; /* Reduce button padding */
  font-size: 0.9em !important; /* Reduce button font size */
}

/* Reduce task section titles */
.task-section h3 {
  font-size: 1.1em !important; /* Reduce from 1.3em */
  margin-bottom: 12px !important;
}

/* Reduce task item sizes */
.task-item {
  padding: 12px 16px !important; /* Reduce padding significantly */
  margin-bottom: 8px !important; /* Reduce spacing between items */
  gap: 10px !important; /* Reduce gap between elements */
}

.task-text {
  font-size: 0.95em !important; /* Reduce task text size */
  line-height: 1.3 !important;
}

/* Reduce checkbox size */
.task-checkbox {
  width: 18px !important;
  height: 18px !important;
  border-width: 2px !important;
}

.task-checkbox.checked::after {
  font-size: 1em !important; /* Reduce checkmark size */
}

/* Reduce delete button size */
.task-delete-btn {
  padding: 4px 8px !important;
  font-size: 11px !important;
}

/* Reduce section padding */
.task-section {
  padding: 18px !important; /* Reduce from 25px */
}

.tasks-sections {
  gap: 20px !important; /* Reduce gap between sections */
  margin-top: 15px !important;
}

.assessment-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 48px;
  max-width: 700px;
  margin: 32px auto;
}

.assessment-title {
  font-size: 2em;
  color: #00d2d3;
  text-align: center;
  margin-bottom: 16px;
}


/* allow the white quiz-modal window to scroll if its content is tall */
.quiz-modal {
  max-height: 90vh;      /* never taller than 90% of viewport */
  overflow-y: auto;
}

/* give a little breathing room inside */
.quiz-modal .quiz-modal-inner {  
  /* if you had an inner wrapperâ€”otherwise skip */
  padding-bottom: 1rem;
}


.assessment-container {
  /* preserve your existing dark background... */
  background: #1b1f2a;
  /* â€¦but force text to white so itâ€™s visible: */
  color: #fff !important;

  /* make the card itself scroll if itâ€™s tall inside the modal */
  max-height: 60vh;      /* adjust as needed */
  overflow-y: auto;

  /* optional padding tweak so scrollbar isnâ€™t jammed */
  padding-right: 1rem;
}

/* at bottom of styless.css */
.quiz-modal .assessment-summary,
.quiz-modal .list-plain,
.quiz-modal .assessment-findings,
.quiz-modal .assessment-opportunities {
  color: #222 !important;  /* or #000 on your white modal */
}

/* Remove the inner dark container */
.assessment-card {
  background: #fff;
  color: #222;
  max-width: 700px;
  margin: 32px auto;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  text-align: left;     /* center headings/text by default */
}

/* Lead-in paragraph styling */
.assessment-leadin {
  color: #555;
  font-style: italic;
  margin-bottom: 24px;
}

/* Headings inside the assessment */
.assessment-content h3 {
  color: #00d2d3;
  margin-top: 24px;
  margin-bottom: 16px;
}

/* Paragraphs and list items */


/* Lists spacing */
.assessment-content ul,
.assessment-content ol {
  margin: 16px 0 24px 32px;
}

/* Make sure both cards share the same font & spacing */
.assessment-card {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* Tighten up headings & paragraphs */
.assessment-card h2 {
  margin-bottom: 0.5em;
}

.assessment-card p,
.assessment-card li {
  font-size: 1em;
  color: #333;
}

/* Lead-in style */
.assessment-leadin {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5em;
}



/* â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” Card & Layout â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” */
.assessment-card {
  max-width: 800px;               /* a touch wider */
  padding: 48px 40px;             /* extra breathing room */
  margin: 40px auto 80px;         /* more separation from profile & footer */
}

/* â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” Headings â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” */
.assessment-card .assessment-title {
  font-size: 2.4rem;              /* slightly bigger */
  margin-bottom: 0.75em;
}
.assessment-content h3 {
  font-size: 1.6rem;
  color: #00c8d8;                 /* vivid teal */
  margin: 1.5em 0 0.75em;
  font-weight: 600;
}

/* â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” Section Dividers â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” */
.assessment-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #00c8d3, #2e8bff);
  margin: 1.5em 0;
  opacity: 0.3;
}

/* â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” Text & Lists â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” */
.assessment-content p {
  font-size: 1.04em;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.2em;
}
.assessment-content ol,
.assessment-content ul {
  margin: 0 0 1.5em 1.4em;
}
.assessment-content li {
  margin-bottom: 0.75em;
  font-size: 1em;
  color: #444;
  line-height: 1.6;
}

/* â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” â€œNext stepâ€ Callout â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” */
.assessment-content p:last-of-type {
  font-weight: 500;
  border-top: 1px solid #ddd;
  padding-top: 1em;
  color: #222;
}

/* Updated Profile Card Styles (Centered) */
.profile-card {
  background: #212b3b;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;  /* Match assessment card width */
  margin: 40px auto;  /* Center the card */
  color: #f8f8f8;
}

.profile-title {
  color: #fff;
  margin-top: 0;
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

.profile-leadin {
  font-style: italic;
  color: #aaa;
  margin-bottom: 1.5em;
}

.profile-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-content li {
  background: #2c3a4f;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.profile-content li strong {
  color: #00d2d3;
  display: block;
  font-size: 0.9em;
  margin-bottom: 4px;
}

#edit-profile-btn {
  margin-top: 20px;
}

/* === Assessment Card (More Compact) === */
.assessment-card {
  max-width: 800px;
  padding: 32px; /* Reduced padding */
  margin: 40px auto 80px; /* Centered with a little more space below */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #1a2237;
}

.assessment-card .assessment-title {
  font-size: 1.8rem; /* Reduced font size */
  margin-bottom: 0.75em;
  color: #1a2237;
}

.assessment-card .assessment-content h3 {
  font-size: 1.4rem; /* Reduced font size */
  color: #008f9c; /* a vivid teal */
  margin: 1em 0 0.5em; /* Reduced margins */
  font-weight: 600;
}

.assessment-card .assessment-content p,
.assessment-card .assessment-content li {
  font-size: 1em;
  color: #333;
  margin-bottom: 0.5em; /* Reduced spacing */
  line-height: 1.5;
}

.assessment-content hr {
  border: none;
  height: 1px; /* Thinner rule */
  background: #e2e2e2;
  margin: 1.5em 0;
}

.assessment-leadin {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5em;
}

.btn-edit-profile {
  background: #00d2d3;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
/* Desktop: Show header, hide mobile elements */
@media (min-width: 641px) {
  .desktop-only {
    display: flex !important;
  }
  .mobile-only {
    display: none !important;
  }
  .mobile-title {
    display: none !important;
  }
}

/* Mobile: Hide desktop header, show mobile title + bottom island */
@media (max-width: 640px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .mobile-title {
    display: block !important;
  }
  
  /* Mobile Title Container - Regular container styling (no glassmorphism) */
 .mobile-title {
    position: static; /* Make it static like desktop */
    margin: 20px auto; /* Center horizontally with top margin */
    text-align: center;
    width: fit-content;
    max-width: calc(100vw - 40px); /* Responsive width */
    /* Match the tasks container styling */
    background: var(--bg-secondary, #2d3748); /* Same as tasks container */
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 16px 24px; /* Slightly more padding for better appearance */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow like other containers */
  }
  
  /* Mobile Title Text */
  .mobile-title-text {
    font-size: 1.65em;
    font-weight: 900;
    background: linear-gradient(90deg, #00d2d3 0%, #1a8ae6 55%, #1e5ee7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  }
  
  .mobile-title-text span {
    font-weight: bold;
  }
  
  .mobile-title .highlight {
    /* Inherits the gradient from parent */
  }
  
  /* Dynamic Island at Bottom - Keep glassmorphism */
  .dynamic-island {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 25, 40, 0.85);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 16px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: auto;
    max-width: calc(100vw - 40px);
  }
  
  .island-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  
  .island-brand {
    display: none; /* Hide brand in island since it's at top */
  }
  
  .island-nav {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }
  
  .island-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 16px;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  
  .island-nav a:hover,
  .island-nav a.active {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
  }
  
  /* Adjust content spacing for mobile title and bottom island */
  .tasks-container {
    margin-top: 80px;
    padding-top: 20px;
    padding-bottom: 100px;
  }
  
  /* Hide existing mobile dock */
  .mobile-dock {
    display: none !important;
  }
  
  /* Ensure body has proper padding */
  body {
    padding-bottom: clamp(100px, 10vh, 120px);
  }
}
