/* --- Global Styles & Variables --- */
:root {
    --primary-color: #f7a4a4; /* Soft Pink */
    --secondary-color: #a0d2eb; /* Soft Blue */
    --accent-color: #ffd700; /* Gold */
    --text-color: #333;
    --bg-color: #ffffff;
    --light-bg-color: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: darken(var(--primary-color), 10%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

section {
    padding: 60px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-transform: capitalize;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}
.btn-primary:hover {
    /* background-color: darken(var(--primary-color), 10%); */ /* Remove or comment out old line */
    background-color: #e89393; /* Slightly darker shade of #f7a4a4 (Soft Pink) */
    color: #fff; /* Ensure text stays white */
    transform: translateY(-2px); /* Keep the slight lift effect */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1); /* Optional: Add slightly stronger shadow on hover */
}

.btn-secondary:hover {
    /* background-color: darken(var(--secondary-color), 10%); */ /* Remove or comment out old line */
    background-color: #8dc1de; /* Slightly darker shade of #a0d2eb (Soft Blue) */
    color: #fff; /* Ensure text stays white */
    transform: translateY(-2px); /* Keep the slight lift effect */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1); /* Optional: Add slightly stronger shadow on hover */
}


.btn-cta {
    font-weight: 600;
    padding: 12px 30px !important;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}


/* --- Navbar --- */
.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.navbar .logo img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 25px; /* Spacing between links */
}

.navbar .nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.navbar .nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.navbar .nav-links li a:hover::after,
.navbar .nav-links li a.active::after {
    width: 100%;
}

.navbar .nav-links li a.active {
     color: var(--primary-color);
     font-weight: 600;
}


.navbar .nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* --- Hero Section --- */
.hero-section {
    background: url('../images/wedding.jpg') no-repeat center center/cover; /* Add your background image */
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}

.hero-form-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 30px auto 0;
    color: var(--text-color);
    box-shadow: var(--box-shadow);
}
.hero-form-container h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.quick-register-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end; /* Align items to bottom */
    justify-content: center;
}

.quick-register-form .form-group {
    flex: 1; /* Allow groups to grow */
    min-width: 150px; /* Minimum width before wrapping */
    text-align: left;
}

.quick-register-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-register-form input[type="number"],
.quick-register-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}
.quick-register-form input[type="number"] {
    width: calc(50% - 10px); /* Adjust for 'to' span */
    display: inline-block;
}
.quick-register-form span {
    padding: 0 5px;
    line-height: 40px; /* Align with input height */
}

.quick-register-form button {
    padding: 12px 30px;
    flex-basis: 150px; /* Set a base width for the button */
    flex-grow: 0;
}


