/*
 * File: css/email-generator.css
 * Description: Enterprise Styles for Email Generator - PREMIUM EDITION
 * Dependencies: tools.css, style.css
 */

.full-width-container {
    max-width: 1400px;
}

.generator-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

/* 🟢 GLASSMORPHISM UPGRADE */
.panel {
    background: var(--glass-bg); /* Global Glass Variable */
    border: var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    height: 750px; 
}

.panel:hover {
    box-shadow: 0 15px 50px rgba(147, 112, 219, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.8);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon { font-size: 1.3rem; }

/* Tabs */
.mode-tabs {
    display: flex;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.mode-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.highlight-text {
    color: var(--primary-color);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Inputs - Semi Transparent */
textarea, select, input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.6); /* Glass input */
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

textarea:focus, select:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(147, 112, 219, 0.1);
}

/* Input Textarea */
#namesInput {
    height: 200px;
    resize: none;
}

/* Output Textarea */
#resultsOutput {
    height: 100%;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0,0,0,0.05);
    resize: none;
}

.output-container {
    flex: 1;
    margin-bottom: 20px;
    height: 100%;
}

/* Range Slider - Branded */
.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0,0,0,0.1);
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color); /* Brand Purple */
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(147, 112, 219, 0.4);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Badges */
.stats-badge {
    background: rgba(46, 213, 115, 0.15); /* Light Green */
    color: #27ae60;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

/* Export Buttons */
.export-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.btn-secondary:disabled, .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.05);
    color: #999;
}

.privacy-note {
    text-align: center;
    color: #666;
    margin-top: 30px;
    background: rgba(147, 112, 219, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(147, 112, 219, 0.1);
}

/* Cloud Buttons */
.cloud-import-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.cloud-btn.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}
.cloud-icon svg {
    width: 18px; 
    height: 18px; 
    vertical-align: middle; 
    margin-top: -2px;
}

/* Responsive */
@media (max-width: 992px) {
    .generator-workspace {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .panel {
        height: auto;
        min-height: 500px;
    }
    
    #namesInput {
        height: 150px;
    }
    
    #resultsOutput {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .export-actions {
        grid-template-columns: 1fr;
    }
}