:root {
    --purple-gradient: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    --purple-500: #8B5CF6;
    --purple-600: #7C3AED;
    --purple-700: #6D28D9;
    --surface-white: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --purple-50: #F5F3FF;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #eee;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 360px;
    overflow-x: hidden;
    align-items: center;
}

.hero {
    position: relative;
    background: var(--purple-gradient);
    color: white;
    padding: 1.5rem 1rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-logo {
    width: 64px;  /* Adjust size as needed */
    height: 64px;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .hero-logo {
        width: 48px;  /* Smaller on mobile */
        height: 48px;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    box-sizing: border-box;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
}

.option {
    padding: 2px 4px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    position: relative;
}

.option:hover {
    background-color: var(--hover-color);
}

.option.selected {
    background-color: var(--purple-500);
    color: white;
    border-color: var(--purple-500);
}

.section-title {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    padding: 0 1rem;
}

.section-icon {
    width: 24px;
    height: 24px;
    padding: 6px;
    background-color: var(--purple-50);
    border-radius: 50%;
    color: var(--purple-500);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.section-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.section-title h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--purple-500);
    /*margin: 0;*/
    line-height: 1.2;
}

label {
    display: block;
/* margin: 1rem 2rem 0.5rem;
/*    font-weight: 500;
    font-size: 1.125rem;
/*    color: #111827;*/
}

input[type="text"], select, textarea, .combobox {
    width: calc(100% - 4rem);  /* Account for padding on both sides */
    margin: 0.5rem 2rem;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    background-color: white;
}

input[type="text"]:focus, select:focus, textarea:focus, .combobox:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
    font-size: 1.1rem;
    line-height: 1.8;
    background-color: white;
}

/* Style for placeholder text */
input::placeholder,
textarea::placeholder,
.combobox::placeholder {
    color: #9CA3AF;
    opacity: 1;
    font-size: 1.125rem;
}

button {
    /*background: var(--purple-gradient);*/
    color: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--purple-gradient);
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

button.secondary {
    background: white;
    border: 2px solid #E5E7EB;
    color: var(--text-primary);
}

button.secondary:hover {
    border-color: var(--purple-500);
    color: var(--purple-600);
}

.hidden {
    display: none;
}

#promptInstructions {
    background-color: #F5F3FF;
    border: 2px solid var(--purple-500);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

#promptInstructions h3 {
    color: var(--purple-700);
    margin-top: 0;
    font-size: 1.25rem;
}

#copyPromptButton {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    /*padding: 8px 16px;*/
    border: 0px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-option img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--surface-container-high);
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.radio-option.selected img {
    background-color: var(--primary-container);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.radio-option:hover img {
    transform: scale(1.1);
}

.radio-option.selected {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
    border-color: var(--primary-container);
}

.radio-label {
    font-weight: 500;
}

.combobox-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.combobox {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
}

.combobox-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.combobox-group {
    padding: 0.5rem;
    font-weight: bold;
    color: #6B7280;
    background: #F9FAFB;
}

.combobox-option {
    padding: 0.75rem;
    cursor: pointer;
}

.combobox-option:hover,
.combobox-option.selected {
    background: var(--purple-50);
}

.hidden {
    display: none;
}

/* Color Picker Styles */
.color-picker-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0.5rem 2rem 1rem 2rem;
    width: calc(100% - 4rem);
}

.color-picker-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.color-preview {
    height: 3rem;
    border-radius: 0.75rem;
    border: 2px solid #E5E7EB;
    transition: border-color 0.2s ease;
}

