/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fc; 
    color: #ffffff; /* White text for readability */
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Starry Background */
#stars-background, #shooting-stars, #stars-background-support, #shooting-stars-support {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind all content */
}

#shooting-stars, #shooting-stars-support {
    z-index: 1; /* Above canvas but below content */
}

/* Header Styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 20;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 5.5rem;
    transition: transform 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header.bg-royal-blue {
    background: #1E3A8A;
    color: #ffffff;
}

.header.bg-white {
    background: #ffffff;
    color: #1E3A8A;
}

.header .max-w-7xl {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0.75rem 1rem;
    margin: 0 auto;
}

.header .logo {
    display: inline-flex;
    align-items: center;
    margin: 0 1rem;
}

.header .logo img {
    height: 6rem;
    width: auto;
}

.header .logo a {
    text-decoration: none;
}

.header .logo a:hover {
    text-decoration: none;
}

.header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.header nav a {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    color: #1e3a8b;
    transition: text-decoration 0.2s ease, text-decoration-color 0.2s ease;
}

.header nav a:hover,
.header nav a.tab-active {
    color: #1e3a8b;
    text-decoration: underline;
    text-decoration-color: #1e3a8b;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.btn {
    padding: 0.5rem 1rem;
    line-height: 1.5rem;
    box-sizing: border-box;
}

/* Homepage Styles */
.homepage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 5.5rem;
    position: relative;
}

/* Content Container */
.content-container {
    max-width: 1400px;
    padding: 0 0.75rem;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* Above starry background */
}

@media (min-width: 768px) {
    .content-container {
        padding: 0 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0a0a23;
    padding: 1.5rem 0.75rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    width: 100%;
}

.hero-logo {
    max-width: 250px;
    width: 70%;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    cursor: pointer;
}

.hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 700px;
    padding: 0 0.75rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-button {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Join the Team Button */
#join-team-button {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 120px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px);
}

#join-team-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Our Mission Section */
.our-mission {
    padding: 2rem 0.75rem;
    text-align: center;
    background: #f4f7fb;
}

@media (min-width: 768px) {
    .our-mission {
        padding: 2.5rem 1rem;
    }
}

.our-mission .mission-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    max-width: 700px;
    margin: 0 auto;
}

.our-mission .mission-card:hover {
    transform: translateY(-5px);
}

.our-mission h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.our-mission p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Features Section */
.features {
    padding: 2rem 0.75rem;
    text-align: center;
    background: #f4f7fb;
}

@media (min-width: 768px) {
    .features {
        padding: 2.5rem 1rem;
    }
}

.features h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

#about .text-gray-700 {
    padding: 1rem;
    color: #4a5568;
}

/* Join the Team Link */
#join-team-link {
    font-weight: 700;
    color: #1E3A8A;
    text-decoration: none;
    transition: text-decoration 0.2s ease, text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

#join-team-link:hover {
    text-decoration: underline;
    text-decoration-color: #1E3A8A;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* FAQ Section */
.faq-container {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.faq-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.faq-tab-nav {
    background: rgba(255, 255, 255, 0.1); /* Glass effect */
    border-bottom: 1px solid #e2e8f0;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-tab-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000; /* Light gray for readability */
    background: transparent;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.faq-tab-link:hover {
    color: #ffffff;
    background: rgba(30, 58, 138, 0.8); /* Semi-transparent royal blue */
}

.faq-tab-link.tab-active {
    color: #ffffff;
    background: rgba(30, 58, 138, 0.8);
}

.faq-tab-content {
    background: rgba(255, 255, 255, 0.1); /* Glass effect */
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    color: #000000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.faq-tab-content:not(.hidden) {
    max-height: 200px;
    padding: 1rem 1.25rem;
    opacity: 1;
}

.faq-tab-content.hidden {
    max-height: 0;
    padding: 0 1.25rem;
    opacity: 0;
}

.faq-arrow {
    font-size: 0.75rem;
    color: #d1d5db;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-tab-link.tab-active .faq-arrow {
    color: #ffffff;
    transform: rotate(180deg);
}

/* Contact Section */
#contact .content-container {
    padding: 2rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 12rem;
    justify-content: space-between;
}

@media (min-width: 768px) {
    #contact .content-container {
        padding: 2.5rem 1rem;
        flex-direction: row;
    }
}

