:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #2563eb;
    --primary-color-rgb: 37, 99, 235;
    --secondary-color: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --hover-color: #1d4ed8;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --primary-color: #3b82f6;
    --primary-color-rgb: 59, 130, 246;
    --secondary-color: #1e293b;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --hover-color: #2563eb;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.5;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.2s;
}

#theme-toggle:hover,
#theme-toggle:focus {
    transform: scale(1.1);
    outline: none;
}

.theme-icon {
    font-size: 24px;
    color: var(--text-color);
}

/* Light mode */
.theme-icon.fa-sun {
    display: none;
}

.theme-icon.fa-moon {
    display: inline-block;
}

/* Dark mode */
[data-theme="dark"] .theme-icon.fa-moon {
    display: none;
}

[data-theme="dark"] .theme-icon.fa-sun {
    display: inline-block;
}

.fa-cloud-upload-alt {
    color: var(--primary-color);
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

h1 {
    color: var(--text-color);
    text-align: center;
    margin: 0 0 32px 0;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.upload-section,
.prompt-section,
.preset-section,
.temperature-section,
.model-select-section {
    margin-bottom: 24px;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.preset-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.4;
}

.preset-icon { opacity: 0.7; }
.checkmark { margin-left: auto; }

.preset-button.active {
    border: 2px solid var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.15);
}

.preset-button:hover,
.preset-button:focus {
    border-color: var(--primary-color);
    outline: none;
}

.preset-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 100%;
}

.preset-control-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.preset-control-btn:hover,
.preset-control-btn:focus {
    background-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

.factory-reset-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.factory-reset-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.factory-reset-button:hover,
.factory-reset-button:focus {
    background-color: #c82333;
    transform: scale(1.1);
    outline: none;
}

label {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Remove the :before pseudo-element reference */
  }

.file-input-wrapper {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drag-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s ease;
    background-color: var(--secondary-color);
    position: relative;
}

.drag-drop-area.dragover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.1);
    animation: pulse 1.5s infinite;
}

.drag-drop-text {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.or-text {
    display: block;
    margin: 8px 0;
    color: var(--text-color);
    opacity: 0.7;
}

.file-input-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
}

.file-input-button:hover,
.file-input-button:focus {
    background-color: #1557b0;
    outline: none;
}

#preview-image {
    max-width: 100%;
    max-height: 300px;
    margin: 12px auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: block;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    resize: vertical;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: 15px;
    line-height: 1.5;
    font-family: "JetBrains Mono", monospace;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
}

.temperature-section {
    margin-bottom: 32px;
    background: var(--bg-color);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.temperature-section label {
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.temperature-section input[type="range"] {
    width: 100%;
    margin: 8px 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 6px;
}

.temperature-section input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    border: none;
}

.temperature-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: -7px;
    cursor: pointer;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 1px var(--border-color);
    transition: all 0.2s ease;
}

.temperature-section input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#temperature-value {
    display: block;
    text-align: center;
    margin: 12px auto 8px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    width: fit-content;
}

#submit-btn, #followup-btn {
    display: flex;
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
}

#submit-btn:hover,
#submit-btn:focus {
    background-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.response-section {
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.response-section.visible {
    opacity: 1;
    max-height: 1000px;
    overflow-y: auto;
    margin-top: 24px;
}

#response-content {
    white-space: normal;
    word-wrap: break-word;
    padding: 12px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 12px;
    color: var(--text-color);
    transition: all 0.3s;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

#response-content strong,
#response-content b {
    font-weight: 700 !important;
    color: var(--text-color);
    background: linear-gradient(
        transparent 60%,
        rgba(var(--primary-color-rgb), 0.1) 40%
    );
    padding: 0 2px;
}

#response-content strong em,
#response-content em strong {
    font-style: normal;
    font-weight: 700 !important;
}

#response-content h1,
#response-content h2,
#response-content h3,
#response-content h4,
#response-content h5,
#response-content h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

#response-content p {
    margin: 1em 0;
}

#response-content code {
    background: var(--secondary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

#response-content pre {
    background: var(--secondary-color);
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

#response-content pre code {
    background: none;
    padding: 0;
    white-space: pre;
}

#response-content ul,
#response-content ol {
    padding-left: 1.5em;
    margin: 1em 0;
}

#response-content li {
    margin-bottom: 0.5em;
}

#response-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1em;
    margin: 1em 0;
    color: var(--text-color);
    opacity: 0.9;
}

.followup-section {
    margin-top: 24px;
}

#followup-prompt {
    width: 100%;
    height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s;
    font-family: "JetBrains Mono", monospace;
}

#followup-prompt:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

#followup-btn:hover,
#followup-btn:focus {
    background-color: #1557b0;
    outline: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    flex-shrink: 0;
}

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

/* Add styles for the loading state container */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* darkmode tweaks */
[data-theme="dark"] {
    --bg-color: #121212; /* darker bg */
    --secondary-color: #1e1e1e; /* more contrast */
    --text-color: #e0e0e0; /* easier on eyes */
    --primary-color: #4285f4; /* brighter accent */
}

