body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #1e3c72, #2a5298, #b1cbe6);
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

h1 {
    text-align: center;
    font-size: 60px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.subheading {
    text-align: center;
    font-size: 16px;
    color: #444;
    margin: 0 auto 20px auto;
    line-height: 1.4;
    max-width: 600px;
}

.input-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.input-section {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

textarea {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    font-size: 14px;
    color: #333;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border: 1px solid #aaa;
    background-color: #ffffff;
}

button {
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

button:hover {
    background-color: #45a049;
}

#resultSection {
    margin-top: 30px;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #00aa00;
    border-radius: 5px;
    display: none;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loader {
    text-align: center;
    margin-top: 20px;
}

pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Collapsible Tips Section */
.tips-section summary {
    cursor: pointer;
    background-color: #f0f8ff;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #bcd;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tips-section summary:hover {
    background-color: #e6f2ff;
}


.details-content {
    background-color: #f9fbfd;
    padding: 10px;
    border: 1px solid #bcd;
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto 10px auto;
}

.details-content ul {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.details-content li {
    margin-bottom: 6px;
}

.language-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

.language-row select,
.language-row input {
    max-width: 200px;
}

#languageInput {
    display: none;
}

#resumeFileInput {
    margin-bottom: -15px; /* Reduce bottom space */
}

.cover-letter-output {
    border: 1px solid #ccc;
    padding: 12px;
    min-height: 300px;
    white-space: pre-wrap;
    font-family: sans-serif;
    background-color: #fdfdfd;
    margin-top: 16px;
}