.contact-flip-card {
    perspective: 1000px;
    width: 100%;
    max-width: 480px;
    min-height: 450px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.contact-flip-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 0.75rem;
    text-align: center;
}

.contact-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.contact-flip-card.flipped .contact-flip-card-inner {
    transform: rotateY(180deg);
}

.contact-flip-card-front,
.contact-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-flip-card-front {
    background: transparent;
    box-shadow: none;
}

.contact-flip-card-back {
    background: rgba(255, 255, 255, 0.95);
    transform: rotateY(180deg);
    padding: 0.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.contact-image:hover {
    transform: scale(1.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    padding: 0.4rem;
    box-sizing: border-box;
}

.contact-form p {
    font-size: 0.6rem;
    color: #1E3A8A;
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 0.3rem;
}

.contact-form .form-group label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #2d3748;
    display: block;
    margin-bottom: 0.15rem;
}

.contact-form .form-group select,
.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid #1E3A8A;
    font-size: 0.65rem;
    color: #1E3A8A;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-group select:focus,
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 40px;
    max-height: 80px;
}

.contact-form .newsletter-opt-out {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.contact-form .newsletter-opt-out input[type="checkbox"] {
    margin-right: 0.25rem;
    width: 0.7rem;
    height: 0.7rem;
    border: 1px solid #1E3A8A;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.contact-form .newsletter-opt-out input[type="checkbox"]:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.contact-form .newsletter-opt-out input[type="checkbox"]:checked {
    background: #1E3A8A;
    border-color: #1E3A8A;
}

.contact-form .newsletter-opt-out label {
    font-size: 0.65rem;
    font-weight: 400;
    color: #2d3748;
    cursor: pointer;
}

.contact-form .btn {
    width: 100%;
    padding: 0.25rem;
    font-size: 0.65rem;
    font-weight: 500;
    background: #1E3A8A;
    border: none;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0.4rem 0 0 0;
}

.contact-form .btn:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

/* Support Section Specific Styles */
.support-section {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, #0a0a23 0%, #1E3A8A 100%);
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    z-index: 10;
}

@keyframes float {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: 1000px;
    }
}

.support-section .content-container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 3;
}

.support-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.support-description {
    font-size: 1.1rem;
    color: #d1d5db;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.support-goal-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.support-goal-container .heart-wrap {
    margin-right: 0.5rem;
}

.support-goal-container .goal-text {
    text-align: left;
    line-height: 1.2;
    color: #d1d5db;
    font-size: 0.875rem;
}

.support-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 10px;
}

.support-options .support-btn {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 120px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.support-options .support-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Sponsors Section */
.sponsors-section {
    padding: 2rem 0.75rem;
    text-align: center;
    background: #f4f7fb;
    overflow: hidden;
    position: relative;
}

.sponsors-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.sponsors-section .content-container {
    max-width: 1400px;
    position: relative;
    margin: 0 auto;
}

.sponsor-viewport {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sponsors-section {
        padding: 2.5rem 1rem;
    }
}

.sponsor-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12rem;
    width: 3912px;
    max-width: none;
    margin: 0;
    position: relative;
    animation: slide 30s linear infinite;
}

.sponsor-img {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    object-fit: contain;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.sponsor-img:hover {
    transform: scale(1.05);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1860px);
    }
}

/* Progress Circle */
.progress-circle-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 2rem auto;
}

.progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 5;
}

.progress-circle-fill {
    fill: none;
    stroke: #93c5fd;
    stroke-width: 5;
    stroke-dasharray: 283;
    stroke-dashoffset: 113.2;
    transition: stroke-dashoffset 1s ease-in-out;
}

