body {
    margin: 0;
    padding: 0 0 115px 0;
    background-color: #FFFABF;
    font: normal 500 19px/1.35 "itc-american-typewriter", serif;
    color: #333;
}

p {
    margin-top:0;
}

.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
}

.header-container h1,
.header-container h2 {
    font: normal 700 1.85em/1.15 "itc-american-typewriter", serif;
    display: inline-block; /* Keeps the underline only as wide as the text */
    border-bottom: 3px solid #EDE9B6;
}
.header-container h2 {
    margin-top: 0;
}
.header-container {
    display: block;
    text-align: center;
}
h1 {
    font-size: 2.25rem;
    margin: 1rem 0;
}
h2 {
    font: normal 700 1.5em/1.15 "itc-american-typewriter", serif;
    margin-top: 1rem;
    text-align: center;
}

a {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover, a:focus {
    text-decoration: underline;
}

sup {
    font-size: 65%;
}
form {
    max-width: 440px;
    margin: 0 auto;
}
label {
    font: normal 700 1em / 1.15 "itc-american-typewriter", serif;
    margin: 0 0 0.5em 0;
    text-align: center;
    display: inline-block;
    width: 100%;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: calc(100% - 40px);
    padding: 12px 20px;
    border: none;
    border-radius: 15px;
    font: normal 500 18px/1.15 "itc-american-typewriter", serif;
    color: #333;
    text-align: center;
}
textarea {
    text-align: left;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    background-color: #F3E9FA;
    outline: 5px solid #8220D6;
    font-weight: 700;
    color: #8220D6;
}
textarea::placeholder,
textarea[readonly] {
    font-family: "itc-american-typewriter", serif;
    color: #666;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 440px;
    margin: 0 auto;
}
.password-container input {
    width: 100%;
    padding-right: 40px;
}
.password-container .toggle-password,
.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    color: #999;
    font-size: 1em;
}

.password-container input[type="password"] {
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
    text-align: center;
}
.form-hint {
    font-size: 14px;
    margin-top: 1rem;
}

.error {
    color: red;
    font-size: 14px;
}

.input-error {
    border: 5px solid #e74c3c !important;
    background-color: #fff5f5;
}
.caption {
    font-size: 0.7em;
    font-style: italic;
}


/* ---------------------------- */
/* ---------- Buttons --------- */
/* ---------------------------- */

.bu-primary,
.bu-secondary{
    background-color: #8220D6;
    border: none;
    border-radius: 50px;
    padding: 15px 45px;
    color: #fff;
    font: normal 700 1em/1.15 "itc-american-typewriter", serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, padding 0.3s ease, transform 0.2s ease;
}
.bu-secondary {
    background-color: #333;
    font-size: 1em;
    padding: 15px 25px;
    font-weight: 500;
}

.bu-primary::after,
.bu-secondary::after {
    content: "\f061"; /* Unicode for Font Awesome solid arrow-right */
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900; /* required for solid style */
    position: absolute;
    opacity: 0;
    right: 45px;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.bu-secondary::after {
    right: 25px;
}

.bu-primary:hover,
.bu-secondary:hover {
    background-color: #333;
    padding-right: 80px;
    text-decoration: none;
    transform: scale(1.02);
}
.bu-secondary:hover {
    background-color: #8220D6;
    padding-right: 50px;
}

.bu-primary:hover::after,
.bu-secondary:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.bu-social-login {
    background-color: #fff;
    font: normal 500 18px/1.15 "itc-american-typewriter", serif;
    border: none;
    border-radius: 15px;
    padding: 20px;
    display: inline-flex;
    align-items: center;
    min-width: 350px;
    cursor: pointer;
}
.bu-social-login:hover {
    background-color: #F3E9FA;
}
.social-login-icon {
    margin-right: 15px;
}
.button-container {
    margin: 0 auto 10px auto;
}
.button-container-multiple {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}
#resetPasswordBtn {
    margin-left: auto;
}

#saveprofilebtn,
#resetPasswordBtn {
    min-width: 150px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* Space for the eye icon */
    box-sizing: border-box;
}

.toggle-visibility {
    position: absolute;
    right: 12px; /* ✅ closer to the edge */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #555;
    user-select: none;
}

.toggle-visibility i {
    font-size: 18px;
    color: #555;
}

.img-header {
    margin: 30px auto 0 auto;
}

/* --- Sign In / Sign Up Form --- */

.hidden {
    display: none;
}

/* --- ReCAPTCHA --- */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ------------------------------------- */
/* ---------- Spinner Styling ---------- */
/* ------------------------------------- */

