/* ========================================
   SatisfactionNPSCalculator.css
   Calculator-Specific Styles ONLY

   � CRITICAL:
   - DO NOT redefine global classes (.glass-card, .form-input, .btn-*, etc.)
   - See GLOBAL_CSS_CLASSES.md for list of global classes
   - Only define calculator-specific styles here
   ======================================== */

/* ========================================
   Input Width Control
   ======================================== */
.nps-score-input {
    max-width: 80px;
    flex: 1;
}

.nps-count-input {
    max-width: 120px;
    flex: 1;
}

/* ========================================
   Tab Navigation System
   ======================================== */
.nps-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-btn i {
    margin-right: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ========================================
   Data Entry List
   ======================================== */
.data-entry-list {
    background: #f7fafc;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.data-entry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.data-entry-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.data-entry-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.data-entry-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    min-width: 50px;
    font-family: 'Roboto Mono', monospace;
}

.data-entry-count {
    font-size: 1rem;
    color: #4a5568;
    font-family: 'Roboto Mono', monospace;
}

.data-entry-actions button {
    background: none;
    border: none;
    color: #f56565;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.data-entry-actions button:hover {
    background: #fee;
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ========================================
   NPS Result Display
   ======================================== */
.nps-result-main {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 20px;
}

.nps-score-display {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nps-score-display.positive {
    color: #48bb78;
}

.nps-score-display.neutral {
    color: #ecc94b;
}

.nps-score-display.negative {
    color: #f56565;
}

.nps-grade {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ========================================
   Distribution Stats
   ======================================== */
.nps-distribution {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.dist-item {
    background: #f7fafc;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dist-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dist-item.promoters {
    border-color: #48bb78;
}

.dist-item.promoters:hover {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
}

.dist-item.passives {
    border-color: #ecc94b;
}

.dist-item.passives:hover {
    background: linear-gradient(135deg, rgba(236, 201, 75, 0.1) 0%, rgba(236, 201, 75, 0.05) 100%);
}

.dist-item.detractors {
    border-color: #f56565;
}

.dist-item.detractors:hover {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(245, 101, 101, 0.05) 100%);
}

.dist-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 600;
}

.dist-percentage {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 5px;
}

.dist-item.promoters .dist-percentage {
    color: #48bb78;
}

.dist-item.passives .dist-percentage {
    color: #ecc94b;
}

.dist-item.detractors .dist-percentage {
    color: #f56565;
}

.dist-count {
    font-size: 0.85rem;
    color: #a0aec0;
}

/* ========================================
   Batch Import Zone
   ======================================== */
.csv-drop-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f7fafc;
}

.csv-drop-zone:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.csv-drop-zone.drag-over {
    border-color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
    transform: scale(1.02);
}

.csv-drop-zone i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.csv-drop-zone p {
    color: #4a5568;
    margin: 10px 0;
}

.csv-drop-zone small {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* ========================================
   Insights Section
   ======================================== */
.insight-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-item {
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid;
    background: white;
}

.insight-item.critical {
    border-color: #f56565;
    background: linear-gradient(90deg, rgba(245, 101, 101, 0.1) 0%, white 100%);
}

.insight-item.warning {
    border-color: #ecc94b;
    background: linear-gradient(90deg, rgba(236, 201, 75, 0.1) 0%, white 100%);
}

.insight-item.info {
    border-color: #4299e1;
    background: linear-gradient(90deg, rgba(66, 153, 225, 0.1) 0%, white 100%);
}

.insight-item.success {
    border-color: #48bb78;
    background: linear-gradient(90deg, rgba(72, 187, 120, 0.1) 0%, white 100%);
}

.insight-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.insight-message {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.insight-suggestion {
    font-size: 0.9rem;
    color: #718096;
}

/* ========================================
   Benchmark Comparison
   ======================================== */
.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.benchmark-item {
    background: #f7fafc;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.benchmark-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.benchmark-industry {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
}

.benchmark-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    font-family: 'Roboto Mono', monospace;
}

/* ========================================
   Likert Scale Input
   ======================================== */
.likert-scale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.likert-input-item {
    background: #f7fafc;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.likert-label {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 600;
    display: block;
}

/* ========================================
   Chart Containers
   ======================================== */
.nps-chart-container {
    position: relative;
    width: 100%;
    max-height: 350px;
    margin: 20px 0;
}

.gauge-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .nps-tabs {
        flex-direction: column;
    }

    .tab-btn {
        min-width: 100%;
    }

    .nps-distribution {
        grid-template-columns: 1fr;
    }

    .nps-score-display {
        font-size: 3rem;
    }

    .likert-scale-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benchmark-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .nps-score-display {
        font-size: 2.5rem;
    }

    .dist-percentage {
        font-size: 1.5rem;
    }
}
