/* Import Google Fonts for Space Grotesk and Noto Sans */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Noto+Sans:wght@400;500;700&display=swap');

/* CSS Variables for a consistent and easily changeable dark theme */
:root {
    --bg-color: #000000; /* Changed to the darkest black */
    --primary-accent: #1313ec; /* Keep vibrant blue for accents */
    --primary-accent-hover: #0a0acf;
    --primary-accent-dark: #0f0fbf;
    --text-white: #FFFFFF;
    --text-light-grey: #b3b3c2; /* Slightly brightened for better contrast on pure black */
    --element-bg: #1c1c27; /* These dark greys will now have more contrast against pure black */
    --element-bg-hover: #2a2a38;
    --border-dark-grey: #3b3b54;
    --header-border: #282839;
    --error-color: #DC3545; /* Red for errors */
    --success-color: #28A745; /* Green for success */
    --shadow-dark: rgba(0, 0, 0, 0.3); /* Dark shadow */
    --shadow-light-on-dark: rgba(255, 255, 255, 0.05); /* Subtle highlight on dark elements */

    --border-radius-base: 12px;
    --border-radius-small: 8px;
    --padding-base: 25px;
    --gap-base: 25px;
}

/* Universal box-sizing for consistent layout */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif; /* Body text */
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-white);
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Ensure full page content flows vertically */
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrollbar on body from accidental overflow */
}

main {
    flex-grow: 1; /* Allow main content to take available space */
}

/* Base styles for all sections */
section {
    padding: 80px var(--padding-base); /* Generous vertical padding */
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%; /* Ensure sections take full available width up to max-width */
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 40px;
    text-align: left;
}

.section-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}
.section-text p {
    font-size: 1.1em;
    color: var(--text-light-grey);
}


/* --- Header (Top Navigation Bar) --- */
.main-header {
    position: sticky; /* Make header sticky */
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 15px var(--padding-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--header-border);
    z-index: 1000; /* Ensure it stays on top */
}

.main-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header .logo-icon {
    font-size: 1.8em;
    color: var(--text-white);
}

.main-header .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-white);
}

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

.main-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-accent);
}

.header-actions {
    display: flex;
    gap: 15px; /* Space between buttons */
    align-items: center;
}

.header-btn {
    padding: 8px 18px; /* Slightly smaller than main buttons */
    font-size: 0.95em;
    font-weight: 500;
    border-radius: 50px; /* Consistent rounded style */
}

#viewHistoryBtn {
    background-color: var(--element-bg);
    color: var(--text-white);
    border: 1px solid var(--border-dark-grey);
}
#viewHistoryBtn:hover {
    background-color: var(--element-bg-hover);
    border-color: var(--primary-accent);
}

/* --- Hero Section --- */
.hero-section {
    /* Example muted background image. Replace with your own. */
    background-image: url('https://images.unsplash.com/photo-1510931215160-c48c66e4a287?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    padding: 100px var(--padding-base);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Make it take most of the viewport height */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark-to-transparent gradient overlay - now using pure black rgba values */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 70%, var(--bg-color) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    text-align: center;
    background-color: #000000; /* Explicitly set hero content background to darkest black */
    padding: calc(var(--padding-base) * 1.5);
    border-radius: var(--border-radius-base);
    box-shadow: 0 10px 30px var(--shadow-dark);
    border: 1px solid var(--border-dark-grey);
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.4em;
    font-weight: 400;
    color: var(--text-light-grey);
    margin-bottom: 40px;
}

/* Prompt Input Area - includes main input, controls, preview, output */
.prompt-input-area {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field-group {
    display: flex;
    align-items: stretch; /* Stretch textarea to match button height */
    background-color: var(--element-bg);
    border: 1px solid var(--border-dark-grey);
    border-radius: var(--border-radius-base);
    overflow: hidden;
    margin-bottom: 15px;
}

textarea#userInput {
    flex-grow: 1;
    min-height: 80px; /* Reduced height for a sleeker desktop look */
    padding: 15px; /* Added full padding as the icon is removed */
    border: none;
    background-color: transparent;
    color: var(--text-white);
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.1em;
    resize: vertical;
    outline: none;
    /* Ensure no extra space, it fills the remaining space */
}

textarea#userInput::placeholder {
    color: var(--text-light-grey);
    opacity: 0.7;
}

