/*
Theme Name: MQ Theme
Theme URI: https://7mindsets.com/mq-theme
Author: Your Name
Author URI: https://7mindsets.com
Description: A custom WordPress theme for the MQ platform.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mq-theme
*/

/* -------------------------------------------
  MQ BRAND DESIGN SYSTEM
------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* MQ BRAND COLORS (Derived from 7 Mindsets) */
    --primary-dark-blue: #003050;
    --primary-green: #4d9965;
    --primary-blue: #339cff;
    --secondary-beige: #beac98;
    --secondary-purple: #745fa0;
    --secondary-pink: #cc3366;
    
    /* NEUTRAL SYSTEM */
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    
    /* DESIGN TOKENS */
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Login Specific Variables (using existing color palette) */
    --login-bg-color: var(--bg-light);
    --login-text-color-main: var(--gray-800);
    --login-text-color-muted: var(--gray-500);
    --login-border-color: var(--gray-200);
    --login-shadow-card: var(--shadow-medium);
    --login-shadow-btn: 0 4px 10px rgba(0,48,80,0.2);
    --login-radius-card: var(--radius-xl);
    --login-radius-btn: var(--radius-md);
}

a {
  color: -webkit-link;         /* Usually blue */
  cursor: pointer;
  text-decoration: none;
}

a:visited {
  color: var(--primary-dark-blue);              /* Purple by default */
}

a:hover {
  text-decoration: none;
}

a:active {
  color: #0096f6;                  /* May vary slightly by browser */
}

.loaderOuterDiv {
  width: 99vw;
  background-color: rgba(0, 0, 0, 0.5);
  height: 100vh;
  position: fixed;
  z-index: 1;
  display: none;
  top: 0;
}

.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #003050; /* Blue */
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
  margin: 18% auto 0;
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: #f8f9fa !important;
    color: var(--primary-dark-blue) !important;
    line-height: 1.6 !important;
}
button {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
    border: none;
    outline: none;
}
/* TOP NAVIGATION - MQ STYLE */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-dark-blue);
    color: var(--white);
    padding: 15px 30px;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--white);
}

.logo-icon {
    width: 100px;
    height: 32px;
    background-color: var(--primary-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--white);
    font-weight: 700;
}

.logo-text {
    color: var(--white);
}

.logo-accent {
    color: var(--primary-blue);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
    display: flex;
}

.notifications:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.notifications svg{
    font-size: 20px;
}
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-pink);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-greeting {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 15px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

/* MAIN CONTAINER */
.container {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background-color: var(--white);
    padding: 18px 0px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 130px;
    height: calc(100vh - 130px);
    /*overflow-y: auto;*/
    min-width: 260px;
    margin-right: 50px;
}

.logged-in.admin-bar .sidebar {
    top: 162px;
    height: calc(100vh - 162px);
}

.sidebar-header {
    padding: 24px;
    /*border-bottom: 1px solid var(--gray-200);*/
    margin-bottom: 10px;
}

.sidebar-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 9px;
    font-weight: 600;
}

.nav-section {
    margin-bottom: 0px;
    padding: 0px 16px 12px 16px;
}

.nav-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding: 0px 16px;
    margin-bottom:12px;
    font-weight: 600;
}

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

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    width: 100%;
}

.nav-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-dark-blue);
}

.nav-item.active {
    background-color: var(--primary-dark-blue);
    color: #fff;
    font-weight: 600;
    background-color: #003050;
}

.nav-icon {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item.active .nav-icon {
    fill: var(--white);
}
.sidebar .nav-item svg {
    font-size: 18px;
    margin-right: 10px;
    min-width: 20px;
}
.sidebar .nav-item svg.big-size-svg {
    font-size: 23px;
}

.sidebar .nav-item svg.big-size-group-leader {
    font-size: 20px;
}
/* MAIN CONTENT */
.content {
    flex: 1;
    padding: 30px 0px;
    background-color: var(--bg-light);
    overflow-y: auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* WELCOME SECTION - DECREASED SIZE & MODERNIZED */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-dark-blue), var(--secondary-purple));
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 140px; /* Further adjusted min-height */
    display: flex;
    flex-direction: row;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Stronger shadow for depth */
    transition: all 0.3s ease;
}
.welcome-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}