.spinner-overlay {
    display: none; /* Make spinner visible initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8); /* Light overlay */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}



.loading-spinner {
    width: 25px;
    height: 25px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ------------------------------------- */
/* ---------- Core Box Styling --------- */
/* ------------------------------------- */

.highlight-container {
    background-color: #333;
    color: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.highlight-container a {
    color: #fff;
}
.highlight-container a:hover {
    color: #bbb;
}

.budget-list-container {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: left;
}

.previous-budgets-header {
    background-color: #F0F0F0;
    padding: 20px;
}
.budget-dates-grid {
    padding: 20px;
    list-style: none;
    margin: 0;
}
.budget-dates-grid-bottom {
    background-color: #F0F0F0;
    height: 15px;
}

.previous-budgets-header strong {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.budget-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 10px;
}
.budget-row:last-child {
    margin: 0;
}

.budget-success-icon .fa-circle-check {
    color: #16D995;
    font-size: 1.5rem;
}

.budget-success-icon .fa-circle-xmark {
    color: #D93B16;
    font-size: 1.5rem;
}



/* ------------------------------------ */
/* ---------- Toast Messaging --------- */
/* ------------------------------------ */

#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none; /* Prevent it from blocking clicks */
    width: 100%;
    max-width: 300px;
}

.toast {
    background-color: #16D995;
    color: white;
    padding: 17px 23px;
    margin-top: 10px;
    border-radius: 15px;
    opacity: 0.95;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}




/* ---------------------------------- */
/* ----------- Navigation ----------- */
/* ---------------------------------- */

.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: #EDE9B6;
    display: flex;
    justify-content: space-around; /* Changed from center with gap */
    align-items: center;
    color: #333;
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Update menu-item to ensure proper centering */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Added to ensure text is centered */
    justify-content: center; /* Added to ensure vertical centering */
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: color 0.3s ease;
    position: relative;
    overflow: visible;
}
.menu-item.active,
.menu-item:hover {
    color: #333;
    text-decoration: none;
}
.menu-item i {
    font-size: 30px;
    margin-bottom: 5px;
}
.nav-profile-icon {
    background-color: #333;
    border-radius: 50%;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.menu-item .tooltip {
    overflow-wrap: break-word;
    white-space: normal;
    background: rgba(51, 51, 51, 0.9); /* semi-transparent */
    backdrop-filter: blur(4px); /* optional: gives a glass effect */
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 14px 20px;
    position: absolute;
    bottom: 75px;
    z-index: 10;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 140px;
    max-width: 250px;
}


.menu-item .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(51, 51, 51, 0.9) transparent transparent transparent;

}

.menu-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}
#nav-modal-profile-container {
    display:block;
    margin-bottom: 1rem;
}
#nav-modal-legal-container a {
    display: block;
    line-height: 1.5em;
}
#view-report {
    margin: 0 auto;
}
.legal-container,
.legal-container h2 {
    text-align: left;
}

.profile-mini-section {
    background:#333;
    color:#fff;
    padding:15px;
    display:flex;
    gap:15px;
    border-radius:10px;
    margin-bottom:15px;
}
.profile-mini-section a {
    color:#fff;
}
.profile-info-container {
    display: block; /* don't force column flex */
    width: 100%;
}
.profile-link-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.profile-link-list li {
    margin-bottom: 12px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font: normal 500 1em/1.25 "itc-american-typewriter", serif;
    transition: color 0.2s ease;
}

.profile-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #333;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    font-size: 16px;
}



.user-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* center them horizontally */
    gap: 10px; /* space between name and logout */
    margin-bottom: 10px;
    width: 100%;
}

.user-info-row .user-name {
    font: normal 700 1.2em/1.15 "itc-american-typewriter", serif;
    flex: 1;
    text-align: left;
}


.menu-item.ai-highlight {
    background-color: #333;
    color: #fff;
    border-radius: 25px 25px 0 0;
    padding: 20px;
    margin-top: -25px; /* pushes it higher visually */
    margin-bottom: -20px;
}
.menu-item.ai-highlight i,
.menu-item.ai-highlight span {
    color: #fff;
}


/* ------------------------------------------- */
/* ------ Expense Detail Modal Styling ------- */
/* ------------------------------------------- */

/* Amount Input */
#expense-amount,
#budget-amount {
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't cause overflow */
    padding: 12px 20px 12px 40px;
    border: none;
    border-radius: 15px;
    font: normal 500 2.5rem/1.15 "itc-american-typewriter", serif;
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Optional: Focus State */
#expense-amount:focus,
#budget-amount:focus {
    background-color: #F3E9FA;
    outline: 5px solid #8220D6;
    font-weight: 700;
    color: #8220D6;
}


