/* Licensing Configurator Styles */

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Tool Layout */
.licensing-tool {
    padding: 3rem 0;
    background: #f8f9fa;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Configuration Panel */
.config-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.config-section {
    margin-bottom: 2.5rem;
}

.config-section h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
}

/* TRL Slider */
.trl-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trl-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #f56565, #ed8936, #ecc94b, #48bb78, #38b2ac);
    -webkit-appearance: none;
    appearance: none;
}

.trl-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.trl-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.trl-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    min-width: 60px;
    text-align: center;
}

/* Milestone Inputs */
.milestone-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestone-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: center;
}

.milestone-row input {
    padding: 0.6rem;
}

.milestone-row label {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 400;
    color: #4a5568;
}

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

/* Calculate Button */
.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Results Panel */
.results-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.results-header h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #667eea;
}

.results-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-section:last-child {
    border-bottom: none;
}

.results-section h3 {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Cost Items */
.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f7fafc;
}

.cost-item span {
    color: #718096;
    font-size: 0.95rem;
}

.cost-item strong {
    color: #2d3748;
    font-size: 1.1rem;
}

.cost-item.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #667eea;
    border-bottom: none;
}

.cost-item.total span {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.05rem;
}

.cost-item.total strong {
    color: #667eea;
    font-size: 1.4rem;
}

/* Acceptance Meter */
.acceptance-meter {
    margin-bottom: 1.5rem;
}

.meter-bar {
    width: 100%;
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(to right, #48bb78, #38b2ac, #4299e1);
    border-radius: 15px;
    transition: width 0.5s ease;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #718096;
}

.acceptance-text {
    background: #f0fdf4;
    border-left: 4px solid #48bb78;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #22543d;
}

.acceptance-text.medium {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #78350f;
}

.acceptance-text.low {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #7f1d1d;
}

.acceptance-factors h4 {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.acceptance-factors ul {
    list-style: none;
    padding: 0;
}

.acceptance-factors li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    font-size: 0.9rem;
    color: #718096;
    position: relative;
}

.acceptance-factors li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Market Benchmarks */
.market-benchmarks {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.benchmark-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: #f7fafc;
    border-radius: 6px;
}

.benchmark-label {
    color: #718096;
    font-size: 0.9rem;
}

.benchmark-value {
    font-weight: 700;
    color: #2d3748;
    font-size: 1rem;
}

/* Recommendations */
.recommendations {
    background: #fefce8;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #fef08a;
}

.recommendations h3 {
    color: #713f12;
    margin-bottom: 1rem;
}

.recommendation-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    align-items: flex-start;
}

.recommendation-card:last-child {
    margin-bottom: 0;
}

.rec-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recommendation-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

/* Results CTA */
.results-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.results-cta button {
    flex: 1;
    padding: 0.9rem;
    font-size: 0.95rem;
}

/* Comparison Chart Placeholder */
.comparison-chart {
    background: #f7fafc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.comparison-chart canvas {
    max-width: 100%;
    height: auto;
}

/* Chart bars visual representation */
.comparison-chart::before {
    content: '';
    display: block;
    width: 80%;
    height: 150px;
    background: linear-gradient(to top, #667eea 60%, #e2e8f0 60%);
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .results-panel {
        position: static;
        max-height: none;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .config-panel,
    .results-panel {
        padding: 1.5rem;
    }

    .milestone-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .results-cta {
        flex-direction: column;
    }

    .page-hero {
        padding: 3rem 0 2rem;
    }

    .licensing-tool {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .trl-slider-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .config-section h2,
    .results-header h2 {
        font-size: 1.3rem;
    }
}