.progress-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.progress-goal {
    display: block;
    font-size: 0.875rem;
    color: #d1d5db;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .feature-grid {
        padding: 0 1rem;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card span {
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #4a5568;
}

/* Flip Card Styles */
.flip-card {
    perspective: 1000px;
    height: 280px; /* Increased height to fit content without scrollbar */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card-front {
    padding-top: 1.5rem;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #f8fafc;
    padding: 0.75rem; /* Reduced padding to save space */
    justify-content: space-between; /* Distribute content to fit */
}

.flip-card-back p {
    font-size: 0.8rem; /* Reduced font size to fit content */
    color: #4a5568;
    margin-bottom: 0.5rem; /* Reduced margin */
}

.flip-card-back .btn {
    margin: 0.2rem 0; /* Reduced margin */
    width: 90%;
    padding: 0.3rem 0.6rem; /* Smaller padding to fit */
    font-size: 0.75rem; /* Smaller font size */
}

.crisis-banner {
    background-color: #1E3A8A;
    border-right: 8px solid #d90606;
    border-left: 8px solid #d90606;
    color: #ffffff;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .crisis-banner {
        padding: 1rem;
    }
}

.crisis-banner p {
    color: #ffffff;
}

.crisis-banner a {
    color: #ffffff;
    text-decoration: none;
}

.crisis-banner a:hover {
    text-decoration: underline;
    color: #b91c1c;
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 5.5rem;
    position: relative;
    background: #0a0a23; /* Dark navy for starry night background */
    overflow: hidden;
}

#dashboard-stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#dashboard-shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (min-width: 768px) {
    .dashboard {
        flex-direction: row;
    }
}

.sidebar {
    background: rgba(255, 255, 255, 0.1); /* Glass effect */
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 0.5rem;
    border: 2px solid #ffffff; /* White border for glass effect */
    z-index: 10;
    position: relative;
	height: 380px; /* Default height for profile content */
    overflow: auto; /* Allow scrolling if content overflows */
    transition: height 0.3s ease;
}

.sidebar.expanded {
    height: auto; /* Expand to fit content when settings are opened */
}

.sidebar:not(.expanded) #sidebar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .sidebar {
        width: 25%;
        margin: 1rem;
    }
}

div#profile-info {
    margin-top: 0.5rem;
}

div#profile-settings {
    margin-top: 2rem;
}

.profile-settings-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 1rem 0;
}

.profile-pic {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 2px solid #123084;
    border-radius: 50%;
    display: block;
}

.sidebar h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.sidebar p {
    font-size: 0.75rem;
    color: #d1d5db;
    margin: 0.25rem 0;
    text-align: center;
}

.main-content {
    padding: 1rem 0.75rem;
    z-index: 10;
    position: relative;
}

@media (min-width: 768px) {
    .main-content {
        width: 75%;
        padding: 1.5rem 1rem;
    }
}

.main-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.card {
    background: rgba(255, 255, 255, 0.1); /* Glass effect */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.card h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.875rem;
    color: #4a5568;
}

.card ul {
    list-style: disc;
    padding-left: 1rem;
}

.card ul li {
    margin-bottom: 0.25rem;
}

/* Notebook-Style Tabs */
.tab-nav {
    background: #ffffff; /* Solid white background */
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tab-nav nav {
    display: flex;
    width: 100%;
}

.tab-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1E3A8A; /* Royal blue for non-active tabs */
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid transparent;
    background: #ffffff; /* Solid white background */
    transition: color 0.2s, background-color 0.2s;
    z-index: 10;
    position: relative;
}

.tab-link:hover {
    color: #ffffff;
    background: rgba(30, 58, 138, 0.8);
}

.tab-link.tab-active {
    color: #ffffff;
    background: rgba(30, 58, 138, 0.8);
    border-bottom: 2px solid #1E3A8A;
}

.tab-content {
    background: #ffffff; /* Solid white background */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.notebook-bg {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="18" viewBox="0 0 100 18"><line x1="0" y1="9" x2="100" y2="9" stroke="#e2e8f0" stroke-width="0.5"/></svg>') repeat-y;
    background-size: 100% 18px;
}

