/* Generator Mode Specific Styles */

.generator-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.hero-compact {
    text-align: center;
    margin-bottom: 30px;
}

.hero-compact h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.generator-container {
    padding: 30px;
    min-height: 500px;
}

/* Step Indicators */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.step {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.step.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(165, 243, 252, 0.2);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: rgba(165, 243, 252, 0.5);
    box-shadow: 0 0 10px rgba(165, 243, 252, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: rgba(165, 243, 252, 0.5);
    box-shadow: 0 0 10px rgba(165, 243, 252, 0.1);
}

/* Panels Editor */
.panels-editor,
.inputs-editor {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.panel-item,
.input-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.input-item {
    flex-direction: column;
    align-items: stretch;
}

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

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.input-row:last-child {
    margin-bottom: 0;
}

.input-row input,
.input-row select {
    flex: 1;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.panel-number,
.input-number {
    font-weight: bold;
    color: rgba(165, 243, 252, 0.8);
    min-width: 20px;
}

.panel-name {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.btn-icon {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}

.btn-icon:hover {
    color: #ff6b6b;
}

.btn-icon:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mapping Section */
.mapping-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mapping-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: rgba(165, 243, 252, 0.9);
}

.mapping-prompt {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    padding: 10px;
    font-family: 'Outfit', sans-serif;
    resize: vertical;
}

.mapping-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mapping-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mapping-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(165, 243, 252, 0.5);
}

/* Review Section */
.review-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.review-section h4 {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.review-section ul {
    list-style: none;
    padding: 0;
}

.review-section li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.review-json {
    margin-top: 20px;
}

.review-json pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.8rem;
    color: #a5f3fc;
}

.hidden {
    display: none !important;
}

/* Mapping Help */
.mapping-help {
    background: rgba(165, 243, 252, 0.1);
    border-left: 3px solid #a5f3fc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.mapping-help p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.mapping-help strong {
    color: #fff;
}

.mapping-help em {
    color: rgba(255, 255, 255, 0.6);
}

/* Preview Section */
.preview-config {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(165, 243, 252, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.preview-config h3 {
    color: rgba(165, 243, 252, 0.9);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Enhanced File Input Styling */
.preview-input[type="file"] {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    color: #fff;
    border: 2px dashed rgba(165, 243, 252, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-input[type="file"]:hover {
    border-color: rgba(165, 243, 252, 0.6);
    background: rgba(0, 0, 0, 0.4);
}

.preview-input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

.preview-input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* Preview Results */
#previewResults {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#previewResults h3 {
    color: rgba(165, 243, 252, 0.9);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.preview-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.preview-strip::-webkit-scrollbar {
    height: 8px;
}

.preview-strip::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.preview-strip::-webkit-scrollbar-thumb {
    background: rgba(165, 243, 252, 0.3);
    border-radius: 4px;
}

.preview-strip::-webkit-scrollbar-thumb:hover {
    background: rgba(165, 243, 252, 0.5);
}

.preview-image {
    height: 250px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(165, 243, 252, 0.2);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preview-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(165, 243, 252, 0.3);
    border-color: rgba(165, 243, 252, 0.5);
}

/* Rating Panel */
.rating-panel {
    background: linear-gradient(135deg, rgba(165, 243, 252, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(165, 243, 252, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rating-panel h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #a5f3fc;
    font-size: 1.1rem;
    font-weight: 600;
}

.checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checklist label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.checklist label:hover {
    background: rgba(165, 243, 252, 0.1);
    transform: translateX(3px);
}

.checklist input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #a5f3fc;
    cursor: pointer;
}

/* Generate Preview Button Enhancement */
#generatePreviewBtn {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 15px 30px;
}

#generatePreviewBtn .loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

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

    100% {
        transform: rotate(360deg);
    }
}