/* ===================================================================
   GENERATOR VARIANT SPECIFIC STYLES
   Styles for specific generator variations that differ from the standard
   =================================================================== */

/* ===================================================================
   WAVY VASE GENERATOR - Slate Theme
   =================================================================== */

.wavy-vase-theme {
    background-color: #0f172a; /* slate-900 */
    color: #cbd5e1; /* slate-300 */
}

.wavy-vase-theme .control-panel {
    background-color: #1e293b; /* slate-800 */
}

/* Wavy Vase Custom Range Inputs */
.wavy-vase-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #334155; /* slate-700 */
    border-radius: 3px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wavy-vase-range:hover {
    opacity: 1;
}

.wavy-vase-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #3b82f6; /* blue-500 */
    cursor: pointer;
    border-radius: 50%;
}

.wavy-vase-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #3b82f6; /* blue-500 */
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

/* Wavy Vase Scrollbar */
.wavy-vase-theme .scrolling-area {
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b; /* slate-600, slate-800 */
}

.wavy-vase-theme .scrolling-area::-webkit-scrollbar {
    width: 8px;
}

.wavy-vase-theme .scrolling-area::-webkit-scrollbar-track {
    background: #1e293b; /* slate-800 */
}

.wavy-vase-theme .scrolling-area::-webkit-scrollbar-thumb {
    background: #475569; /* slate-600 */
    border-radius: 4px;
}

.wavy-vase-theme .scrolling-area::-webkit-scrollbar-thumb:hover {
    background: #64748b; /* slate-500 */
}

/* Wavy Vase Custom Loader */
.wavy-vase-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8); /* slate-900/80 */
    backdrop-filter: blur(4px);
}

.wavy-vase-loader.hidden {
    display: none;
}

.wavy-vase-spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid #334155; /* slate-700 */
    border-top: 4px solid #3b82f6; /* blue-500 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.wavy-vase-loader-text {
    margin-top: 1rem;
    color: white;
    font-weight: 500;
}

/* Wavy Vase Controls Help Text */
.wavy-vase-help {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #64748b; /* slate-500 */
    background: rgba(15, 23, 42, 0.5); /* slate-900/50 */
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

/* ===================================================================
   BEAM GENERATOR - Custom Flex Layout
   =================================================================== */

.beam-generator .control-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.beam-generator .scrolling-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.beam-generator .payment-section {
    flex-shrink: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border-primary);
}

/* ===================================================================
   NUT AND BOLT GENERATOR - Custom Layout
   =================================================================== */

.nut-bolt-generator .control-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nut-bolt-generator .scrolling-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.nut-bolt-generator .payment-section {
    flex-shrink: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border-primary);
}

/* ===================================================================
   ORGANIZER GENERATORS - Extended Form Controls
   =================================================================== */

/* Array Input Styling for Organizers */
.organizer-array-input {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    width: 100%;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.organizer-array-input:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Color Input for Organizers */
.organizer-color-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.organizer-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.organizer-color-input::-webkit-color-swatch {
    border-radius: 0.375rem;
    border: 1px solid var(--border-primary);
}

/* Print Together Toggle */
.print-toggle-section {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.print-toggle-title {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.print-toggle-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.print-toggle-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.print-toggle-label {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* ===================================================================
   THREADED CONTAINER - Custom Controls
   =================================================================== */

.threaded-container .parameter-section {
    background: rgba(75, 85, 99, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.threaded-container .parameter-section h3 {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Thread Specification Display */
.thread-spec {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===================================================================
   VASE WITH HANDLES - Extended Controls
   =================================================================== */

.vase-handles .engraving-section {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.vase-handles .engraving-title {
    color: #a78bfa;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Text Preview for Engraving */
.text-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-preview-content {
    color: var(--text-secondary);
    font-style: italic;
}

.text-preview-placeholder {
    color: var(--text-tertiary);
    font-style: italic;
}

/* ===================================================================
   RESPONSIVE ADJUSTMENTS FOR VARIANTS
   =================================================================== */

@media (max-width: 768px) {
    .wavy-vase-help {
        display: none;
    }
    
    .parameter-section,
    .engraving-section,
    .print-toggle-section {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }
    
    .print-toggle-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===================================================================
   ANIMATION OVERRIDES FOR VARIANTS
   =================================================================== */

.wavy-vase-theme .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.threaded-container .parameter-section:hover {
    background: rgba(75, 85, 99, 0.15);
    transition: background-color 0.2s ease;
}

.vase-handles .engraving-section:hover {
    background: rgba(139, 92, 246, 0.15);
    transition: background-color 0.2s ease;
}