/* style.css - Version 1.1.9 (Removed absolute positioning from content-screen) */
/* Custom CSS for menu-specific styles not easily done in Tailwind */

/* Specific mobile menu styles that are harder to do purely with Tailwind classes */
.mobile-nav.active {
    transform: translateX(0); /* Slide in */
}

.mobile-menu-overlay.active {
    display: block; /* Show overlay when menu is active */
}

.has-submenu-mobile .submenu-mobile {
    /* Tailwind: overflow-hidden transition-max-height duration-300 ease-in-out */
}

.has-submenu-mobile.active .submenu-mobile {
    max-height: 200px; /* Adjust this value if your sub-menu items are taller or more numerous */
}

.has-submenu-mobile.active > a .fa-chevron-down {
    transform: rotate(180deg); /* Rotate chevron when active */
}

/* Hide scrollbar for mobile menu if desired */
.mobile-nav::-webkit-scrollbar {
    width: 0;
    background: transparent;
}
.mobile-nav {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Custom styles for the friends table background and text */
.friends-table tbody tr {
    background-color: #F8F8F8 !important; /* Cream color for general rows */
    color: #333333 !important;
}
.friends-table tbody tr:nth-child(even) {
    background-color: #ECECEC !important; /* Slightly darker cream for even rows */
}

/* Custom button hover effect for links that look like buttons */
.button-like-link {
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.button-like-link:hover {
    background-color: #4338CA; /* Deeper indigo on hover */
    border-color: #4338CA; /* Match border to new background */
}

/* Base styling for all app inputs, unifying their look */
.app-input {
    width: 100%;
    padding: 0.75rem 1rem; /* py-3 px-4 */
    font-size: 1rem; /* text-base */
    line-height: 1.5; /* leading-normal */
    color: #E5E7EB; /* text-gray-200 */
    background-color: #374151; /* bg-gray-700 */
    background-clip: padding-box;
    border: 1px solid #4B5563; /* border-gray-600 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none; /* Remove default OS styling for select, etc. */
}

.app-input:focus {
    color: #E5E7EB; /* text-gray-200 */
    background-color: #374151; /* bg-gray-700 */
    border-color: #6366F1; /* border-indigo-500 */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25); /* ring-indigo-500/50 */
}

.app-input::placeholder {
    color: #9CA3AF; /* text-gray-400 */
    opacity: 1; /* For Firefox */
}

/* Base styling for all app buttons */
.app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    font-size: 1rem; /* text-base */
    font-weight: 600; /* font-semibold */
    line-height: 1.5; /* leading-normal */
    color: #FFFFFF; /* text-white */
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    border: none; /* Remove default button border */
    text-decoration: none; /* Ensure no underline for button-like links */
}

.app-button:hover {
    filter: brightness(1.1); /* Slightly brighten on hover */
}

.app-button:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.5); /* Focus ring */
}