.welcome-section::before {
    content: '';
    position: absolute;
    top: -30%; /* Adjusted for smaller size */
    right: -5%; /* Adjusted for smaller size */
    width: 200px; /* Further smaller */
    height: 200px; /* Further smaller */
    background: rgba(255, 255, 255, 0.15); /* Slightly more visible overlay */
    border-radius: 50%;
    filter: blur(5px); /* Soften the blur effect */
}

.welcome-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 333px);
}

.welcome-greeting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.welcome-emoji {
    font-size: 1.8rem; /* Further smaller */
}

.welcome-emoji svg {
    color: #f7b318;
}

.streak-icon svg {
    color: #2c426f;
    font-size: 40px;
}

.welcome-title {
    font-size: 1.6rem; /* Further smaller */
    font-weight: 700;
    margin: 0;
}

.welcome-subtitle {
    font-size: 0.9rem; /* Further smaller */
    opacity: 0.9;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.streak-info {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Further decreased minmax */
    gap: 1rem; /* Reduced gap */
    margin-top: 0.75rem; /* Reduced margin */
    flex-wrap: wrap;
}

.streak-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly less opaque */
    backdrop-filter: blur(15px); /* Reduced blur for subtle effect */
    border-radius: var(--radius-xl);
    padding: 0.8rem; /* Further reduced padding */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Lighter border */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 48%;
}

.streak-item:hover {
    transform: translateY(-3px); /* Less dramatic lift */
    background: rgba(255, 255, 255, 0.15);
}

.streak-icon {
    font-size: 1.6rem; /* Further smaller */
    display: block;
    animation: pulse 2s infinite;
    position: absolute;
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}
/* Keep existing animations for streak icons */

.streak-number {
    font-size: 1.5rem; /* Further smaller */
    font-weight: 800;
    margin-bottom: 0.1rem; /* Reduced margin */
    color: var(--white);
}

.streak-label {
    font-size: 0.8rem; /* Further smaller */
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 0.1rem;
}

.streak-subtitle {
    font-size: 0.65rem; /* Further smaller */
    opacity: 0.7;
    font-style: italic;
}
.read-more-btn {
    background: none;
    border: none;
    color: var(--white);
    text-decoration: underline;
    font-size: 0.65rem; /* Small font size */
    cursor: pointer;
    padding: 0;
    margin-top: 0.2rem;
}

.quote-image-div {
    width: 328px;
    margin-left: 30px;
    cursor: pointer;
}

img.quote-image {
    width: 320px;
    max-height: 320px;
    object-fit: contain;
    min-height: 320px;
    border-radius: 15px;
}

/* DASHBOARD CARDS */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for daily mindset hub too */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-large);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.mood-card .card-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary-pink), #e91e63);
}

.gratitude-card .card-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-green), #66bb6a);
}

.momentum-card .card-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-blue));
}

.card-icon {
    font-size: 1.5rem;
    color: var(--white);
}

.card-badge {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gratitude-badge {
    background: linear-gradient(135deg, var(--primary-green), #66bb6a);
    color: var(--white);
    font-weight: 700;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 40px; /* Adjusted min-height for consistent card size */
}

.card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 0.15rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
}

.metric-label {
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 100px;
}

.metric-value {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.8rem;
}
.metric-values {
    font-size: 0.8rem;
}

/* PROGRESS RING */
/* These styles are general for the smaller circles in cards/modals */
.progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
}

.progress-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--secondary-purple); /* Default color, overridden by specific IDs */
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0px;
    max-width: 920px;
    width: 920px;
    /*max-height: 85vh;*/
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    border-radius: 14px;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue), var(--secondary-purple));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}*/

.close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all 0.3s ease;
    color: #4E5D78;
    font-weight: 400;
    font-size: 30px;
}

.close-btn:hover {
    color: #2c374b;
    transform: scale(1.05);
    opacity: .5;
}

/* MOOD SELECTION */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.mood-option {
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.mood-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mood-option:hover::before {
    opacity: 0.05;
}

.mood-option:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.mood-option.selected {
    border-color: var(--primary-blue);
    background: rgba(51, 156, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.mood-option.selected::before {
    opacity: 0.1;
}

.mood-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    position: relative;
    z-index: 2;
}

.mood-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    position: relative;
    z-index: 2;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 1rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--gray-800);
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(51, 156, 255, 0.1);
    transform: translateY(-1px);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(51, 156, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 156, 255, 0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-green), #16a085);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(77, 153, 101, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 153, 101, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-pink), #ad1457);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(204, 51, 102, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 51, 102, 0.4);
}