/* --------------------------------- */
/* ------ Date Input styling ------- */
/* --------------------------------- */

.date-input-wrapper {
    position: relative !important;
    overflow: visible !important;
    cursor: pointer;
    width: 100%;
    max-width: 100%;

    display: block;           /* 👈 kills vertical centering */
}


/* Styled date input */
.date-input-wrapper input {
    /*width: calc(100% - 40px) !important;  subtract the calendar box */
    padding: 15px 20px;
    border: none;
    border-radius: 15px; /* rounded only on the left side */
    font: normal 500 18px/1.15 "itc-american-typewriter", serif;
    background-color: #fff;
    color: #333;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1; /* stay above background */
    cursor: pointer;
}

/* Remove native calendar icon - Safari fallback */
.date-input-wrapper input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}


/* Optional focus style */
.date-input-wrapper input:focus {
    background-color: #F3E9FA;
    outline: 5px solid #8220D6;
    font-weight: 700;
    color: #8220D6;
}

/* Calendar icon */
.calendar-icon {
    all: unset;
    position: absolute;
    top: 0;
    right: 0;
    height: 51px; /* 👈 fixed to match input height */
    width: 50px;
    background: #8220D6;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 3 !important;
    color: #fff;
    pointer-events: none;
}


/* Inject Font Awesome icon */
.calendar-icon::after {
    font-weight: 900;
    color: #fff;
    font-size: 1.2em;
}
.calendar-icon i {
    pointer-events: none; /* Make sure icon doesn't interfere with clicks */
}

/* When the date input has an error, style its calendar icon */
.date-input-wrapper:has(input.input-error) .calendar-icon {
    background: #e74c3c;   /* red background */
    top: 5px;              /* tweak vertical position */
}


.report-date-wrapper {
    position: relative;
    z-index: 0; /* optional, but helps keep stacking predictable */
}



/* ---------------------------- */
/* ------ Profile Styling ----- */
/* ---------------------------- */

#avatar-preview {
    height: 135px;
    width: 135px;
    border-radius: 50% 50% 5px 50%;
    background-color: #333;
    color: #fff;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
}

.profile-icon svg {
    width: 75px !important;
    height: 75px !important;
}
.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1em;
}

#choose-avatar {
    position: absolute;
    bottom: 5px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
}
#choose-avatar:hover {
    color: #bbb;
}

/* Ensure inputs are clickable */
#budget-start-date, #budget-end-date {
    cursor: pointer !important;
    z-index: 5 !important;
    position: relative !important;
}

#shared-modal,
#shared-modal-form {
    overflow: visible !important;
}
#shared-modal-form input[type="text"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 30px;
    visibility: visible !important;
}

input[id*="date"] {
    cursor: pointer !important;
    z-index: 2 !important;
    position: relative !important;
}

.date-input {
    padding-right: 2.5rem;
    cursor: pointer; /* Show pointer cursor on the entire input */
}


/* Remove default calendar icon in some browsers */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="text"].date-input::-webkit-calendar-picker-indicator {
    display: none;
}

/* Additional styles for the unified modal */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item-selected {
    background-color: #f1f1f1;
}

/* --------------------------------- */
/* ------ Landing Page Styling ----- */
/* --------------------------------- */

.character-container {
    margin-top: 0.5em;
}

.intro-header[role="banner"] {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2em;
}

main[role="main"] {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.character-with-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px; /* or whatever maximum width you prefer */
    margin: 0 auto;

}

.img-header img {
    max-width: 100%;
    height: auto;
}

.speech-bubble {
    background-color: white;
    border-radius: 25px;
    padding: 1.25em;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 1em;
    position: relative;
    min-height: 4em;
}

.bubble-caret {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.bubble-content {
    position: relative;
    /*font-size: 1.35rem;*/
}

.bubble-line {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    transition: opacity 0.4s ease;
}

.bubble-line.visible {
    opacity: 1;
    position: relative;
}

.ai-instructions-container {
    display: flex;
    justify-content: space-between; /* pushes text left, image right */
    align-items: center;
    margin: 0 0 1em 0 !important;
}

.ai-dialog-container {

}
.ai-character-container {
    display: block;
    height: auto;
}

.scroll-steps {
    height: 150vh;
    position: relative;
}

.scroll-trigger {
    height: 40vh;
}

.main-content {
    text-align: center;
}

.hr-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.hr-with-text::before,
.hr-with-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #333333;
    margin: 0 10px;
}

