/* VEO JSON Prompt Generator Styles */

:root {
    --veo-bg: #0b0c10;
    --veo-panel: #111218;
    --veo-muted: #1b1d27;
    --veo-text: #e8ebf1;
    --veo-sub: #a7afc0;
    --veo-accent: #7c5cff;
    --veo-line: #262839;
}

/* Container and layout */
.veo-generator-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.veo-card {
    background: transparent;
    border: 1px solid var(--veo-line, #262839);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: none;
}

.veo-header {
    text-align: center;
    margin-bottom: 30px;
}

.veo-subtitle {
    color: var(--veo-sub, #a7afc0);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Toggle buttons */
.veo-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.veo-toggle button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--veo-line, #262839);
    color: var(--veo-text, #e8ebf1);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.veo-toggle button.active {
    background: var(--veo-accent, #7c5cff);
    border-color: var(--veo-accent, #7c5cff);
    color: #fff;
}

.veo-toggle button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* Grid layout */
.veo-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

@media (max-width: 980px) {
    .veo-grid {
        grid-template-columns: 1fr;
    }
}

/* Form styling */
.veo-form-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--veo-text, #e8ebf1);
    margin: 0 0 15px;
    border-bottom: 1px solid var(--veo-line, #262839);
    padding-bottom: 10px;
}

.veo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.veo-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.veo-row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .veo-row, .veo-row-3 {
        grid-template-columns: 1fr;
    }
}

/* Form controls */
.veo-form-group {
    margin-bottom: 15px;
}

.veo-form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--veo-text, #e8ebf1);
    margin-bottom: 8px;
    font-weight: 500;
}

.veo-form-group input,
.veo-form-group select,
.veo-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--veo-line, #262839);
    background: rgba(255, 255, 255, 0.05);
    color: var(--veo-text, #e8ebf1);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.veo-form-group input::placeholder,
.veo-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.veo-form-group input:focus,
.veo-form-group select:focus,
.veo-form-group textarea:focus {
    border-color: var(--veo-accent, #7c5cff);
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.3);
}

.veo-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.veo-hint {
    font-size: 0.8rem;
    color: var(--veo-sub, #a7afc0);
    margin-top: 6px;
}

.veo-badge {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid var(--veo-line, #262839);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    color: var(--veo-sub, #a7afc0);
    font-size: 0.8rem;
}

.veo-divider {
    height: 1px;
    background: var(--veo-line, #262839);
    margin: 10px 0 14px;
}

/* Buttons */
.veo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
}

.veo-button {
    cursor: pointer;
    border: 1px solid var(--veo-accent, #7c5cff);
    background: linear-gradient(180deg, #8b7bff, #6c5cff);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.veo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 92, 255, 0.4);
}

.veo-button.secondary {
    border: 1px solid var(--veo-line, #262839);
    background: rgba(255, 255, 255, 0.05);
    color: var(--veo-text, #e8ebf1);
}

.veo-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.veo-preset {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.veo-preset button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--veo-line, #262839);
    border-radius: 8px;
    padding: 8px 15px;
    color: var(--veo-text, #e8ebf1);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.veo-preset button:hover {
    background: var(--veo-line, #262839);
}

/* Output area */
.veo-output {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--veo-line, #262839);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    overflow: auto;
    max-height: 400px;
}

.veo-output pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    color: var(--veo-text, #e8ebf1);
}

/* Toast notification */
.veo-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--veo-accent, #7c5cff);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.veo-toast.show {
    display: block;
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}