.modal-actions {
    display: flex;
    gap: 1.25rem;
    padding: 15px 30px;
}

.modal-actions .btn {
    flex: 1;
}

/* GOALS LIST */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.goal-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.goal-item:hover::before {
    opacity: 0.03;
}

.goal-item.completed {
    background: rgba(77, 153, 101, 0.08);
    border-color: var(--primary-green);
    transform: scale(1.01);
}

.goal-item.completed::before {
    opacity: 0.05;
}

.goal-checkbox {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-green);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.goal-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.goal-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.goal-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.goal-status {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

/* GRATITUDE HISTORY */
.gratitude-history {
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: var(--gray-50);
}

.gratitude-entry {
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-green);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.gratitude-entry:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-medium);
}

.gratitude-date {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gratitude-text {
    color: var(--gray-800);
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
}

/* PROGRESS SECTION (for Momentum Builder Modal) */
.progress-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-100);
}

.large-progress-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.large-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* NEW: Daily Mindset Hub Section */
.daily-mindset-hub {
    margin-top: 2rem;
}

.daily-mindset-hub .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.daily-mindset-hub .dashboard-card {
    padding: 1.25rem;
}

.daily-mindset-hub .card-title {
    font-size: 1.2rem;
}

.daily-mindset-hub .card-subtitle {
    font-size: 0.85rem;
    min-height: 50px;
}

/* Combined Progress Ring Styling */
.daily-mindset-hub-progress-combined {
    position: relative;
    width: 250px; /* Or adjust as needed for visual balance */
    height: 250px;
    min-width: 250px; 
    min-height: 250px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    justify-content: flex-start;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
    padding: 1rem;
    overflow: hidden; /* Ensure rings don't overflow */
}
.daily-mindset-hub-progress-combined svg.progress-ring-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Apply to the entire SVG for all circles */
}

/* Individual ring styling within the combined SVG */
#moodCheckProgressCircleCombined,
#gratitudeProgressCircleCombined,
#momentumProgressCircleCombined {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
    transform-origin: center; /* Ensure rotation is around center */
}

#moodCheckProgressCircleCombined { stroke: var(--secondary-pink); stroke-width: 2.5; } /* Outermost */
#gratitudeProgressCircleCombined { stroke: var(--primary-green); stroke-width: 2.5; } /* Middle */
#momentumProgressCircleCombined { stroke: var(--primary-blue); stroke-width: 2.5; } /* Innermost */

.daily-mindset-hub-progress-combined .progress-text-center {
    position: relative;
    z-index: 1; /* Ensure text is above circles */
    text-align: center;
    padding-top: 44px;
}
.daily-mindset-hub-progress-combined .progress-percentage {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.daily-mindset-hub-progress-combined .progress-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
}
.progress-legend {
    position: absolute;
    bottom:70px; /* Adjusted position */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.8rem;
    font-size: 0.7rem;
    color: var(--gray-700);
    width: 74%;
    z-index: 1; /* Ensure legend is above SVG elements if it overlaps */
}
.legend-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}
.legend-item .color-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.4rem;
}
.legend-item.mood .color-box { background-color: var(--secondary-pink); }
.legend-item.gratitude .color-box { background-color: var(--primary-green); }
.legend-item.momentum .color-box { background-color: var(--primary-blue); }


/* NEW: Courses Page */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for courses */
    gap: 2rem;
    margin-bottom: 2rem; /* Add margin for course details section */
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.course-card-image {
    width: 100%;
    height: 198px; /* Slightly shorter image */
    object-fit: cover;
    background-color: var(--gray-200); /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-500);
}

.course-card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to expand and push button to bottom */
    display: flex;
    flex-direction: column;
}

.course-card-title {
    font-size: 1.4rem; /* Slightly smaller */
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 0.5rem; /* Reduced margin */
}

.course-card-description {
    font-size: 0.9rem; /* Slightly smaller */
    color: var(--gray-700);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes button down */
}