@media (max-width: 767px) {
    .tab-nav nav {
        flex-direction: column;
    }
    .tab-link {
        padding: 0.5rem 1rem;
        border-bottom: none;
        border-right: 2px solid transparent;
    }
    .tab-link:hover {
        border-bottom: none;
        border-right: 2px solid #93c5fd;
        background: rgba(30, 58, 138, 0.8);
        color: #ffffff;
    }
    .tab-link.tab-active {
        border-bottom: none;
        border-right: 2px solid #1E3A8A;
        background: rgba(30, 58, 138, 0.8);
        color: #ffffff;
    }
}

.section {
    background: #ffffff; /* Solid white background */
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.section.hidden {
    display: none;
    opacity: 0;
}

/* Form and Button Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group.name-group .name-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-group.name-group .name-inputs {
        grid-template-columns: 1fr;
    }
}

.form-group.delete-account-group {
    margin-top: 2rem;
    text-align: center;
}

.form-group.delete-account-group .btn {
    width: 75%;
    max-width: 300px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.25rem;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.form-group input:disabled,
.form-group input[disabled] {
    background: #e2e8f0;
    cursor: not-allowed;
}

button, .btn {
    display: inline-block;
	min-height: 2.25rem;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

button:hover, .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

button:disabled, .btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn.bg-red-600 {
    background: #dc2626;
}

.btn.bg-red-600:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.btn.bg-blue-600 {
    background: #2563EB;
}

.btn.bg-blue-600:hover {
    background: #1E40AF;
    transform: scale(1.05);
}

.btn.bg-light-blue {
    background: #3b82f6;
}

.btn.bg-light-blue:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.btn.bg-gray-400 {
    background: #9ca3af;
}

.btn.bg-gray-400:hover {
    background: #6b7280;
    transform: scale(1.05);
}

/* Password Strength Meter */
#password-strength {
    height: 3px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s, width 0.3s;
}

#password-strength.weak {
    background: #dc2626;
    width: 33%;
}

#password-strength.medium {
    background: #d97706;
    width: 66%;
}

#password-strength.strong {
    background: #16a34a;
    width: 100%;
}

/* Error Message Styles for Validation */
.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    line-height: 1.2;
    min-height: 1rem;
}

/* Status Message Styles for Veteran Section */
.status-pending {
    color: #d97706;
}

.status-approved {
    color: #16a34a;
}

.status-denied {
    color: #dc2626;
}

/* Delete Icon for Veteran Section */
.delete-icon {
    color: #dc2626;
    font-size: 0.875rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s, transform 0.2s;
}

.delete-icon:hover {
    color: #b91c1c;
    transform: scale(1.1);
}

/* Quill Editor */
#journal-editor {
    min-height: 150px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ql-toolbar {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ql-container {
    border: 1px solid #e2e8f0;
    border-top: none;
    background: #ffffff;
}

/* Journal Entries */
.journal-entry {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    padding: 0.75rem;
}

.journal-entry:hover {
    transform: translateY(-1px);
}

.font-handwritten {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #6b7280;
}

/* Social Section */
#user-search, #journal-tags {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#user-search:focus, #journal-tags:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

#user-list .flex {
    align-items: center;
    padding: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

#user-list .flex:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

#user-list img {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
    border: 1px solid #e2e8f0;
}

#user-list .flex-1 p {
    font-size: 0.875rem;
    color: #1a202c;
    font-weight: 500;
}

#user-list .flex-1 .flex span {
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 50;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Ensure modal overlay allows interaction */
}

.modal-content {
    background: rgba(255, 255, 255, 0.1); /* Glass effect */
    border: 2px solid #ffffff; /* Added white border */
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    color: #ffffff;
    z-index: 51; /* Above modal overlay */
    pointer-events: auto; /* Ensure content is clickable */
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.modal-content .close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s, transform 0.2s;
    pointer-events: auto; /* Ensure close button is clickable */
    z-index: 52; /* Above modal content */
}

.modal-content .close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.modal-content button {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    margin-top: 12px;
    pointer-events: auto; /* Ensure buttons are clickable */
}

.modal-content button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Delete Account Modal Specific Styles */
#delete-account-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay */
    z-index: 1000; /* Higher than other modals to prioritize */
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