/* disable buttons while loading */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .preset-buttons {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 20px auto;
        width: calc(100% - 40px);
        max-width: none;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .preset-controls {
        flex-direction: column;
    }

    .preset-control-btn {
        width: 100%;
        min-width: 0;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .preset-button {
        padding: 12px;
        font-size: 14px;
    }

    .drag-drop-area {
        padding: 20px;
    }

    .file-input-button {
        padding: 10px 16px;
    }

    .temperature-section {
        flex-direction: column;
        align-items: flex-start;
    }

    #temperature-value {
        margin-left: 0;
        margin-top: 8px;
    }

    /* Improve text input handling */
    textarea {
        font-size: 14px;
        padding: 12px;
        max-width: 100%;
        min-height: 100px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
    }

    #system-prompt,
    #followup-prompt {
        width: 100%;
        box-sizing: border-box;
    }

    /* Improve response content readability */
    #response-content {
        font-size: 14px;
        padding: 12px;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    #response-content pre {
        max-width: 100%;
        overflow-x: auto;
        padding: 12px;
    }

    #response-content code {
        word-wrap: break-word;
        white-space: pre-wrap;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        margin: 10px auto;
    }

    h1 {
        font-size: 1.5rem;
    }

    .preset-buttons {
        gap: 12px;
    }

    .drag-drop-area {
        padding: 16px;
    }

    .file-input-button {
        padding: 8px 14px;
        font-size: 14px;
    }

    #submit-btn,
    #followup-btn {
        padding: 10px;
        font-size: 14px;
        width: 100%;
        display: flex;
    }

    .factory-reset-button {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* Further improve text handling */
    textarea,
    #response-content {
        font-size: 13px;
        line-height: 1.4;
    }

    label {
        font-size: 14px;
        margin-bottom: 6px;
    }
}

/* Style the multiple image previews */
.preview-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-wrapper {
    position: relative;
    width: 150px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.image-wrapper:hover .preview-image {
    transform: scale(1.05);
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Improve accessibility focus states */
.copy-button:focus,
.remove-image-btn:focus,
.preset-button:focus,
.file-input-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile responsiveness for new elements */
@media (max-width: 480px) {
    .error-message {
        font-size: 13px;
        padding: 10px 14px;
    }

    .copy-button {
        width: 100%;
        padding: 10px;
    }

    .image-wrapper {
        width: calc(50% - 5px);
    }
}

/* Error message styling */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

[data-theme="dark"] .error-message {
    background-color: #7f1d1d;
    border-color: #ef4444;
    color: #fecaca;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Copy button styling */
.copy-button {
    display: block;
    margin: 12px auto 0;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: fit-content;
}

.copy-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-1px);
}

#system-prompt, #followup-prompt {
    font-family: "JetBrains Mono", monospace;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.temperature-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9em;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
}

.text-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.upload-section, .prompt-section, .temperature-section {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    background: var(--bg-color);
}

/* Custom UI/UX Enhancements */

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

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

.spinner.hidden {
  display: none;
}

.drag-drop-area {
  transition: background-color 0.3s, border 0.3s;
  border: 2px dashed var(--border-color);
  background-color: var(--secondary-color);
  padding: 20px;
}

.drag-drop-area.dragover {
  border-color: var(--primary-color);
  background-color: var(--bg-color);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px var(--shadow-color);
  border-radius: 8px;
}

button {
  transition: background-color 0.2s, transform 0.2s;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: var(--hover-color);
  color: #fff;
  transform: scale(1.02);
}

input, textarea {
  transition: border 0.2s;
}

input:focus, textarea:focus {
  border-color: var(--hover-color);
  outline: none;
}

/* Dark mode overrides for interactive elements */
[data-theme="dark"] .factory-reset-button {
  background-color: #a31215;
  color: #fff;
}

[data-theme="dark"] .file-input-button {
  background-color: var(--primary-color);
  color: #fff;
}

[data-theme="dark"] .preset-control-btn {
  background-color: var(--primary-color);
  color: #fff;
}

/* Additional Dark Mode Overrides for Consistent Text Color */
[data-theme="dark"] .drag-drop-text,
[data-theme="dark"] .or-text,
[data-theme="dark"] label,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] .preset-button {
  color: var(--text-color) !important;
}

/* Add gap between followup section and temperature section */
.followup-section + .temperature-section {
    margin-top: 24px;
}

/* Dark mode overrides for response switcher buttons */
[data-theme="dark"] #prev-response,
[data-theme="dark"] #next-response {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] #prev-response:hover,
[data-theme="dark"] #next-response:hover {
    background-color: var(--bg-color);
}

/* Styles for upload-info container */
.upload-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 12px;
    padding: 0 8px;
    width: 100%;
    color: #4b5563; /* dark grey for light mode */
}

.upload-info span {
    flex: 0 0 auto;
}

#image-count {
    text-align: left;
}

#total-size {
    text-align: right;
}

[data-theme="dark"] .upload-info {
    color: #9ca3af; /* a grey tone for dark mode */
}

/* History Modal Styles */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.history-modal.visible {
    display: flex;
}

.modal-content {
    background-color: var(--bg-color);
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.modal-header h2 {
    margin: 0;
}

#close-history {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    line-height: 1;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1300;
}

#close-history:hover {
    opacity: 0.8;
}

/* Global History Button styling adjustments */
.global-history-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1100;
    transition: background-color 0.2s, transform 0.2s;
}

.global-history-button:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

[data-theme="dark"] .global-history-button {
    background-color: var(--primary-color);
    color: #fff;
}

/* History Entry Styles */
.history-entry {
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    opacity: 0.7;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.entry-timestamp {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.entry-prompt {
    margin-bottom: 12px;
    padding: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.no-history {
    text-align: center;
    padding: 32px;
    color: var(--text-color);
    opacity: 0.7;
}

/* Ensure images in history don't overflow */
.entry-images img {
    max-width: 150px;
    height: auto;
    margin: 4px;
    border-radius: 4px;
}

/* Styles for the new Model Selection Section */
.model-select-section {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--bg-color);
}

.model-select-section h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-color);
  font-size: 1.1em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* Fix model buttons to display horizontally */
.model-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
}

/* Style individual model buttons */
.model-button.preset-button {
  flex: 1 0 calc(25% - 16px);
  min-width: 150px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
}

.preset-controls-header {
  margin-bottom: 20px;
}
