/* Complete Fix for AI Demo and ROI Page */

/* Remove conflicting styles */
.ai-detection-interface > .lms-breadcrumb,
.ai-detection-interface > .lms-header {
    display: none !important;
}

/* Fix broken structure */
.ai-detection-interface .submission-panel,
.ai-detection-interface .analysis-panel {
    display: none !important;
}

/* Ensure proper demo structure */
.ai-detection-interface {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr !important;
    height: 600px !important;
    background: #fafafa !important;
}

/* Fix ROI Calculator Layout */
.calculator-hero {
    padding: 60px 0 40px;
    background: white;
}

.calculator-section {
    padding: 40px 0 80px;
    background: white;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.calculator-inputs {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    height: fit-content;
}

.calculator-inputs h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calc-input,
.calc-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.calc-input:focus,
.calc-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-help {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.calc-slider {
    width: 100%;
    margin: 0.5rem 0;
}

.slider-value {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.calc-btn {
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.calc-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Fix Results Panel */
.calculator-results {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 1.5rem;
    color: #1f2937;
}

.results-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.result-card.highlight {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
}

.result-animation {
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.result-card.highlight .result-label {
    color: rgba(255, 255, 255, 0.9);
}

.result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.result-card.highlight .result-value {
    color: white;
}

/* Fix breakdown section */
.breakdown-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.breakdown-section h3 {
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.breakdown-animation {
    width: 30px;
    height: 30px;
}

.breakdown-label {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
}

.breakdown-value {
    font-weight: 600;
    color: #1f2937;
}

/* Fix chart section */
.chart-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.chart-section h3 {
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.projection-chart {
    padding: 1rem 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    margin-bottom: 1rem;
}

.chart-bar {
    flex: 1;
    margin: 0 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.chart-total {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-top: 1rem;
}

.chart-total span {
    color: #6b7280;
    margin-right: 0.5rem;
}

.chart-total strong {
    font-size: 1.5rem;
    color: #1f2937;
}

/* Fix action buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-buttons .btn {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.action-buttons .btn-primary {
    background: #3b82f6;
    color: white;
}

.action-buttons .btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* Fix benefits section */
.benefits-section {
    margin-top: 3rem;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 16px;
}

.benefits-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-animation {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .chart-bars {
        height: 150px;
    }
}