#register-success-message {
    margin-bottom: 1rem;
}

/* ---------------------------- */
/* ------ Reports Styling ----- */
/* ---------------------------- */

#reports-amount {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    border-radius: 15px;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.report-date-wrapper {
    position: relative;
    z-index: 1;
}

/* AI Related CSS*/
#voice-assistant-wrapper {
    position: fixed;
    bottom: 120px; /* Adjusted to be 100px more from bottom */
    right: 20px;
    z-index: 1000;
}
#voice-mic-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4285f4;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#voice-mic-button:hover {
    background: #3b78e7;
}
#voice-popup {
    position: fixed;
    width: 300px;
    max-width: calc(100vw - 20px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 1001;
    box-sizing: border-box;
}
#voice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
#voice-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
#voice-input-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.5em;
}
#voice-input {
    width: 100%;
    padding: 1.25em 6em 1.25em 1.25em; /* Adjust right padding for mic icon */
    border-radius: 15px;
    background: #333;
    color: #fff;
    font-size: 1em;
    resize: none;
    box-sizing: border-box;
}
#voice-input::placeholder {
    color: #fff;
}


#mic-inside-textarea {
    position: absolute;
    right: 1em;
    top: 1.25em;
    cursor: pointer;
    background-color: #f5f5f5;
    border-radius: 50%;
    padding: 0.75rem;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
#mic-inside-textarea:active {
    background-color: #e0e0e0;
}

.hidden {
    display: none !important;
}
#voice-suggestions {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    padding-left: 0;
    margin: 0; /* Prevents weird jump when collapsed */
    font-style: italic;
    font-size: 0.9em;
}

#voice-suggestions.show {
    max-height: 300px; /* big enough to fit content */
    opacity: 1;
    margin-top: 10px;
}

#voice-suggestions li {
    margin-bottom: 8px;
    list-style: none;
}



#status-indicator {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}
#ai-provider-container {
    margin-bottom: 10px;
    text-align: center;
}
#ai-provider {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}


/* Add these styles to your existing CSS */
.content-loading {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-loaded {
    visibility: visible;
    opacity: 1;
}
/* ------------------------------------- */
/* ------ Previous Budgets Styling ----- */
/* ------------------------------------- */
.budget-details {
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    color: #333;
}

.budget-detail-item {
    margin-bottom: 5px;
}
/* Wrapper styling for the dropdown */
.select-wrapper {
    position: relative; /* Allows absolute positioning of the caret */
    display: inline-block;
    width: 100%;
}

/* Style the select dropdown */
.select-wrapper select {
    appearance: none; /* Removes the default OS dropdown style */
    -moz-appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px; /* Space for the purple section */
    border: none;
    border-radius: 15px;
    font: normal 500 18px/1.15 "itc-american-typewriter", serif;
    color: #333;
    background-color: #fff; /* Dropdown background */
    text-align: center; /* Align dropdown text */
    cursor: pointer;
}

/* Focus state for select */
.select-wrapper select:focus {
    background-color: #F3E9FA;
    outline: 5px solid #8220D6;
    font-weight: 700;
}

/* Right-hand purple section with caret */
.select-wrapper::after {
    content: '\f0d7'; /* Unicode for Font Awesome "caret-down" */
    font-family: "Font Awesome 6 Free"; /* Font Awesome font family */
    font-weight: 900; /* Solid style */
    position: absolute;
    top: 50%; /* Center vertically */
    right: 0;
    transform: translateY(-50%);
    background-color: #8220D6; /* Purple background color */
    color: #fff; /* White caret color */
    width: 40px; /* Fixed width for the purple section */
    height: 100%;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Make this area unclickable */
}

/* Ensure no native dropdown arrow appears in IE/Edge */
.select-wrapper select::-ms-expand {
    display: none;
}

/* Default state (placeholder selected) */
.select-wrapper select.placeholder {
    color: #666 !important;
}

/* When real option is selected, use normal color */
.select-wrapper select:not(.placeholder) {
    color: #333;
}



/* Mobile-specific styles */
@media (max-width: 767px) {
    #voice-popup {
        width: calc(100vw - 40px);
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        padding: 12px; /* Slightly reduced padding for mobile */
    }

    #voice-suggestions {
        font-size: 0.8rem;
    }

    #voice-suggestions li {
        margin-bottom: 6px;
    }

    #voice-assistant-wrapper {
        bottom: 80px;
        right: 10px;
    }

    #voice-mic-button {
        width: 50px;
        height: 50px;
    }

    .modal-content {
        padding: 1.3rem !important;
    }
}