.settings-content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px; /* Limit overall width for better readability */
    margin: 2rem auto; /* Center the wrapper and add vertical margin */
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures rounded corners are visible */
}

/* --- Settings Sidebar --- */
.settings-sidebar {
    width: 250px; /* Fixed width for sidebar */
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    padding: 2rem 1.5rem;
    background-color: #d1fae5; /* Light green background */
    border-right: 1px solid #d1fae5; /* Light green border */
}

.sidebar-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2f855a; /* Darker green for title */
    margin-bottom: 1.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-item {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    color: #4a5568; /* Grayish text */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-item:hover {
    background-color: #d1fae5; /* Lighter green on hover */
    color: #1a6435; /* Darker green on hover */
}

.sidebar-item.active {
    background-color: #38a169; /* Solid green for active item */
    color: white;
    font-weight: 700;
}

/* --- Settings Main Content --- */
.settings-main-content {
    flex-grow: 1; /* Allows main content to take remaining space */
    padding: 2rem 2.5rem;
    background-color: #ffffff;
}

.settings-section {
    padding-bottom: 2rem; /* Spacing for each section */
}

.page-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2d3748; /* Dark gray for main titles */
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee; /* Subtle separator */
    padding-bottom: 1rem;
}

/* --- Edit Profile Section Specifics --- */
.edit-profile-card {
    background-color: #f7fafc; /* Lighter background for the card */
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Inner shadow */
}

.profile-images-section {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.profile-picture-upload {
    position: relative;
    width: 6rem; /* w-24 from Tailwind */
    height: 6rem; /* h-24 from Tailwind */
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #cbd5e0; /* border-2 border-gray-300 */
    flex-shrink: 0;
}

.profile-picture-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-upload .upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-picture-upload:hover .upload-overlay {
    opacity: 1;
}

.service-banner-upload {
    flex-grow: 1;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #cbd5e0; /* border-2 border-gray-300 */
}

.service-banner-upload img {
    width: 100%;
    height: 8rem; /* h-32 from Tailwind */
    object-fit: cover;
    display: block;
}

.add-banner-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: #38a169; /* Green button */
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-banner-button:hover {
    background-color: #2f855a;
}


.vacation-toggle-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 0.5rem;
    
}

.vacation-text {
    font-weight: 600;
    color: #1a6435; /* Darker green text */
    font-size: 1rem;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #38a169;
}

input:focus + .slider {
  box-shadow: 0 0 1px #38a169;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* --- Input Group Styling --- */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.text-input,
.textarea-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0; /* Gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 1rem;
    color: #2d3748;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: #38a169; /* Green focus ring */
    box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.2); /* Light green shadow */
}

.textarea-input {
    min-height: 80px; /* Default height for textarea */
    resize: vertical; /* Allow vertical resizing */
}

.save-button {
    background-color: #38a169; /* Green button */
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: auto; /* Allow button to size based on content */
    display: block; /* Make it a block element to control margin */
    margin-top: 2rem; /* Spacing from elements above */
}

.save-button:hover {
    background-color: #2f855a; /* Darker green on hover */
    transform: translateY(-1px);
}

/* --- Your Looking For Section Specifics --- */
.looking-for-card {
    background-color: #f7fafc;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.25rem;
}

.services-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to next line */
    gap: 0.75rem; /* Space between service tags/buttons */
    padding: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 0.5rem;
    min-height: 50px; /* Ensure some height even with no tags */
    align-items: center; /* Vertically align items */
}

.service-tag {
    display: inline-flex;
    align-items: center;
    background-color: #d1fae5; /* Light green tag background */
    color: #1a6435; /* Darker green text */
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem;
}

.service-tag .remove-tag {
    background: none;
    border: none;
    color: #1a6435;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-left: 0.25rem;
}