/* --- Features Section --- */
.features-section {
    background-color: var(--light-bg-color);
    text-align: center;
}
.features-section h2 {
     margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- Testimonials Section --- */
.testimonials-section {
     text-align: center;
}
.testimonials-section h2 {
     margin-bottom: 40px;
}

.testimonials-slider {
    display: flex;
    justify-content: center; /* Adjust as needed for slider */
    gap: 30px;
    flex-wrap: wrap; /* For static display */
}

.testimonial-item {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 400px; /* Adjust as needed */
    text-align: center;
    border-left: 5px solid var(--secondary-color);
    box-shadow: var(--box-shadow);
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-item blockquote {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.testimonial-item cite {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-color);
}
.about-section h2 {
    text-align: center;
    margin-bottom: 30px;
}
.about-section p {
    max-width: 800px;
    margin: 0 auto 15px;
    text-align: justify;
}


/* --- Footer --- */
.footer {
    background-color: #333; /* Dark background for footer */
    color: #f1f1f1;
    padding: 40px 0 20px;
    margin-top: 60px; /* Ensure spacing before footer */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-content h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}
.footer-content h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social a {
    color: #ccc;
    font-size: 1.5rem;
    margin-right: 15px;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 8px;
}
.footer-contact p i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}


/* --- Sign Up / Login Page --- */
.form-page {
    padding: 80px 0;
    background-color: var(--light-bg-color);
    min-height: calc(100vh - 150px); /* Adjust based on navbar/footer height */
    display: flex;
    align-items: center;
}

.form-container {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 550px;
    margin: 0 auto;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group label .required {
    color: var(--error-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
}
.form-group input[type="file"] {
    padding: 8px; /* Slightly different padding for file input */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(247, 164, 164, 0.3); /* Focus ring */
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    display: block; /* Changed to block */
    margin-top: 5px;
    min-height: 1em; /* Reserve space */
}
.form-group input.error,
.form-group select.error {
    border-color: var(--error-color);
}


.switch-form {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
}


/* --- Dashboard Page --- */
.dashboard-page {
    padding: 40px 0;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 15px;
}
.dashboard-header h1 {
    margin-bottom: 0; /* Remove default margin */
}

.dashboard-tabs {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    transition: border-color var(--transition-speed), color var(--transition-speed);
    margin-bottom: -1px; /* Align with border */
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-button .badge {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.tab-content {
    /* display: none; // Handled by JS */
    padding-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Re-use profile-grid and card styles here */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller cards */
    gap: 20px;
}

.profile-card.mini {
    text-align: center;
    padding: 15px;
     background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.profile-card.mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.profile-card.mini img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px;
    object-fit: cover;
}
.profile-card.mini h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.profile-card.mini p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}


/* --- Search/Listing Page --- */
.search-page {
    padding: 40px 0;
}

.search-layout {
    display: flex;
    gap: 30px;
}

.search-sidebar {
    flex: 0 0 280px; /* Fixed width sidebar */
    background-color: var(--light-bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    height: fit-content; /* Adjust height to content */
}

.search-sidebar h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.filter-group label {
    display: inline-block; /* Or block */
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.filter-group input[type="number"],
.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    margin-bottom: 10px;
}
/* Specific width for min/max age */
.filter-group input[name="age_min"],
.filter-group input[name="age_max"] {
     width: calc(50% - 5px); /* Adjust for gap */
}
.filter-group input[name="age_min"] {
    margin-right: 10px;
}

.search-results {
    flex: 1; /* Takes remaining space */
}

.search-results h2 {
     margin-bottom: 25px;
}

/* Re-use profile-grid and profile-card */
.search-results .profile-grid {
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Slightly larger cards */
     gap: 25px;
}

.profile-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid var(--border-color);
}
.profile-card:hover {
     transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 4px solid var(--light-bg-color);
}

.profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
     color: var(--primary-color);
}

.profile-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}
.profile-card p i {
    margin-right: 5px;
    color: var(--secondary-color);
    width: 15px; /* Ensure alignment */
    text-align: center;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.page-link {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-link.disabled {
    color: #aaa;
    pointer-events: none;
    border-color: #eee;
}

/* --- Individual Profile Page --- */
.profile-page {
    padding: 40px 0;
}

.profile-layout {
    max-width: 900px; /* Limit width for readability */
    margin: 0 auto;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Contain elements */
}

.profile-header {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    padding: 30px;
    background: linear-gradient(135deg, var(--light-bg-color) 0%, #fff 100%);
    border-bottom: 1px solid var(--border-color);
    gap: 30px; /* Space between image and summary */
    flex-wrap: wrap; /* Wrap on smaller screens */
}

.profile-image-large {
    flex: 0 0 200px; /* Fixed width for image container */
    text-align: center;
}

.profile-image-large img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-summary {
    flex: 1; /* Take remaining space */
}

.profile-summary h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.profile-meta {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px; /* Row and column gap */
}
.profile-meta span {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
}
.profile-meta i {
    margin-right: 6px;
    color: var(--secondary-color);
    width: 16px;
    text-align: center;
}

.profile-occupation {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.profile-occupation i {
     margin-right: 8px;
     color: var(--secondary-color);
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-details {
    padding: 30px;
}

.profile-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}
.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-section h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

.profile-bio {
    line-height: 1.7;
    color: #444;
}

.profile-section ul {
    list-style: none;
    padding-left: 0;
    display: grid; /* Use grid for structured layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 10px 20px; /* Row and column gap */
}

.profile-section ul li {
    font-size: 1rem;
    color: #555;
    padding: 5px 0;
}
.profile-section ul li strong {
    font-weight: 600;
    color: #333;
    min-width: 150px; /* Ensure alignment */
    display: inline-block; /* Needed for min-width */
    margin-right: 5px;
}

.contact-locked {
    background-color: var(--light-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}
.contact-locked h2 i {
    color: var(--accent-color);
    margin-left: 5px;
}
.contact-locked p {
    margin-bottom: 15px;
    color: #666;
}

.horoscope-section ul {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust columns if needed */
}
.horoscope-match-mock {
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
}
.horoscope-match-mock span {
    font-size: 1.2rem;
    margin-left: 5px;
}

/* --- Optional Membership Plans --- */
.membership-plans {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--light-bg-color);
    border-radius: var(--border-radius);
}
.membership-plans h2 {
    text-align: center;
    margin-bottom: 30px;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.plan-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.plan-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
}
.plan-card.popular::before {
    content: "Popular";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}
.plan-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.plan-card.popular h3 {
     color: var(--primary-color);
}
.plan-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}
.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}
.plan-card ul li {
    margin-bottom: 10px;
    color: #555;
}
.plan-card ul li::before { /* Simple checkmark */
    content: '\f00c'; /* Font Awesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success-color);
    margin-right: 8px;
}


/* --- Responsiveness --- */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2.5rem; }

    .search-layout {
        flex-direction: column;
    }
    .search-sidebar {
        flex: 0 0 auto; /* Reset flex basis */
        width: 100%;
        margin-bottom: 30px;
    }

     .profile-header {
        padding: 20px;
    }
     .profile-image-large {
        flex-basis: 150px; /* Smaller image on medium screens */
    }
    .profile-image-large img {
        width: 150px;
        height: 150px;
    }
    .profile-summary h1 {
        font-size: 1.8rem;
    }

}


@media (max-width: 768px) {
    body { font-size: 15px; }
    section { padding: 40px 0; }
    .container { padding: 0 15px; }

    /* Navbar Toggle */
    .navbar .nav-links {
        display: none; /* Hide links */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on navbar height */
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        padding: 15px 0;
        gap: 0;
    }
     .navbar .nav-links.active {
        display: flex; /* Show when active */
    }

    .navbar .nav-links li {
        width: 100%;
        text-align: center;
    }
    .navbar .nav-links li a {
        padding: 12px 15px;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--light-bg-color);
    }
     .navbar .nav-links li:last-child a {
        border-bottom: none;
    }
     .navbar .nav-links li a.btn { /* Style button within mobile menu */
        margin: 10px auto;
        display: inline-block;
        width: auto;
    }
    .navbar .nav-links li a::after {
        display: none; /* Hide underline effect */
    }

    .navbar .nav-toggle {
        display: block; /* Show hamburger */
    }

    


    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }
    .quick-register-form { flex-direction: column; align-items: stretch; }
    .quick-register-form .form-group { min-width: 100%; }
    .quick-register-form input[type="number"] { width: calc(50% - 10px); } /* Keep age side-by-side if possible */
    .quick-register-form button { width: 100%; flex-basis: auto; }


    .features-grid { grid-template-columns: 1fr; } /* Stack features */

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-content > div {
        margin-bottom: 20px;
    }
    .footer-social a {
        margin: 0 10px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
     .profile-image-large {
        margin-bottom: 20px;
    }
    .profile-summary {
         width: 100%; /* Take full width */
    }
    .profile-meta {
        justify-content: center;
    }
    .profile-occupation {
        justify-content: center;
    }
    .profile-actions {
        justify-content: center;
    }
     .profile-section ul {
        grid-template-columns: 1fr; /* Stack details list */
    }
    .profile-section ul li strong {
        min-width: 120px; /* Adjust alignment */
    }
}

@media (max-width: 576px) {
     .quick-register-form input[type="number"] {
         width: 100%; /* Stack age inputs */
         margin-bottom: 10px;
     }
     .quick-register-form span { display: none; } /* Hide 'to' */

     .form-container { padding: 25px; }

      .profile-image-large { flex-basis: 120px; }
      .profile-image-large img { width: 120px; height: 120px; }
      .profile-summary h1 { font-size: 1.6rem; }
      .profile-meta { font-size: 0.9rem; }

}



/* --- Admin Panel Styles --- */
body.admin-body { /* Optional: Add class to body in admin.html if needed for specific overrides */
    background-color: #f4f6f9; /* Lighter grey background for admin area */
}

.admin-panel {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background-color: #2c3e50; /* Dark sidebar */
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    position: fixed; /* Fixed sidebar */
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1010; /* Above navbar if needed */
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}
.sidebar-header .logo {
    color: #ecf0f1;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto; /* Scroll if content exceeds height */
}
.sidebar-nav ul {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}
.sidebar-nav li a.nav-link {
    display: flex; /* Use flex for icon alignment */
    align-items: center;
    padding: 12px 20px;
    color: #bdc3c7; /* Lighter text color */
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
    border-left: 4px solid transparent; /* Indicator for active */
}
.sidebar-nav li a.nav-link i.fa-fw {
    width: 20px; /* Fixed width for icons */
    margin-right: 10px;
    text-align: center;
}
.sidebar-nav li a.nav-link:hover {
    background-color: #34495e; /* Darker background on hover */
    color: #ffffff;
    padding-left: 25px; /* Indent on hover */
}
.sidebar-nav li a.nav-link.active {
    background-color: #1a252f;
    color: #ffffff;
    font-weight: 500;
    border-left-color: var(--primary-color); /* Use site's primary color */
}
.sidebar-nav li a.logout-link {
    margin-top: 20px; /* Space before logout */
    color: #e74c3c; /* Red color for logout */
}
.sidebar-nav li a.logout-link:hover {
     background-color: #34495e;
     color: #f1a096; /* Lighter red on hover */
}

/* --- Dashboard - Message & Notification List Styles --- */

/* Message List */
.message-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.message-item {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 15px;
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer; /* Indicate clickable */
    transition: background-color 0.2s ease;
}
.message-item:last-child {
    border-bottom: none;
}
.message-item:hover {
    background-color: var(--light-bg-color);
}
.message-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent image from shrinking */
}
.message-details {
    flex-grow: 1;
}
.message-details .sender-name {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 3px;
}
.message-details .message-snippet {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    /* Optional: Limit lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Show only 1 line */
    -webkit-box-orient: vertical;
}
.message-time {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap; /* Prevent time from wrapping */
    margin-left: auto; /* Push time to the right */
    padding-left: 10px;
    flex-shrink: 0;
}
.message-item.unread .sender-name,
.message-item.unread .message-snippet {
    font-weight: bold; /* Make unread messages bold */
    color: #111; /* Darker text for unread */
}
.message-item.unread {
     background-color: #fdf6f6; /* Very light pinkish bg for unread */
}


/* Notification List */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notification-item {
    display: flex;
    align-items: center; /* Center items vertically */
    gap: 15px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item i {
    width: 20px; /* Fixed width for icon */
    text-align: center;
    opacity: 0.8;
    flex-shrink: 0;
}
.notification-item p {
    flex-grow: 1;
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}
.notification-item p strong {
    color: var(--primary-color); /* Highlight names */
}
.notification-time {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 10px;
    flex-shrink: 0;
}
.notification-item.unread {
    background-color: #f8fafd; /* Very light bluish bg for unread */
}
.notification-item.unread p {
     font-weight: 500; /* Slightly bolder text for unread */
     color: #222;
}
/* Use text color classes defined in Admin CSS or define new ones */
.notification-item .text-primary { color: var(--primary-color); }
.notification-item .text-secondary { color: var(--secondary-color); }
.notification-item .text-accent { color: var(--accent-color); }
.notification-item .text-success { color: var(--success-color); }
.notification-item .text-info { color: #17a2b8; } /* Example info color */


/* Who Viewed My Profile - Specific Styles (if needed) */
.viewer-card {
    position: relative; /* For positioning time */
}
.view-time {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    margin-top: -8px; /* Adjust spacing */
}


/* Main Content Area */
.admin-main {
    flex-grow: 1;
    margin-left: 250px; /* Space for the fixed sidebar */
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* Header */
.admin-header {
    background-color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1005; /* Below sidebar */
}
.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}
.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

/* Menu Toggle Button (for responsive) */
.admin-menu-toggle {
    display: none; /* Hidden on larger screens */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    margin-right: 15px;
}


/* Page Content Area */
.admin-content-area {
    padding: 30px;
    background-color: #f4f6f9; /* Match body or use slightly different shade */
    flex-grow: 1;
}
.admin-content {
    display: none; /* Hide all content sections initially */
    background-color: #ffffff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px; /* Space between sections if multiple were visible */
}
.admin-content.active {
    display: block; /* Show only the active section */
}
.admin-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-size: 1.3rem;
    color: var(--secondary-color); /* Use site's secondary color */
}


/* Dashboard Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.stat-card i {
    opacity: 0.7;
}
.stat-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}
.stat-info p {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}
/* Utility text colors for icons */
.text-blue { color: #3498db; }
.text-orange { color: #f39c12; }
.text-green { color: #2ecc71; }
.text-red { color: #e74c3c; }

/* Dashboard Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px; /* Limit height */
    overflow-y: auto;
}
.activity-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}
.activity-list li:last-child {
    border-bottom: none;
}
.activity-list li i {
    width: 16px; /* Align icons */
}


/* Data Table Styles */
.table-responsive {
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.data-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-top: 1px solid var(--border-color);
}
.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Zebra striping */
}
.data-table tbody tr:hover {
    background-color: #e9ecef;
}
.data-table td:last-child { /* Actions column */
    text-align: right;
    white-space: nowrap; /* Prevent action buttons from wrapping */
}
.data-table .btn-sm {
    margin: 0 2px;
    padding: 5px 8px; /* Adjust padding for smaller buttons */
}
.data-table .btn-info { background-color: #17a2b8; color: white; }
.data-table .btn-warning { background-color: #ffc107; color: #333; }
.data-table .btn-danger { background-color: #dc3545; color: white; }
.data-table .btn-success { background-color: #28a745; color: white; }
.data-table .btn-secondary { background-color: #6c757d; color: white; }


/* Badges */
.badge {
    display: inline-block;
    padding: 0.3em 0.6em;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff;
}
.badge-success { background-color: #28a745; }
.badge-warning { background-color: #ffc107; color: #333; }
.badge-danger { background-color: #dc3545; }
.badge-info { background-color: #17a2b8; }


/* Settings Mock */
.settings-mock .form-group {
    max-width: 500px;
    margin-bottom: 15px;
}


/* Admin Panel Responsive Adjustments */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-250px); /* Hide sidebar by default */
        z-index: 1020; /* Ensure it's on top when opened */
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0; /* Main content takes full width */
    }
    .admin-menu-toggle {
        display: block; /* Show hamburger */
    }
     .admin-header h2 {
        font-size: 1.2rem; /* Smaller header title */
    }
    .admin-user-info span {
        display: none; /* Hide "Welcome, Admin!" text */
    }
    .admin-content-area {
        padding: 15px;
    }
     .stats-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }
}