.color-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.color-input:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.color-button {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 0.75rem;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.color-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.color-button.selected {
    border-color: var(--purple-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.color-button.selected::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.ai-icon {
    display: none;
    position: absolute;
    width: 60px;
    height: 60px;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
    stroke: currentColor;
    opacity: 0.1;
    pointer-events: none;
}

/* Add consistent padding to form elements */
.card input[type="text"],
.card input[type="email"],
.card select,
.card textarea,
.card .combobox-wrapper,
.card .options {
    margin: 0.5rem 2rem;
    width: calc(100% - 4rem); /* Full width minus left and right padding */
}

.card label {
    margin-left: 2rem;
    display: block;
    font-weight: 400;
    color: #111;
}

.card h3 {
    margin-left: 2rem;
    font-size: 1rem;
    color: var(--purple-500);
    font-weight: 400;
}

.section-title {
    margin: -2rem -2rem 2rem -2rem; /* Negative margin to extend to edges */
    padding: 1rem 2rem;
    /* ... rest of section-title styles ... */
}

.color-picker-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0.5rem 2rem 1rem 2rem;
    width: calc(100% - 4rem);
}

.color-picker-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.color-wheel {
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem auto;
    background: conic-gradient(
        from 0deg,
        hsl(0, 100%, 50%),
        hsl(60, 100%, 50%),
        hsl(120, 100%, 50%),
        hsl(180, 100%, 50%),
        hsl(240, 100%, 50%),
        hsl(300, 100%, 50%),
        hsl(360, 100%, 50%)
    );
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.color-selector {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.color-shades {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.color-shade {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-shade:hover {
    transform: scale(1.1);
}

.color-preview {
    height: 60px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.color-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.action-button.confirm {
    color: var(--purple-600);
}

.action-button.cancel {
    color: #666;
}

.action-button svg {
    width: 20px;
    height: 20px;
}

/* Add these styles */
.platform-select {
    width: calc(100% - 4rem);
    margin: 0.5rem 2rem;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.platform-select:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.platform-select option {
    padding: 0.5rem;
}

/* Add these new styles */
.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    margin: 0.35rem 0;
    padding: 0 0.5rem;
}

.platform-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    width: calc(12.5% - 0.75rem);
    min-width: 70px;
    max-width: 84px;
    font-size: 0.6rem;
    color: #374151;

}

.platform-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.platform-button:hover {
    border-color: var(--purple-500);
    background: var(--purple-50);
}

.platform-button.selected {
    border-color: var(--purple-500);
    background: var(--purple-500);
    color: white;
}

/* Add image support indicator */
.platform-button[data-features*="image"]::before,
.platform-button[data-features*="image"]::after {
    display: none !important; /* Clear all existing pseudo-elements */
}

/* Add our new single icon */
.platform-button[data-features*="image"]::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    width: 22px !important;
    height: 22px !important;
    background-color: var(--purple-500) !important;
    /*border: 1px solid white !important;*/
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='8' cy='8' r='2' fill='white'/%3E%3Cpolygon points='4 20 20 20 12 12' fill='white'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    z-index: 100 !important;
}

/* Ensure parent has relative positioning */
.platform-button {
    position: relative !important;
}

/* Add these styles */
.radio-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.radio-option.disabled input {
    cursor: not-allowed;
}

.platform-button {
    /* ... existing styles ... */
    position: relative;
}

.platform-button[data-features*="image"]::after {
    content: "🎨";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 16px;
    background: var(--purple-500);
    color: white;
    padding: 4px;
    border-radius: 50%;
}

/* Update your existing platform button styles */
.platform-button.selected {
    border-color: var(--purple-500);
    background: var(--purple-500);
    color: white;
}

.platform-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.option {
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: var(--purple-50);
}

.option.selected {
    background-color: var(--purple-500);
    color: white;
}

/* Updated styles for the combined section */
.platform-section,
.output-type-section {
    margin: 1.5rem 0;
}

.platform-section h3,
.output-type-section h3 {
    display: none;
    font-size: 1rem;
    color: var(--purple-500);
    font-weight: 400;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin: 0.35rem 0;
    padding: 0 0.5rem;
}

.platform-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    width: calc(12.5% - 0.5rem);
    min-width: 70px;
    max-width: 84px;
}

.platform-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.platform-button:hover {
    border-color: var(--purple-500);
    background: var(--purple-50);
}

.platform-button.selected {
    border-color: var(--purple-500);
    background: var(--purple-500);
    color: white;
}

.output-type-section .options {
    display: flex;
    gap: 2rem;
    padding: 0 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-circle {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.radio-option input:checked + .radio-circle {
    border-color: var(--purple-500);
    background: var(--purple-500);
}

.radio-option input:checked + .radio-circle::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
}

.radio-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hide the default radio input */
.radio-option input[type="radio"] {
    display: none;
}

/* Divider between sections */
.platform-section::after {
    content: '';
    display: block;
    height: 1px;
    background: #E5E7EB;
    margin: 1.5rem 0.5rem;
}

/* Update the generate button styles */
#generate {
    background-color: var(--purple-600);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    display: block;
}

#generate:hover {
    background-color: var(--purple-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#generate:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Add these styles */
.prompt-instructions {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #F8FAFC;
    border-radius: 8px;
    border: 2px solid var(--purple-500);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--purple-600);
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.prompt-textarea-container {
    margin-bottom: 1.5rem;
    padding: 0;
    width: 100%;
}

#generatedPrompt {
    width: 100%;
    box-sizing: border-box;
    margin: 0.5rem 0;
    padding: 1rem;
    min-height: 200px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
}

/* Optional: Style for focus state */
#generatedPrompt:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.instructions-divider {
    height: 1px;
    background-color: #E2E8F0;
    margin: 1.5rem 0;
}

.instructions-content h3 {
    color: var(--purple-600);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.instruction-steps {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: #4B5563;
}

.instruction-steps li {
    margin-bottom: 0.5rem;
}

.instruction-steps a {
    color: var(--purple-600);
    text-decoration: none;
    font-weight: 500;
}

.instruction-steps a:hover {
    text-decoration: underline;
}

.action-buttons {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.copy-button,
.visit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.copy-button {
    background-color: white;
    border: 1px solid #E5E7EB;
    color: #374151;
}

.visit-button {
    background-color: var(--purple-600);
    border: none;
    color: white;
    margin-top: 20px;
}

.copy-button:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.visit-button:hover {
    background-color: var(--purple-700);
}

.hidden {
    display: none;
}

.color-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;

}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-picker-group label {
/*    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;*/
}

.color-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 30px;
}

.color-picker {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: 2px solid var(--surface-container-high);
    border-radius: 10px;
}

.color-value-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--surface-container-low);
    border: 1px solid var(--surface-container-high);
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.color-value-display:hover {
    border-color: var(--primary-container);
    background-color: var(--surface-container-high);
}

.color-dropper-icon {
    color: var(--text-secondary);
}

/* Add these new styles while keeping all existing CSS */
.text-option {
    padding: 0.35rem 0.75rem;  /* Reduced padding */
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.text-option:hover {
    border-color: var(--purple-primary);
    background: var(--purple-light);
}

.text-option.selected {
    background: var(--purple-primary);
    color: white;
    border-color: var(--purple-primary);
}

/* Add these new styles while keeping all existing CSS */
.text-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}
.option-group {
    padding-left: 1.25rem;
}
.text-type-options .option-button {
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.text-type-options .option-button:hover {
    border-color: var(--purple-primary);
    background: var(--purple-light);
}

.text-type-options .option-button.selected {
    background: var(--purple-primary);
    color: white;
    border-color: var(--purple-primary);
}

.pill-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.pill-button {
    padding: 0.4rem 0.8rem;
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-button:hover {
    border-color: var(--purple-primary);
    background: var(--purple-light);
}

.pill-button.selected {
    background: var(--purple-primary);
    color: white;
    border-color: var(--purple-primary);
}

/* More compact styling for option buttons */
.options .option {
    padding: 2px 4px;  /* Reduced from typical 0.5rem 1rem */
    margin: 0.15rem;          /* Reduced from typical 0.25rem or 0.5rem */
    font-size: 11px;      /* Slightly smaller font size */
    border: 1px solid #E5E7EB;
    border-radius: 4px;       /* Slightly reduced border radius */
    white-space: nowrap;
}

/* Adjust the container spacing */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;            /* Reduced from typical 0.5rem */
    margin: 0.25rem 2rem;    /* Reduced top/bottom margin */
    width: calc(100% - 4rem);
}

/* If you have specific spacing for text type options */
#textType.options,
#targetAudience.options,
#tone.options {
    margin-bottom: 1rem;     /* Space between sections */
}

/* Container for output type options */
.output-type-options {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 2rem;
    align-items: center;
}

/* Individual radio option */
.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Radio button circle */
.radio-circle {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Selected radio state */
.radio-circle.selected {
    border-color: var(--purple-500);
    background-color: var(--purple-500);
}

/* Radio label */
.radio-label {
    font-weight: 500;
    white-space: nowrap;
}

.politeness-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.toggle-label-group {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    line-height: 1.2;
    color: var(--text-secondary);
    width: 200px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--purple-500);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.smiley-icon {
    color: var(--purple-500);
}

.smiley-icon.hidden {
    display: none;
}

.output-type-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 90% !important;
    padding-right: 16px;
    padding-bottom: 0px;
    padding-top: 0px;
}

.output-type-options {
    display: flex;
    flex-direction: row !important;
    gap: 24px;
    flex-wrap: nowrap;
}

.politeness-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0;
    margin-left: auto;
    justify-self: start;
}

/* Media query for smaller screens but not mobile */
@media (max-width: 1024px) {
    .output-type-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .output-type-options {
        flex-direction: row !important;
        width: 100%;
    }

    .politeness-toggle {
        margin-left: 0;
        padding-left: 16px;
    }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .output-type-options {
        flex-direction: row !important;
        gap: 16px;
    }

    .politeness-toggle {
        padding-left: 0;
        padding-right: 0;
    }
}

.output-type-section {
    margin-bottom: 1rem;
}

.output-type-section h3 {
    margin-bottom: 0.5rem;
}

.output-type-container {
    background: var(--background-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 1rem;
}

.politeness-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 1rem;
    justify-self: start;
    white-space: nowrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin: 0 8px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E2E8F0;
    border: 1px solid #CBD5E1;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 1px;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--purple-500);
    border-color: var(--purple-600);
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .output-type-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .politeness-toggle {
        justify-self: start;
        padding-right: 0;
    }
}

/* Generated prompt specific styling */
#generatedPrompt {
    font-size:1rem !important;
    font-weight: 300;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 1.25rem;
    border: 1px solid var(--purple-500);
    background-color: var(--purple-light);
}

