body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #ffffff;
    font-size: 2.5rem;
}

header p {
    font-size: 1rem;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.basic-details, .additional-details, .result-container {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
}

h2 {
    color: #ffffff;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
    box-sizing: border-box;
}

.stats-and-generate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.stats p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.stats span {
    font-weight: bold;
    color: #ffffff;
}

.generate-container {
    text-align: right;
}

#generate-btn {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

#generate-btn:hover {
    background-color: #45a049;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 1rem;
}

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

.result-container {
    margin-top: 0;
}

.scrollable-text {
    height: calc(100vh - 250px);
    overflow-y: auto;
    background-color: #121212;
    padding: 1rem;
    border-radius: 4px;
    white-space: pre-wrap;
    line-height: 1.6;
}

#download-pdf-btn {
    background-color: #008CBA;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

#download-pdf-btn:hover {
    background-color: #007B9A;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}