/* Specific button colors (example for indigo, green, red) */
.app-button.bg-indigo-600 { background-color: #4F46E5; }
.app-button.bg-indigo-600:hover { background-color: #4338CA; } /* Deeper indigo */

.app-button.bg-green-600 { background-color: #10B981; }
.app-button.bg-green-600:hover { background-color: #059669; }

.app-button.bg-red-600 { background-color: #EF4444; }
.app-button.bg-red-600:hover { background-color: #DC2626; }

.app-button.bg-blue-600 { background-color: #3B82F6; }
.app-button.bg-blue-600:hover { background-color: #2563EB; }

.app-button.bg-gray-600 { background-color: #4B5563; }
.app-button.bg-gray-600:hover { background-color: #374151; }

/* Custom content-card for dashboard sections */
.content-card {
    background-color: rgba(30, 41, 59, 0.9); /* Tailwind: bg-gray-900 with opacity */
    padding: 2rem; /* Tailwind: p-8 */
    border-radius: 0.75rem; /* Tailwind: rounded-lg */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1); /* Tailwind: shadow-xl */
    width: 100%;
    max-width: 48rem; /* Equivalent to Tailwind's max-w-3xl, approx 768px */
    margin-left: auto; /* Centering */
    margin-right: auto; /* Centering */
    margin-top: 2rem; /* mt-8 */
    margin-bottom: 2rem; /* mb-8 */
    backdrop-filter: blur(8px); /* Blur effect */
    -webkit-backdrop-filter: blur(8px); /* For Safari */
}

.nav-button {
    color: white;
    font-weight: 600; /* semi-bold */
    transition: background-color 0.2s ease-in-out;
}

.nav-button:hover {
    background-color: #3f35a0; /* A slightly darker indigo for hover */
}

/* Ensure content screens are positioned correctly for natural flow */
.content-screen {
    /* Removed: absolute; inset-0; */
    /* Removed: top: 0; left: 0; width: 100%; height: 100%; */
    overflow-y: auto; /* Allows scrolling if content overflows */
    padding-top: 1rem; /* Add some padding to avoid content directly touching the top */
    padding-bottom: 1rem; /* Add some padding to avoid content directly touching the bottom */
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 40; /* Below mobile menu, above main content */
    display: none; /* Hidden by default */
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-submenu-content {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.has-submenu-mobile.active .mobile-submenu-content {
    display: block; /* Make it block to allow max-height transition */
    max-height: 200px; /* Or whatever height you need for your submenu */
}

.has-submenu-mobile.active > #mobile-resources-toggle .fa-chevron-down {
    transform: rotate(180deg);
}
/* Style for sub-menus */
.resources-dropdown {
    /* Standard dropdown styling handled mostly by Tailwind classes in header.php */
    /* This rule ensures it doesn't disappear on click within the dropdown */
    pointer-events: auto; /* Ensures clicks inside are registered */
}

/* Custom styles for the slideshow wrapper */
#slideshow-wrapper {
    max-width: 700px; /* Adjust this value (e.g., 700px, 800px, 1000px, 1200px) to your desired width */
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px; /* Example: Adds 20px margin...
	
/* If .app-input is too restrictive for selects */
.app-input select {
    min-width: 250px; /* Adjust this value as needed */
    width: auto; /* Allow it to grow beyond 100% if min-width is larger */
    box-sizing: border-box; /* Include padding and border in the element's total width */
}

/* Or target specific selects if only these are problematic */
#securityQuestion1,
#securityQuestion2,
#securityQuestion3 {
    min-width: 250px; /* Adjust this value */
    width: auto;
    box-sizing: border-box;
}

/* Ensure their parent container allows them to expand */
#privacySettingsForm > div {
    /* If these divs have specific width constraints, they might need adjustment */
    /* For example, if they use grid/flexbox, ensure items can grow */
    /* display: block; or ensure sufficient space */
}


<style>
/* Base styling for all form inputs */
.app-input,
.app-select {
    width: 100%;
    padding: 0.75rem; /* 12px */
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    background-color: #374151; /* bg-gray-700 */
    border: 1px solid #4b5563; /* border-gray-600 */
    border-radius: 0.5rem; /* rounded-lg */
    color: #f3f4f6; /* text-gray-100 */
    transition: all 0.2s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Hover and focus states */
.app-input:focus,
.app-select:focus {
    border-color: #3b82f6; /* focus:border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); /* focus:ring-blue-500 */
    outline: none;
}

/* Specific styling for select dropdowns to ensure they are visible and clickable */
.app-select {
    height: auto;
    min-height: 3rem; /* Minimum height to make it easily tappable/clickable */
    cursor: pointer;
}

/* Styling for the form's message box */
.message-box {
    font-weight: bold;
    padding: 0.75rem; /* Match form input padding */
    border-radius: 0.5rem; /* Match form input border-radius */
    text-align: center;
}

.success {
    background-color: #22c55e; /* bg-green-500 */
    color: #ffffff; /* white text */
}

.error {
    background-color: #ef4444; /* bg-red-500 */
    color: #ffffff; /* white text */
}

.info {
    background-color: #3b82f6; /* bg-blue-500 */
    color: #fef08a; /* yellow text (Tailwind yellow-200) */
}

.profile-image-preview {
    border-radius: 50%;
    border: 4px solid #4b5563; /* border-gray-600 */
}

/* Hide the message box by default */
.hidden {
    display: none;
}




</style>