.add-service-button {
    background-color: #38a169; /* Green plus button */
    color: white;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

.add-service-button:hover {
    background-color: #2f855a;
}

/* --- Change Password Section Specifics --- */
.password-change-card,
.email-change-card {
    background-color: #f7fafc;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column; /* Stack inputs vertically */
}

.password-requirements {
    background-color: #ecfdf5; /* Very light green */
    border: 1px solid #a7f3d0; /* Lighter green border */
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.requirements-title {
    font-weight: 700;
    color: #1a6435;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.requirement-item.valid {
    color: #10b981; /* Tailwind green-500 */
}

.requirement-item.invalid {
    color: #ef4444; /* Tailwind red-500 */
}

.requirement-item::before {
    content: '\f058'; /* FontAwesome check-circle for valid */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    color: #10b981; /* Default to green */
}

.requirement-item.invalid::before {
    content: '\f057'; /* FontAwesome times-circle for invalid */
    color: #ef4444; /* Red for invalid */
}

/* Specific for change email section */
.send-code-button {
    background-color: #38a169;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* Prevent text from wrapping */
}

.send-code-button:hover {
    background-color: #2f855a;
}

/* Utility for hiding sections */
.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-nav {
        padding: 0.75rem 1rem;
    }

    .nav-icons {
        gap: 1rem;
    }

    .main-content-area {
        padding-top: 5rem; /* Adjust for smaller header */
    }

    .settings-content-wrapper {
        flex-direction: column;
        margin: 1rem;
        box-shadow: none; /* Remove shadow on smaller screens */
        border-radius: 0;
    }

    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #d1fae5;
        padding: 1.5rem 1rem;
    }

    .settings-main-content {
        padding: 1.5rem 1rem;
    }

    .profile-images-section {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .add-banner-button {
        position: static; /* Remove absolute positioning */
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .service-options-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .app-name {
        font-size: 1rem;
    }

    .sidebar-title {
        font-size: 1.5rem;
    }

    .page-main-title {
        font-size: 1.75rem;
    }

    .input-group.flex {
        flex-direction: column;
        align-items: stretch;
    }
    .send-code-button {
        width: 100%;
        margin-top: 1rem;
    }
}
/* Final na CSS para sa password requirements - LAGING NAKIKITA */
.password-requirements {
    background-color: #ecfdf5; /* Very light green */
    border: 1px solid #a7f3d0; /* Lighter green border */
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem; /* Siguraduhin na may tamang spacing */
    margin-bottom: 1.5rem; /* Siguraduhin na may tamang spacing */
    /* Tanggalin ang opacity: 0, max-height: 0, at overflow: hidden */
    /* Para laging visible */
    padding-bottom: 1rem; /* Adjust to 1rem or your preferred bottom padding */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Optional: panatilihin ang shadow */
}

/* Keep the invalid/valid states for individual list items */
.requirement-item.valid {
    color: #10b981;
}

.requirement-item.invalid {
    color: #ef4444;
}
/* In settings.css */


.password-requirements.show {
    opacity: 1;
    max-height: 150px; /* Adjust as needed */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    border: 1px solid #a7f3d0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.requirement-item.valid {
    color: #10b981; /* Green color */
}



/* Sa settings.css o settingsGlobal.css */
.save-button {
    position: relative !important;
    z-index: 9999 !important;
    cursor: pointer !important;
}

#profile-dropdown-menu {
    position: absolute;
    top: 50px; /* adjust depende sa header */
    right: 10px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999; /* siguraduhin nasa ibabaw */
}

#profile-dropdown-menu.hidden {
    display: none;
}

#service-selection-modal {
    position: fixed;  /* So it floats above the page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* Optional dark overlay */
    display: none; /* hidden by default */
    z-index: 10000; /* Must be higher than save button */
}

#service-selection-modal.visible {
    display: flex; /* Or block depending on your layout */
    justify-content: center;
    align-items: center;
}
#save-services-button {
    z-index: 9999; /* Less than modal's 10000 */
    position: relative;
}

/* --- Service Options inside Modal --- */
.service-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    justify-content: flex-start;
}

.service-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #f9fafb; /* Light gray bg */
    border: 1px solid #e5e7eb; /* Subtle border */
    border-radius: 9999px; /* Full pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151; /* Dark gray text */
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: normal; /* Allow wrapping for long text */
    text-align: center;
    line-height: 1.2;
    min-width: fit-content;
}

/* Hover effect */
.service-option:hover {
    background-color: #e6fffa;
    border-color: #38a169;
    color: #1a6435;
}

/* Selected state */
.service-option.selected {
    background-color: #38a169;
    color: #fff;
    border-color: #38a169;
}