.course-card-progress {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.course-card-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.course-card-button {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-green), #16a085);
    color: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.course-card-button:hover {
    background: linear-gradient(135deg, #16a085, var(--primary-green));
    transform: translateY(-2px);
}

.course-card-button:visited {
    background: linear-gradient(135deg, #16a085, var(--primary-green));
    transform: translateY(-2px);
    color: var(--white);
}

.course-details-section {
    display: none; /* Hidden by default */
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    margin-top: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}
.course-details-section.active {
    display: block;
}

.course-details-breadcrumbs {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}
.course-details-breadcrumbs a {
    color: var(--primary-blue);
    text-decoration: none;
}
.course-details-breadcrumbs a:hover {
    text-decoration: underline;
}
.course-details-breadcrumbs span {
    margin: 0 0.5rem;
}

.course-details-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}
.course-details-content {
    line-height: 1.8;
    color: var(--gray-700);
}
.course-details-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark-blue);
}
.course-details-content ul {
    list-style: disc inside;
    padding-left: 1rem;
}
.course-details-content li {
    margin-bottom: 0.5rem;
}


/* NEW: AI Coach Page */
.ai-coach-intro {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(51, 156, 255, 0.3);
}
.ai-coach-intro h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.ai-coach-intro ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}
.ai-coach-intro ul li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.ai-coach-intro ul li svg {
    margin-right: 0.75rem;
    color: var(--primary-green);
    flex-shrink: 0;
}
.ai-coach-intro p {
    font-size: 1rem;
    opacity: 0.9;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px; /* Fixed height for chat area */
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-light);
}

.chat-message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-lg);
    line-height: 1.4;
}

.chat-message.user {
    align-self: flex-end;
    background-color: var(--primary-blue);
    color: var(--white);
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message.ai {
    align-self: flex-start;
    background-color: var(--gray-200);
    color: var(--gray-800);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--white);
    gap: 0.75rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(51, 156, 255, 0.1);
}

.chat-input-area button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.chat-input-area button:hover {
    background: #2563eb;
}

/* NEW: MQ Assessment Page */
.assessment-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-100);
}
.assessment-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 1.5rem;
}
.assessment-intro {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.assessment-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.assessment-option-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative; /* For the icon positioning */
    overflow: hidden; /* For background effect */
}
.assessment-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.assessment-option-card:hover::before {
    opacity: 0.05;
}
.assessment-option-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}
.assessment-option-card .card-content {
    position: relative;
    z-index: 1; /* Ensure content is above pseudo-element */
}
.assessment-option-card .card-icon-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    color: var(--gray-300);
    opacity: 0.5;
    z-index: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.assessment-option-card:hover .card-icon-overlay {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.7;
}

.assessment-option-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}
.assessment-option-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem; /* Reduced margin */
}
.assessment-button {
    margin-top: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.assessment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(51, 156, 255, 0.4);
}
.assessment-results-link {
    display: block;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--primary-green);
    color: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    box-shadow: var(--shadow-soft);
}
.assessment-results-link:hover {
    background: #16a085;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}


/* Likert Scale Modal */
.likert-question {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--gray-200);
}
.likert-question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.likert-question p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}
.likert-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
    flex: 1; /* Distribute space evenly */
    min-width: 60px; /* Ensure options don't get too small */
}
.likert-option:hover {
    background-color: var(--gray-200);
}
.likert-option input[type="radio"] {
    display: none; /* Hide native radio button */
}
.likert-option span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
}
.likert-option .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-bottom: 0.25rem;
    transition: border-color 0.2s ease;
}
.likert-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}
.likert-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.likert-option.selected .radio-custom {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}

/* NEW: Interactive Life Plan */
.life-plan-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-100);
}
.life-plan-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 1.5rem;
}
.life-plan-intro {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.life-plan-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto; /* Allow scrolling for many tabs */
}
.life-plan-tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevent wrapping */
}
.life-plan-tab-item:hover {
    color: var(--primary-blue);
    background-color: var(--gray-50);
}
.life-plan-tab-item.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.life-plan-questions-container {
    /* This will hold the tab content */
}

.life-plan-tab-content {
    display: none; /* Hidden by default */
    animation: fadeIn 0.3s ease-in-out;
}
.life-plan-tab-content.active {
    display: block;
}