/* Ensure white background on autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
}

.expandable-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin: 0;
    user-select: none;
}

.expandable-header h2 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chevron-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--purple-500);
}

.expandable-header.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.expandable-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
    max-height: 2000px; /* Adjust based on your content */
}

.expandable-content.collapsed {
    max-height: 0;
    padding: 0;
    margin: 0;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.option:nth-child(n+11):not(.more-button) {
    display: none;
}

.options.expanded .option {
    display: flex !important;
}

.option.more-button {
    background-color: var(--purple-50);
    color: var(--purple-600);
    border-color: var(--purple-200);
    cursor: pointer;
    grid-column: auto;
}

.option.more-button:hover {
    background-color: var(--purple-100);
}

.options.expanded .option.more-button.less {
    grid-column: 1 / -1;
    width: 80px;
    justify-self: start;
}

/* Optional: Style the tooltip */
.option[title] {
    cursor: help;
}

/* Update the options container */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
}

/* Hide options after the first 10 by default */
.options .option:nth-child(n+11):not(.more-button) {
    display: none;
}

/* Show all options when expanded */
.options.expanded .option {
    display: flex !important;
}

/* Style for the more button */
.more-button {
    background-color: var(--purple-50);
    color: var(--purple-600);
    border: 1px solid var(--purple-200);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.more-button:hover {
    background-color: var(--purple-100);
}

/* Position the "Show Less" button */
.options.expanded .more-button.less {
    margin-left: auto;
}

/* Media query for browser sidebars and small screens */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .card {
        padding: 1.25rem 0.75rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero {
        padding: 1.5rem 0.75rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Adjust form elements padding */
    .card input[type="text"],
    .card input[type="email"],
    .card select,
    .card textarea,
    .card .combobox-wrapper,
    .card .options,
    #generatedPrompt {
        width: calc(100% - 1.5rem); /* Adjusted width calculation */
        margin: 0.5rem 0.75rem 1rem 0.75rem;
        box-sizing: border-box; /* Ensure padding is included in width */
    }

    /* Adjust labels and headings */
    .card label,
    .card h3 {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    /* Ensure options container doesn't overflow */
    .options {
        max-width: calc(100% - 1.5rem);
        overflow-x: hidden;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.25rem;
    }
    
    .card {
        padding: 1rem 0.5rem 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero {
        padding: 1rem 0.5rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Adjust form elements padding */
    .card input[type="text"],
    .card input[type="email"],
    .card select,
    .card textarea,
    .card .combobox-wrapper,
    .card .options,
    #generatedPrompt {
        width: calc(100% - 1rem);
        margin: 0.5rem 0.5rem 1rem 0.5rem;
    }

    /* Adjust labels and headings */
    .card label,
    .card h3 {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

/* Card header styles */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--purple-500);
}

/* Small chevron in header */
.card-header .chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--purple-500);
}

.card-header.collapsed .chevron {
    transform: rotate(-90deg);
}

/* Content area */
.card-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}