#delete-account-modal .modal-content {
    background: rgba(255, 255, 255, 0.95); /* Solid background for readability */
    border: 2px solid #ffffff;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    color: #1a202c; /* Darker text for contrast */
    z-index: 1001;
    pointer-events: auto;
}

#delete-account-modal .modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    transition: color 0.2s, transform 0.2s;
    pointer-events: auto;
    z-index: 1002;
}

#delete-account-modal .modal-content .close:hover {
    color: #1a202c;
    transform: scale(1.1);
}

#delete-account-modal .modal-content input#delete-confirm-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
    pointer-events: auto;
    user-select: text;
}

#delete-account-modal .modal-content input#delete-confirm-input:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

#delete-account-modal .modal-content button#delete-confirm,
#delete-account-modal .modal-content button#delete-cancel {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    border: 2px solid #ffffff;
    transition: background-color 0.2s, transform 0.2s;
    margin: 0.5rem;
    pointer-events: auto;
    cursor: pointer;
}

#delete-account-modal .modal-content button#delete-confirm {
    background: #dc2626; /* Red for delete action */
    color: #ffffff;
}

#delete-account-modal .modal-content button#delete-confirm:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

#delete-account-modal .modal-content button#delete-confirm:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

#delete-account-modal .modal-content button#delete-cancel {
    background: transparent;
    color: #ffffff;
}

#delete-account-modal .modal-content button#delete-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Footer Styles */
.footer {
    background: #1E3A8A;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.quick-links-title {
    display: block;
    width: auto;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 1rem;
    text-align: center;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: transform 0.2s, border-bottom 0.2s;
}

.footer-link:hover {
    transform: scale(1.1);
    border-bottom: 2px solid #ffffff;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.social-icon {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #e5e7eb;
}

/* Back to Top Styles */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}

.back-to-top-square {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #1E3A8A;
}

.back-to-top.at-bottom {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 0.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Heart Animation Styles */
:root {
    --dim-x: 80px;
    --dim-y: 70px;
    --curve-height: 20px;
}

.support-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: transparent;
    min-height: unset;
    padding: 1rem;
}

#myPath path {
    transform: translate(0.125px, 0.033px);
}

.heart-wrap {
    cursor: pointer;
    perspective: 200px;
    filter: drop-shadow(0px 10px 10px rgba(174, 196, 238, 0.5));
}

.heart {
    position: relative;
    height: var(--dim-y);
    width: var(--dim-x);
    overflow: hidden;
    clip-path: url(#myPath);
    background-image: radial-gradient(#c9d8f500 10%, #afc4ee2e);
    transition: transform 0.3s ease;
}

.heart:hover {
    transform: scale(1.1);
}

.tank {
    position: absolute;
    bottom: 0;
    height: 0;
    width: var(--dim-x);
    background-color: rgb(103, 130, 191);
    z-index: 5;
    transition: height 0.5s ease-in-out;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: baseline;
    transition: opacity 0.5s ease-in-out;
}

.percentage-text span.percentage-number {
    transition: all 0.5s ease-in-out;
}

.percentage-text span:not(.percentage-number) {
    font-size: 0.75rem;
    vertical-align: super;
}

.curve {
    position: absolute;
    bottom: calc(-1 * var(--curve-height));
    width: var(--dim-x);
    height: var(--curve-height);
    right: 0;
    transition: bottom 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.curve use {
    animation: move 2s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.curve use:nth-child(1) {
    animation-duration: 3s;
}

.curve use:nth-child(2) {
    animation-duration: 4s;
}

.curve use:nth-child(3) {
    animation-duration: 2s;
}

@keyframes move {
    0% {
        transform: translateX(-90px);
    }
    100% {
        transform: translateX(85px);
    }
}

/* Journal Section Styles */
#journal-section {
    background: linear-gradient(180deg, #f9fafb 0%, #e5e7eb 100%);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.journal-toggle {
    margin-left: 10px;
    color: #123084;
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth rotation for toggle arrow */
}

#journal-entries .section-title {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

#journal-section p.text-gray-600 {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.journal-content > div:first-child {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    max-height: 1000px; /* Large value to accommodate content */
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease; /* Smooth transition for toggle */
}

.journal-content > div:first-child[style*="display: none"] {
    max-height: 0;
    opacity: 0;
    padding: 0 0.5rem;
}

.journal-content > div:first-child:not([style*="display: none"]) {
    opacity: 1;
}

#journal-entries {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

#journal-entries > div {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Matches JS flex layout */
    padding: 0.5rem; /* Matches p-2 (0.5rem) from JS */
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem; /* Matches rounded from JS */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Matches shadow-sm */
}

#journal-entries > div > div:first-child {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 0.5rem; /* Matches gap-2 from JS */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

#journal-entries span.text-sm {
    font-size: 0.875rem;
    font-weight: 500; /* Matches font-medium from JS */
    color: #1f2937 !important; /* Matches text-gray-800, !important for default state */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1; /* Title takes roughly equal space */
}

#journal-entries .text-gray-500 {
    font-size: 0.75rem;
    color: #6b7280; /* Matches text-gray-500 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 2; /* Content preview takes more space */
}