/* Primary Button Styling */
.primary-btn {
    background-color: var(--primary-accent);
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(19, 19, 236, 0.3);
    align-self: center; /* Center the button in the container */
    border: none;
    border-radius: var(--border-radius-small); /* Default radius for standalone buttons */
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Spacing between icon and text */
}
.primary-btn:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(19, 19, 236, 0.4);
}
.primary-btn:active {
    transform: translateY(0); /* Reset on click */
    box-shadow: 0 2px 5px rgba(19, 19, 236, 0.3);
}
.primary-btn:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.generate-btn {
    padding: 10px 25px;
    font-size: 1.1em;
    /* The border-radius will now correctly apply 0 on the left where it meets textarea */
    border-radius: 0 var(--border-radius-base) var(--border-radius-base) 0;
    flex-shrink: 0; /* Crucial: Prevents the button from shrinking */
    /* Add a min-width to ensure the text always fits */
    min-width: fit-content; /* Adjusts to content, preventing text cutoff */
    box-shadow: none;
}

@media (max-width: 768px) {
    textarea#userInput {
        border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
        min-height: 100px; /* Slight increase for mobile readability */
        padding: 15px; /* Consistent padding */
        text-align: center;
        width: 100%;
    }
}

.generate-btn:hover {
    background-color: var(--primary-accent-hover);
    transform: none; /* No transform on hover for integrated button */
}
.generate-btn:active {
    background-color: var(--primary-accent-dark);
}


.additional-input-controls {
    display: flex;
    gap: 15px;
    justify-content: flex-start; /* Align to left */
    flex-wrap: wrap; /* Allow wrapping */
}

/* Secondary Action Button Styling */
button.action-btn {
    background-color: var(--element-bg);
    color: var(--text-white);
    border: 1px solid var(--border-dark-grey);
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

button.action-btn:hover {
    background-color: var(--element-bg-hover);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
}
button.action-btn:active {
    transform: translateY(0);
}
button.action-btn:disabled {
    background-color: #282839;
    border-color: #3b3b54;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

/* Style for voice input button when active */
button#voiceInputBtn.active-listening {
    background-color: var(--error-color); /* Use red to indicate active recording */
    border-color: var(--error-color);
}
button#voiceInputBtn.active-listening:hover {
    background-color: #e04a5c; /* Slightly lighter red */
    border-color: #e04a5c;
}


.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1; /* Allow wrapper to take available space */
    max-width: 100%; /* Prevent overflow */
}

.file-name-display {
    flex: 1 1 0; /* Allow it to grow, shrink, and have a base of 0 */
    min-width: 0; /* Essential for text-overflow: ellipsis to work without pushing parent */
    font-size: 0.9em;
    color: var(--text-light-grey);
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Show ellipsis if text overflows */
}

.file-info-text {
    color: var(--text-light-grey);
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    text-align: left;
}

.file-preview {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--element-bg);
    border: 1px dashed var(--border-dark-grey);
    border-radius: var(--border-radius-base);
    display: flex;
    flex-wrap: wrap; /* Allow multiple previews to wrap */
    gap: 15px;
    justify-content: flex-start;
    align-items: flex-start;
    max-height: 250px; /* Limit height for multiple previews */
    overflow-y: auto; /* Enable scrolling if too many files */
    display: none; /* Hidden by default */
}

.file-preview.active { /* Class to explicitly show it when files exist */
    display: flex;
}

.file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    max-width: 100px; /* Limit width for individual items */
    text-align: center;
    position: relative;
    padding: 5px;
    border: 1px solid var(--border-dark-grey);
    border-radius: var(--border-radius-small);
    background-color: #2a2a38;
}

.file-preview-item img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
}
.file-preview-item .file-name, .file-preview-item .file-size {
    font-size: 0.75em;
    color: var(--text-light-grey);
    word-break: break-all; /* Break long file names */
}
.file-preview-item .remove-file-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--error-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 10;
}
.file-preview-item .remove-file-btn:hover {
    background-color: #ff4d4d;
}

/* Loading Indicator Styling */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--primary-accent);
    font-size: 1.2em;
    font-weight: 600;
}

