/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    overflow-x: hidden;
}

/* Navigation Bar */
header {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: top 0.3s ease-in-out;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* Aligns items to the left & right */
    align-items: center;
    padding: 10px 20px;
    background-color: #0d0d0d; /* Adjust based on theme */
    color: white;
    
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
}

.logo img {
    width: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links ul li {
    display: inline-block;
}

.nav-links ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links ul li a:hover, 
.nav-links ul li a.active {
    color: #00bcd4;
}

/* Main Content */
main {
    padding: 100px 5%;
    text-align: center;
}

/* Sections */
section {
    margin-bottom: 40px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* Labels & Select */
label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

select, textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #00bcd4;
    background: #0d0d0d;
    color: white;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s;
}

select:hover, textarea:hover {
    border-color: white;
}

/* Buttons */
button {
    background: #00bcd4;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    margin-top: 20px;
}

button:hover {
    transform: scale(1.1);
    background: #0097a7;
}

/* Generated Letter & Text Areas */
textarea {
    width: 100%;
    max-width: 700px;
    height: 150px;
    resize: vertical;
    padding: 10px;
}

/* Final Letter Section */
.final-letter-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.action-btn {
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #0d0d0d;
    color: white;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links ul {
        display: none;
        flex-direction: column;
        background: rgba(13, 13, 13, 0.9);
        position: absolute;
        top: 60px;
        right: 5%;
        width: 200px;
        border-radius: 10px;
        text-align: center;
    }

    .nav-links ul li {
        padding: 10px;
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active + .nav-links ul {
        display: flex;
    }

    textarea {
        width: 90%;
    }
}
#inputContainer {
    margin-top: 20px;
}

#inputContainer label {
    display: block;
    margin-top: 10px;
}

#inputContainer input {
    width: calc(100% - 20px);
    padding: 8px;
    margin-bottom: 10px;
    color: orange;
}
/* Back Button */
.back-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
    position: absolute;
    right: 20px; /* Push to the right corner */
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
}

.back-button:hover {
    text-decoration: underline;
}

.back-button span {
    margin-left: 8px;
    font-size: 18px;
}
#loadingIndicator {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800; /* Highlight color */
    margin-left: 10px;
    display: inline-block;
    animation: dots 1s infinite steps(4);
}

/* Hide loading text initially */
.hidden {
    display: none;
}

/* Animation for the dots */
@keyframes dots {
    0% { content: "Loading "; }
    25% { content: "Loading ·"; }
    50% { content: "Loading ··"; }
    75% { content: "Loading ···"; }
}
.hidden {
    display: none;
}

#loadingIndicator {
    font-size: 16px;
    font-weight: bold;
    color: #007bff; /* Make it visually noticeable */
    display: none; /* Hidden by default */
    margin-top: 10px;
}