.life-plan-question-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 1rem; /* Spacing between questions */
}
.life-plan-question-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}
.life-plan-question-card textarea,
.life-plan-question-card input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px; /* For textarea */
    box-sizing: border-box; /* Include padding in width/height */
}
.life-plan-question-card input[type="text"] {
    min-height: auto; /* Override for input */
}
.life-plan-question-card .options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.life-plan-question-card .options-grid label {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}
.life-plan-question-card .options-grid label:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.life-plan-question-card .options-grid input[type="radio"]:checked + span,
.life-plan-question-card .options-grid input[type="checkbox"]:checked + span {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}
.life-plan-question-card .options-grid input[type="radio"],
.life-plan-question-card .options-grid input[type="checkbox"] {
    display: none;
}
.life-plan-question-card .options-grid label span {
    display: block; /* Ensure text is clickable */
}


.life-plan-actions {
    margin-top: 2rem;
    text-align: right;
}


/* NOTIFICATIONS */
.notification {
    position: fixed;
    top: 80px;
    right: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-large);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    min-width: 280px;
    color: var(--gray-800);
}

.notification.success {
    border-left: 4px solid var(--primary-green);
}

.notification.error {
    border-left: 4px solid var(--secondary-pink);
}

.streak-icon img.emoji {
    width: 40px !important;
    height: 40px !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 1400px) {
    .streak-icon {
        width: 60px;
        height: 60px;
    }
    .streak-icon svg{
        width: 36px;
        height: 36px;
    }
    .streak-icon img.emoji {
        width: 36px !important;
        height: 36px !important;
    }

}
@media screen and (max-width: 1366px) {
    .streak-icon {
        width: 50px;
        height: 50px;
    }
    .streak-icon svg{
        width: 32px;
        height: 32px;
    }
    .streak-icon img.emoji {
        width: 32px !important;
        height: 32px !important;
    }
}
@media screen and (max-width: 1300px) {
    .streak-number{
        text-align: left;
        margin-left: 6vw;
    }
    .streak-subtitle{
        text-align: left;
        margin-left: 6vw;
    }
    .streak-label {
        text-align: left;
        margin-left: 6vw;
    }

}
@media screen and (max-width: 1280px) {
   .sidebar.collapsed {
        width: 60px;
        min-width: 60px;
        /*overflow: hidden;*/
    }

    .sidebar.collapsed .sidebar-title,
    .sidebar.collapsed .nav-item span {
        display: none;
    }
    .sidebar{
        top: 0;
     }
    
}
@media screen and (max-width: 1080px) {
   .streak-item{
        width: 99%;
   }
    
}
@media (max-width: 992px) {
    /* Login Page Layout */
    .split-layout {
        flex-direction: column-reverse;
        height: auto; /* Allow height to adjust */
        min-height: 100vh; /* Ensure it takes full viewport height */
    }

    .login-container, .hero-container {
        width: 100%;
        height: auto;
        padding: 2rem 1rem;
    }
    
    .hero-container {
        padding: 3rem 1rem; /* Adjust padding for smaller screens */
        background-position: center;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .login-container {
        padding: 2rem 1rem;
    }
    .welcome-section{
        flex-direction: column;
    }
    .welcome-content {
        width: 100%;
        margin-bottom: 30px;
    }
    .streak-item {
        width: 48%;
        padding-left: 80px;
    }
    .streak-icon {
        left: 10px;
    }
    .quote-image-div{ 
        margin: 0 auto;
    }
    .streak-number{
       margin-left: 0;
    }
    .streak-subtitle{
       margin-left: 0;
    }
    .streak-label {
       margin-left: 0;
    }
    .dashboard-grid{
        display: flex;
        flex-direction: column;
    }
 
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    /*.sidebar {
        width: 100%;
        height: auto;
        position: static;
    }*/

    .content {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .streak-info {
        justify-content: center;
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Even smaller on mobile */
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    .ai-coach-intro ul li {
        font-size: 0.95rem;
    }
    .ai-coach-intro h2 {
        font-size: 1.5rem;
    }
    .daily-mindset-hub-progress-combined {
        width: 180px; /* Make combined circle slightly smaller on mobile */
        height: 180px;
    }
    .life-plan-tab-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    .likert-options {
        flex-direction: column;
        gap: 0.75rem;
    }
    .likert-option {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
        width: 100%;
        min-width: unset;
    }
    .sidebar{
        margin-right: 0px;
    }
       body.page-id-36289 .main-container{
        padding-right: 0px;
    }
    .streak-item {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta, .hero-cta-secondary {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .welcome-title{
        font-size: 1.4rem;
    }
    .welcome-subtitle{
        font-size: 0.8rem;
    }
    .streak-number {
        font-size: 1.3rem;
    }
}
@media (max-width: 480px) {
     .streak-number {
        font-size: 1rem;
    }
   

}
/* NEW: Login Page Styles */
body.login-page { /* Add this class to body element for login page */
    background-color: var(--login-bg-color);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling on login page */
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif; /* Ensure font is applied */
}

.login-page .split-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.login-page .login-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--white);
    position: relative;
    border-radius: var(--radius-xl); /* Consistent with other cards */
    box-shadow: var(--login-shadow-card); /* Add shadow */
    margin: 20px; /* Add some margin around the container */
    overflow: hidden; /* Ensure content stays within bounds */
}

.login-page .login-form-wrapper { /* New wrapper for form to apply card styling */
    width: 100%;
    max-width: 470px;
    padding: 2.5rem; /* Increased padding */
    border-radius: var(--login-radius-card); /* Consistent radius */
    background: var(--white);
    position: relative;
    z-index: 2; /* Ensure it's above any background effects */
}

.login-page .hero-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    position: relative;
    padding: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark-blue), var(--secondary-purple)); /* Match theme gradient */
    border-radius: var(--radius-xl); /* Consistent with other cards */
    box-shadow: var(--login-shadow-card); /* Add shadow */
    margin: 20px; /* Add some margin around the container */
}