.spinner {
    border: 4px solid rgba(19, 19, 236, 0.3); /* Blue with transparency */
    border-top: 4px solid var(--primary-accent);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

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

/* Error Message Styling */
.error-message {
    color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.15); /* Light red background with transparency */
    border: 1px solid var(--error-color);
    padding: 12px;
    border-radius: var(--border-radius-small);
    margin: 25px 0;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message::before {
    content: '⚠️'; /* Warning emoji for visual emphasis */
    font-size: 1.2em;
    flex-shrink: 0; /* Prevent emoji from shrinking */
}

/* Output Section Styling */
.output-section {
    margin-top: 30px;
    text-align: left;
}
.output-section .section-title {
    display: block;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 15px;
}
textarea#outputPrompt {
    background-color: var(--element-bg-hover); /* Slightly darker for output */
    border: 1px solid var(--primary-accent); /* Blue border for generated content */
    border-radius: var(--border-radius-base);
    color: var(--text-white);
    min-height: 180px;
    width: 100%;
    padding: 15px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.05em;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.output-section button#copyPromptBtn {
    margin-top: 15px;
    float: right; /* Align to right */
    background-color: var(--element-bg);
    border-color: var(--border-dark-grey);
    color: var(--text-white);
}
.output-section button#copyPromptBtn:hover {
    border-color: var(--primary-accent);
}

/* --- Example Prompts Section --- */
.section-cards {
    padding-top: var(--padding-base); /* Adjust padding */
    padding-bottom: var(--padding-base);
}
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.example-card {
    background-color: var(--element-bg);
    border: 1px solid var(--border-dark-grey);
    border-radius: var(--border-radius-base);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.example-card:hover {
    background-color: var(--element-bg-hover);
    border-color: var(--primary-accent);
}

.example-card .icon {
    font-size: 1.8em;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.example-card p {
    font-weight: 500;
    color: var(--text-white);
    margin: 0;
    font-size: 1.1em;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--bg-color);
    padding: 40px var(--padding-base);
    border-top: 1px solid var(--header-border);
    text-align: center;
    margin-top: auto; /* Push footer to the bottom */
}

.footer-nav ul {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-light-grey);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-accent);
}

.copyright {
    color: var(--text-light-grey);
    font-size: 0.9em;
    margin: 0;
}

/* --- Modal Styling for History --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--element-bg);
    margin: auto;
    padding: var(--padding-base);
    border: 1px solid var(--border-dark-grey);
    border-radius: var(--border-radius-base);
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-dark);
    text-align: left;
    max-height: 90vh; /* Limit height */
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-white);
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 25px;
}

.close-button {
    color: var(--text-light-grey);
    font-size: 2em;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-white);
    text-decoration: none;
    cursor: pointer;
}

.history-list {
    flex-grow: 1; /* Allow list to take available space */
    overflow-y: auto; /* Scrollable if content exceeds height */
    max-height: calc(90vh - 200px); /* Adjust based on other modal content */
    margin-bottom: 20px;
    padding-right: 10px; /* For scrollbar */
}
/* Scrollbar styling for dark theme */
.history-list::-webkit-scrollbar {
    width: 8px;
}
.history-list::-webkit-scrollbar-track {
    background: #282839;
    border-radius: 4px;
}
.history-list::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 4px;
}
.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-accent-hover);
}


.history-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-dark-grey);
    border-radius: var(--border-radius-small);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.history-item:hover {
    background-color: #1a1a20;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: var(--text-light-grey);
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.history-item-header .timestamp {
    font-weight: 500;
}

.history-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item-content p {
    margin: 0;
    font-size: 0.95em;
    color: var(--text-white);
}

.history-item-content strong {
    color: var(--primary-accent);
}

.history-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end; /* Align buttons to the right */
    flex-wrap: wrap;
}

.history-item-actions button {
    padding: 8px 15px;
    font-size: 0.85em;
    border-radius: var(--border-radius-small);
    font-weight: 500;
}

.history-item-actions .load-btn {
    background-color: var(--primary-accent);
    color: var(--text-white);
}
.history-item-actions .load-btn:hover {
    background-color: var(--primary-accent-hover);
}