#journal-entries .text-gray-400 {
    font-size: 0.75rem;
    color: #9ca3af; /* Matches text-gray-400 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1; /* Tags and Date take equal space */
}

#journal-entries .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    text-align: center;
}

.edit-btn, .delete-btn, .cancel-btn {
    min-width: 4rem; /* Prevents smushing */
    color: #fff;
}

.edit-btn {
    background-color: #123084 !important; /* Blue by default, !important to enforce */
}

.edit-btn:hover {
    background-color: #4b61a1 !important; /* Matches JS hover color */
}

.delete-btn {
    background-color: #ff4444; /* Matches JS button color */
}

.delete-btn:hover {
    background-color: #ff6666; /* Matches JS hover color */
}

.cancel-btn {
    background-color: #666666; /* Gray for cancel */
}

.cancel-btn:hover {
    background-color: #888888; /* Matches JS hover color */
}

.edit-btn, .delete-btn, .cancel-btn {
    transition: background-color 0.2s;
}

/* Search and Filter Styles */
#journal-search,
#journal-filter {
    width: auto;
    padding: 0.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    background-color: #ffffff;
    margin-bottom: 0.5rem; /* Adds spacing below inputs */
}

/* Admin Section Styles */
#admin-section {
    background: linear-gradient(180deg, #f9fafb 0%, #e5e7eb 100%);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

#admin-section p.text-gray-600 {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-subsection {
    display: none;
}

.admin-subsection.active {
    display: block;
}

.admin-subsection h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.admin-subsection .bg-white {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-subsection .text-gray-800 {
    color: #1f2937;
    font-weight: 500;
}

.admin-subsection .text-gray-500 {
    color: #6b7280;
    font-size: 0.75rem;
}

.admin-subsection .text-blue-400 {
    color: #3b82f6;
    text-decoration: none;
}

.admin-subsection .text-blue-400:hover {
    text-decoration: underline;
}

.admin-subsection .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    text-align: center;
    min-width: 4rem;
    color: #ffffff;
}

.admin-subsection .btn.approve-btn {
    background-color: #123084;
}

.admin-subsection .btn.approve-btn:hover {
    background-color: #4b61a1;
}

.admin-subsection .btn.deny-btn {
    background-color: #ff4444;
}

.admin-subsection .btn.deny-btn:hover {
    background-color: #ff6666;
}

.admin-subsection table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.admin-subsection th,
.admin-subsection td {
    padding: 0.5rem;
    font-size: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-subsection th {
    background: #f3f4f6;
    font-weight: 600;
    color: #1f2937;
}

.admin-subsection td.text-gray-500 {
    color: #6b7280;
}

.admin-subsection .border-b {
  color: #1f2937;
}

.admin-tab-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #123084;
    border-radius: 0.25rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.admin-tab-link:hover {
    background-color: #4b61a1;
}

.admin-tab-link.tab-active {
    background-color: #4b61a1;
}