.login-page .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly reduced opacity for better text readability */
    z-index: 0;
}

.login-page .hero-content {
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: rgba(0, 48, 80, 0.6); /* Slightly more transparent overlay */
    border-radius: var(--radius-card);
    padding: 2rem;
    backdrop-filter: blur(8px); /* Increased blur for modern feel */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow */
}

.login-page .hero-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(77,153,101,0.1) 2px, transparent 2px),
        radial-gradient(circle, rgba(51,156,255,0.1) 2px, transparent 2px);
    background-size: 30px 30px, 40px 40px;
    z-index: 1;
    opacity: 0.3;
}

/* Form Elements - apply existing theme styles where possible */
.login-page .login-logo-container { /* Renamed for clarity */
    margin-bottom: 2rem;
    text-align: center;
}

.login-page .login-logo-svg { /* Specific class for the SVG itself */
    max-width: 240px;
    height: auto;
}

.login-page .form-title {
    font-size: 1.75rem; /* Slightly larger */
    font-weight: 700; /* Bolder */
    color: var(--primary-dark-blue); /* Use theme variable */
    margin-bottom: 2rem; /* Increased margin */
    text-align: center;
}

.login-page .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-page .form-control {
    width: 100%;
    padding: 1rem 1.25rem; /* Increased padding */
    border: 2px solid var(--gray-200); /* Use theme variable */
    border-radius: var(--radius-lg); /* Larger radius */
    font-size: 1rem;
    transition: all 0.2s;
    background-color: var(--gray-50); /* Light background for inputs */
    color: var(--gray-800);
}

.login-page .form-control:focus {
    outline: none;
    border-color: var(--primary-blue); /* Use theme variable */
    box-shadow: 0 0 0 4px rgba(51,156,255,0.15); /* Stronger focus shadow */
    background-color: var(--white); /* White background on focus */
}

.login-page .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500); /* Use theme variable */
    padding: 0.5rem; /* Add padding for easier clicking */
}
.login-page .password-toggle svg {
    width: 20px;
    height: 20px;
}


.login-page .remember-me {
    display: flex;
    align-items: center;
    font-size: 0.95rem; /* Slightly larger */
    color: var(--gray-700); /* Use theme variable */
    margin-bottom: 1.5rem;
    position: relative;
}

.login-page .remember-me input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-green); /* Style checkbox with theme color */
    transform: scale(1.1); /* Slightly larger checkbox */
}