.history-item-actions .delete-btn {
    background-color: var(--error-color);
    color: var(--text-white);
}
.history-item-actions .delete-btn:hover {
    background-color: #e04a5c;
}

.modal-actions {
    margin-top: 20px;
    text-align: right;
}
.modal-actions .action-btn {
    background-color: var(--element-bg-hover);
    color: var(--text-white);
    border: 1px solid var(--border-dark-grey);
}
.modal-actions .action-btn:hover {
    border-color: var(--primary-accent);
}

.no-history-message {
    color: var(--text-light-grey);
    text-align: center;
    margin-top: 30px;
    font-style: italic;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .main-header .main-nav {
        display: none; /* Hide main nav on smaller screens */
    }
    .main-header {
        flex-direction: row; /* Keep logo and actions on same row */
        justify-content: space-between;
        align-items: center;
    }
    .main-header .header-actions {
        order: 3; /* Push actions to the right */
    }

    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content h2 {
        font-size: 1.2em;
    }
    .section-heading {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-wrap: wrap; /* Allow header elements to wrap */
        justify-content: center;
        gap: 15px;
    }
    .main-header .logo, .main-header .header-actions {
        width: 100%;
        justify-content: center;
        display: flex;
    }
    .main-header .header-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-btn {
        flex-grow: 1;
        max-width: 180px;
    }
    
    .hero-section {
        padding: 80px var(--padding-base);
    }
    .hero-content {
        padding: var(--padding-base);
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content h2 {
        font-size: 1.1em;
    }
    .input-field-group {
        flex-direction: column;
        border-radius: var(--border-radius-base);
    }
    .input-field-group .icon.search-icon {
        display: none; /* Hide icon on small screens for vertical stack */
    }
    textarea#userInput {
        border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
        min-height: 100px;
        padding: 15px;
        text-align: center;
        width: 100%; /* Ensure it takes full width when stacked */
    }
    .generate-btn {
        width: 100%;
        border-radius: 0 0 var(--border-radius-base) var(--border-radius-base);
        padding: 15px 25px;
    }
    .additional-input-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .file-upload-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%; /* Ensure wrapper takes full width */
    }
    .file-upload-wrapper button {
        width: 100%;
    }
    .file-name-display {
        max-width: 100%; /* Ensure it doesn't cause overflow */
        text-align: left;
    }
    button.action-btn {
        width: 100%; /* Make action buttons full width when stacked */
    }
    .output-section button#copyPromptBtn {
        float: none;
        width: 100%;
    }
    .section-heading {
        font-size: 1.8em;
    }
    .section-text p {
        font-size: 1em;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    /* Modal responsiveness */
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .modal-title {
        font-size: 1.5em;
    }
    .close-button {
        font-size: 1.8em;
        top: 10px;
        right: 15px;
    }
    .history-item {
        padding: 12px;
    }
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .history-item-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9em;
    }
    .main-header {
        padding: 10px 15px;
    }
    .main-header .logo-text {
        font-size: 1.4em;
    }
    .header-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .hero-section {
        padding: 60px 15px;
    }
    .hero-content {
        padding: 20px;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content h2 {
        font-size: 1em;
        margin-bottom: 25px;
    }
    textarea#userInput {
        min-height: 80px;
        font-size: 1em;
    }
    .generate-btn {
        font-size: 1em;
        padding: 12px 20px;
    }
    .file-info-text {
        font-size: 0.8em;
    }
    .file-preview {
        max-height: 200px;
        gap: 10px;
        padding: 10px;
    }
    .file-preview-item {
        max-width: 80px;
    }
    .file-preview-item img {
        max-width: 60px;
        max-height: 60px;
    }
    .loading span, .error-message {
        font-size: 0.9em;
    }
    .spinner {
        width: 25px;
        height: 25px;
    }
    textarea#outputPrompt {
        min-height: 150px;
        font-size: 0.95em;
    }
    .section-heading {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
    .example-grid {
        gap: 15px;
    }
    .example-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    .example-card .icon {
        font-size: 1.5em;
    }
    .example-card p {
        font-size: 0.95em;
    }
    .footer-nav a {
        font-size: 0.85em;
    }
    .copyright {
        font-size: 0.8em;
    }
}