.card-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Define Content Specifications chevron */
.define-content-chevron {
    width: 24px;
    height: 24px;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--purple-500);
}

.define-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
    color: var(--purple-500);
}

.define-content-header.collapsed .define-content-chevron {
    transform: rotate(-90deg);
}

/* Content area */
.define-content-section {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}

.define-content-section.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

/* Add these new styles */
.generate-prompt-container {
    background: #eee;
    padding: 1rem;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.generate-prompt-container .card {
    margin-bottom: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem 1rem 1rem;    
}

/* Keep the mobile styles */
@media (max-width: 768px) {
    /* Hide only the instruction labels/text */
    .prompt-instructions h3,
    .prompt-instructions .instruction-steps {
        display: none;
    }

    /* Hide the divider */
    .instructions-divider {
        display: none;
    }

    /* Keep the buttons visible but adjust spacing */
    .action-buttons {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Adjust spacing for mobile */
    #generatedPromptContainer:not(.hidden) {
        margin-top: 0.5rem;
    }

    #generatedPrompt {
        margin: 0.5rem 0;

    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: var(--purple-500);
    font-size: 1.5rem;
    font-weight: 500;
}

.modal-body h3 {
    color: var(--purple-500);
    font-size: 1.2rem;
    font-weight: 500;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-modal:hover {
    background-color: var(--purple-50);
    color: var(--purple-500);
}

.modal-body {
    padding-right: 4px;
}

/* Ensure the textarea container has a max height */
.prompt-textarea-container {
    max-height: 40vh;
    overflow-y: auto;
    
}

.generate-button {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    background-color: var(--purple-600);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: calc(100% - 40px); /* Adjust width to account for padding */
    max-width: 300px;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.generate-button:hover {
    background-color: var(--purple-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Add padding to the bottom of the cards to prevent button overlap */
#textGeneration,
#imageGeneration {
    padding-bottom: 80px; /* Space for the sticky button */
}

/* Ensure the button has a solid background */
.generate-button::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

/* Add/update media queries */
@media screen and (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        padding: 0 60px;
    }
}

/* Update header section styles */
#ai-prompt-generator .header-section {
    position: relative;
    background: var(--purple-gradient);
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0; /* Remove rounded corners */
}

/* If there's a parent container that might be adding border radius, ensure it's also removed */
#ai-prompt-generator {
    border-radius: 0;
}