.login-page .btn { /* Apply existing btn styles, override specific ones */
    display: block;
    width: 100%;
    padding: 1rem 1.5rem; /* Increased padding */
    background: linear-gradient(135deg, var(--primary-green), #408455); /* Matching theme button gradient */
    color: white;
    border: none;
    border-radius: var(--radius-lg); /* Larger radius */
    font-size: 1.05rem; /* Slightly larger font */
    font-weight: 600; /* Bolder */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 6px 15px rgba(77,153,101,0.3); /* Stronger shadow */
}

.login-page .btn:hover {
    background: linear-gradient(135deg, #408455, var(--primary-green)); /* Subtle hover gradient change */
    transform: translateY(-3px); /* More pronounced lift */
    box-shadow: 0 10px 20px rgba(77,153,101,0.4); /* Stronger hover shadow */
}

.login-page .forgot-password {
    text-align: center; /* Center the forgot password link */
    margin-top: 1.5rem; /* Increased margin */
}
a.forgot-password-link {
    position: absolute;
    right: 0;
}
.login-page .forgot-password a {
    color: var(--primary-blue); /* Use theme variable */
    text-decoration: none;
    font-size: 0.95rem; /* Slightly larger */
    transition: color 0.2s, text-decoration 0.2s;
}

.login-page .forgot-password a:hover {
    color: var(--primary-dark-blue); /* Use theme variable */
    text-decoration: underline;
}

/* Hero Content - use existing styles as much as possible */
.login-page .hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    line-height: 1.2;
}

.login-page .hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1.8rem;
    line-height: 1.4;
    opacity: 0.9;
}

.login-page .hero-actions {
    display: flex;
    gap: 1rem; /* Gap between buttons */
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.login-page .hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content in button */
    background: linear-gradient(135deg, var(--primary-green), #408455); /* Matching theme green button */
    color: white;
    padding: 0.9rem 1.8rem; /* Larger padding */
    border-radius: var(--radius-lg); /* Larger radius */
    text-decoration: none;
    font-weight: 600; /* Bolder */
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(77,153,101,0.3);
}

.login-page .hero-cta:hover {
    background: linear-gradient(135deg, #408455, var(--primary-green));
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(77,153,101,0.4);
}

.login-page .hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content in button */
    background: transparent;
    border: 2px solid var(--white); /* Thicker border */
    color: var(--white);
    padding: 0.9rem 1.8rem; /* Larger padding */
    border-radius: var(--radius-lg); /* Larger radius */
    text-decoration: none;
    font-weight: 600; /* Bolder */
    transition: all 0.3s;
}

.login-page .hero-cta-secondary:hover {
    background: rgba(255,255,255,0.15); /* More visible hover */
    transform: translateY(-3px);
}

.login-page .social-icons {
    margin-top: 3rem;
    display: flex;
    gap: 1.25rem; /* Increased gap */
    justify-content: center;
}

.login-page .social-icon {
    width: 44px; /* Larger icons */
    height: 44px; /* Larger icons */
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15); /* Slightly more visible background */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.login-page .social-icon:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-3px) scale(1.05); /* More pronounced hover */
}

.login-page .social-icon svg {
    width: 22px; /* Larger SVG within icon */
    height: 22px; /* Larger SVG within icon */
    fill: white;
}

.login-page .footer {
    position: absolute;
    bottom: 1.5rem; /* Adjusted position */
    text-align: center;
    font-size: 0.85rem; /* Slightly larger */
    color: rgba(255,255,255,0.7);
    width: auto; /* Let content dictate width */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    white-space: nowrap; /* Prevent breaking */
}
.logo-icon-new {
    display: flex;
    flex-direction: row;
    align-items: self-end;
    color: var(--primary-dark-blue);
    font-size: 24px;
    width: 290px;
    margin: 0 auto;
    justify-content: center;
}
.logo-icon-new span {
    position: absolute;
    right: -82px;
    bottom: 16px;
    font-size: 16px;
    color: var(--primary-dark-blue);
}

