
:root {
    --primary-color: #1a73e8;
    --accent-color: #87CEEB;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --on-surface-color: #e0e0e0;
    --on-primary-color: #ffffff;
    --error-color: #cf6679;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    line-height: 1.6;
    padding: 0;
}

.container {
    width: 100%;
    margin: 0;
    background-color: var(--surface-color);
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Landing Page Styling */
.hero-title {
    background: linear-gradient(135deg, #00d4ff, #1e90ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(30, 144, 255, 0.3), 0 0 60px rgba(138, 43, 226, 0.2);
}



.title-box {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    margin: 32px 0;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.key-features {
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8), 0 0 10px rgba(0, 255, 255, 0.6), 0 0 15px rgba(0, 255, 255, 0.4);
}

.how-it-works {
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.8), 0 0 10px rgba(138, 43, 226, 0.6), 0 0 15px rgba(138, 43, 226, 0.4);
}

.who-can-use {
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.8), 0 0 10px rgba(255, 165, 0, 0.6), 0 0 15px rgba(255, 165, 0, 0.4);
}



@media (max-width: 768px) {
    .container {
        padding: 1rem 1.5rem;
        border-radius: 12px;
    }

    h1 {
        font-size: 2rem;
    }

    .logo {
        width: 60px;
        margin: 10px auto;
    }

    .subtitle {
        margin-bottom: 2rem;
    }

    .form-section {
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-section {
        margin-top: 1.5rem;
    }

    .results-section {
        margin-top: 2rem;
    }

    .preview-box {
        height: 300px;
    }

    .title-box {
        padding: 8px 16px;
    }
}

.logo {
    display: block;
    margin: 10px auto 10px;
    width: 60px;
    height: auto;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-top: 10px;
    margin-bottom: 3rem;
}

.form-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #444;
}

.form-section h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #c0c0c0;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background-color: #2a2a2e;
    border: 1px solid #555;
    border-radius: 8px;
    color: var(--on-surface-color);
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab-button, .tab-button-result {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: transparent;
    color: #c0c0c0;
    cursor: pointer;
}

.tab-button.active, .tab-button-result.active {
    background-color: var(--accent-color);
    color: #121212;
    border-color: var(--accent-color);
}

.tab-content, .tab-content-result {
    display: none;
}

.tab-content.active, .tab-content-result.active {
    display: block;
}

input[type="file"] {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #2a2a2e;
    color: #c0c0c0;
    cursor: pointer;
}

.file-label:hover {
    background-color: #3a3a3e;
}

#file-name {
    margin-left: 1rem;
    color: #b0b0b0;
    font-style: italic;
}

.action-section {
    text-align: center;
    margin-top: 2rem;
}

#generateBtn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-color);
    color: var(--on-primary-color);
    cursor: pointer;
}

#generateBtn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#generateBtn:hover:not(:disabled) {
    background-color: #1b65c7;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto 0;
}

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

.error-message {
    color: var(--error-color);
    background: rgba(207, 102, 121, 0.1);
    border: 1px solid var(--error-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.success-message {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.results-section {
    margin-top: 3rem;
}

.preview-box {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    height: 400px;
    overflow-y: auto;
    text-align: left;
    color: #111111;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Force all text within the preview to be dark for readability */
.preview-box * {
    color: #111111 !important;
}

/* Make headers a professional blue on the new light background */
.preview-box h1, .preview-box h2, .preview-box h3, .preview-box h4 {
    color: #005a9c !important;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}


.download-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    cursor: pointer;
}

.download-btn:hover {
    background-color: var(--accent-color);
    color: #121212;
}