.logo-icon-new img {
    max-width: 170px;
}
img.logo-image-inner {
    max-width: 150px;
}
.logo-icon-new h1 {
    margin-bottom: 0;
    margin-right: 12px;
    color: var(--white);
    position: relative;
}
.logo-icon-new.inner-logo{
    display: flex;
    flex-direction: column;
    width: 150px;
    position: relative;
    padding-bottom: 15px;
}
.logo-icon-new.inner-logo span {
    font-size: 10px;
    color: #ffffff;
    position: absolute;
    right: inherit;
    left: 18px;
    bottom: -4px;
}
.logo-icon-new.inner-logo h1 {
    font-size: 26px;
    position: relative;
}
.login-page .forgot-password p {
    margin-top: 1rem;
    margin-bottom: 0px;
}
a.forgot-password-link {
    position: absolute;
    right: 0;
    color: var(--primary-blue);
}
a.forgot-password-link:hover, a.forgot-password-link:visited {
   color: var(--primary-dark-blue);
}
/* Responsive Styles for Login Page */
@media (max-width: 1200px) {
    body.login-page {
        overflow-y: scroll; 
        height: inherit;
    }
    .login-page .split-layout {
        flex-direction: column;
        height: auto; 
        padding: 30px;
    }
    .login-page .login-container{
        overflow: inherit;
    }
    .login-page .login-container, 
    .login-page .hero-container {
        width: 100%;
        margin: 0; 
        border-radius: var(--radius-xl);
    }
    
    .login-page .hero-container {
        padding: 2rem 1rem;
        margin: 30px 0 0;
        height: auto;
    }
    
    .login-page .hero-title {
        font-size: 2rem;
    }
    
    .login-page .hero-subtitle {
        font-size: 1rem;
    }
    
    .login-page .login-form-wrapper {
        padding: 2rem;
    }

    .login-page .footer {
        position: static; /* Remove absolute positioning on smaller screens */
        transform: none;
        margin-top: 1.5rem;
        padding-bottom: 1.5rem;
        
    }
    .top-nav{
        position: relative;
        top: 0;
    }
    .logged-in.admin-bar .top-nav {
        top: 0px !important;
    }
}
@media (max-width: 992px) {

    .login-page .login-container, 
    .login-page .hero-container {
        width: auto; /* Allow content to dictate width */
        border-radius: var(--radius-xl);
    }
    
    .login-page .hero-container {
        padding: 2.5rem 1rem;
    }
    
    .login-page .hero-title {
        font-size: 1.8rem;
    }
    
    .login-page .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .login-page .login-form-wrapper {
        padding: 2rem;
    }

    .login-page .footer {
        position: static; /* Remove absolute positioning on mobile */
        transform: none;
        margin-top: 1.5rem;
        padding-bottom: 1.5rem;
        
    }
    
}
@media (max-width: 768px) {
    .login-page .split-layout{ 
        padding: 15px;
    }
        .login-page .login-form-wrapper {
        padding: 0;
    }

}
@media (max-width: 576px) {
    .login-page .login-logo-container{
        margin-bottom: 1rem;
    }
    .logo-icon-new{
        width: 214px;
    }
    .logo-icon-new img {
        max-width: 130px;
    }
    .logo-icon-new span{
        bottom: 9px;
    }
    .login-page .hero-title {
        font-size: 1.5rem;
    }
    
    .login-page .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .login-page .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .login-page .hero-cta, 
    .login-page .hero-cta-secondary {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .login-page .form-title {
        font-size: 1.4rem;
    }
   
}

@media (max-width: 480px) {
    .login-page .remember-me{
        margin-bottom: 3rem;
    }
    a.forgot-password-link {
        left: 0;
        top: 30px;
    }
}

/* ANIMATIONS */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes celebrationPop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

.avatar img {
    width: 50px;
    min-width: 40px;
    object-fit: cover;
    border-radius: 45px;
}


.custom-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    overflow-x: auto;
    margin-bottom: 20px;
}
.custom-tabs button {
    background: none;
    border: none;
    padding: 12px 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}
.custom-tabs button.active {
    border-bottom: 3px solid #007bff;
    color: #007bff;
}
.custom-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.custom-tab-content.active {
    display: block;
}
.question-card {
    background: #f9fafb;
    border: 1px solid #e3e6e8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}
.question-card h4 {
    margin-top: 0;
    font-size: 1rem;
    color: #111;
}
.edit-toggle {
    margin-top: 10px;
    font-size: 12px;
    background: #003050;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.saved-answer {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    color: #333;
    min-height: 40px;
}
.notice-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    margin: 20px 0;
 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
 
    text-align: center;
}