/* Requirement De-duplication Styles for Veritas AI */

/* Header */
.dedup-header {
    background: linear-gradient(135deg, #0a192f 0%, #0d47a1 100%);
    color: white;
    padding: 100px 0 50px;
    text-align: center;
}

.dedup-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.header-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Main Section */
.dedup-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Introduction Card */
.intro-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
}

.intro-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a192f;
}

.intro-card p {
    font-size: 1.05rem;
    color: #495057;
    margin-bottom: 25px;
}

.key-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.2rem;
    color: #0d6efd;
}

.benefit-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #0a192f;
}

.benefit-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Framework Selector Card */
.framework-selector-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.framework-selector-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a192f;
}

.framework-selector-card p {
    color: #6c757d;
    margin-bottom: 20px;
}

.framework-selector {
    margin-top: 20px;
}

.framework-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

.framework-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.framework-logo.eu-ai {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.framework-logo.nist {
    background: linear-gradient(135deg, #6610f2 0%, #520dc2 100%);
}

.framework-logo.iso {
    background: linear-gradient(135deg, #20c997 0%, #198754 100%);
}

.framework-logo.gdpr {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

.framework-logo.canada {
    background: linear-gradient(135deg, #d63384 0%, #ab296a 100%);
}

.framework-logo.custom {
    background: linear-gradient(135deg, #adb5bd 0%, #6c757d 100%);
}

.framework-actions {
    display: flex;
    gap: 10px;
}

/* Visualization Card */
.visualization-card, 
.mapping-card, 
.requirement-details-card, 
.unified-requirements-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #0a192f;
}

.visualization-container {
    padding: 20px;
    height: 300px;
    position: relative;
}

#overlap-visualization {
    width: 100%;
    height: 240px;
    position: relative;
}

.visualization-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
}

.stats-summary {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
    margin-top: auto;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stats-row:last-child {
    margin-bottom: 0;
}

.stats-label {
    color: #6c757d;
    font-weight: 500;
}

.stats-value {
    color: #0a192f;
    font-weight: 600;
}

/* Mapping Card */
.requirements-container {
    overflow-y: auto;
    max-height: 400px;
}

.mapping-area {
    padding: 0 0 15px;
}

.requirement-table {
    margin-bottom: 0;
}

.requirement-table th {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 1px 0 #dee2e6;
    z-index: 1;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.requirement-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.requirement-row:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.framework-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.framework-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.framework-chip.euai {
    background-color: #0d6efd;
}

.framework-chip.nist {
    background-color: #6610f2;
}

.framework-chip.iso {
    background-color: #20c997;
}

.framework-chip.gdpr {
    background-color: #0dcaf0;
}

.framework-chip.canada {
    background-color: #d63384;
}

.mapping-actions {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Requirement Details Card */
.requirement-details-content {
    padding: 25px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a192f;
}

.detail-section p {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.guidance-list, .evidence-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.guidance-list li, .evidence-list li {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.framework-references {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.framework-references h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0a192f;
}

.reference-item {
    display: flex;
    margin-bottom: 12px;
}

.reference-item:last-child {
    margin-bottom: 0;
}

.reference-badge {
    min-width: 70px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-right: 10px;
}

.reference-badge.euai {
    background-color: #0d6efd;
}

.reference-badge.nist {
    background-color: #6610f2;
}

.reference-badge.iso {
    background-color: #20c997;
}

.reference-content {
    flex: 1;
}

.reference-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a192f;
}

.reference-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.requirement-metadata {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.requirement-metadata h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0a192f;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.metadata-label {
    color: #6c757d;
    font-weight: 500;
}

.metadata-value {
    color: #0a192f;
    font-weight: 600;
}

/* Unified Requirements */
.unified-requirements-content {
    padding: 25px;
}

.plan-summary {
    margin-bottom: 25px;
}

.efficiency-chart {
    background-color: white;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(13, 110, 253, 0.2);
}

.chart-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1;
}

.chart-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
    text-align: center;
}

.plan-table-container {
    overflow-y: auto;
    max-height: 400px;
}

.priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.priority-badge.high {
    background-color: #dc3545;
}

.priority-badge.medium {
    background-color: #fd7e14;
}

.priority-badge.low {
    background-color: #20c997;
}

/* Best Practices Card */
.best-practices-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.best-practices-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #0a192f;
    text-align: center;
}

.practice-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.practice-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.practice-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.practice-icon i {
    font-size: 1.2rem;
    color: #0d6efd;
}

.practice-content {
    flex: 1;
}

.practice-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #0a192f;
}

.practice-content p {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 0;
}

/* Value Proposition Card */
.value-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
}

.value-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a192f;
}

.value-card .lead {
    font-size: 1.15rem;
    color: #495057;
    margin-bottom: 25px;
}

.value-metrics {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.metric {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    height: 100%;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

.automated-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* How It Works Section */
.how-it-works-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
}

.how-it-works-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a192f;
}

.steps-container {
    position: relative;
    padding: 30px 0 10px;
}

.step-connector {
    position: absolute;
    top: 50px;
    left: 5%;
    width: 90%;
    height: 4px;
    background-color: #e9ecef;
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 5px solid white;
}

.step-content {
    max-width: 250px;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a192f;
}

.step-content p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Case Study */
.case-study-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.customer-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.case-study-content {
    flex: 1;
}

.case-study-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a192f;
}

.case-study-content .lead {
    font-size: 1.1rem;
    color: #495057;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.case-study-content .lead::before {
    content: "";
    font-size: 3rem;
    color: rgba(13, 110, 253, 0.1);
    position: absolute;
    left: -20px;
    top: -20px;
}

.quote-author {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.quote-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-name {
    font-weight: 600;
    color: #0a192f;
}

.author-title {
    font-size: 0.9rem;
    color: #6c757d;
}

.case-study-results {
    display: flex;
    gap: 20px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.result-item {
    text-align: center;
    flex: 1;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Call-to-Action */
.cta-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
}

.cta-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a192f;
}

.cta-container p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 25px;
}

.cta-buttons {
    margin-top: 20px;
}

/* Toast Notifications */
.toast-container {
    z-index: 1050;
}

.toast {
    background-color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.toast-header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .dedup-header {
        padding: 80px 0 40px;
    }
    
    .dedup-header h1 {
        font-size: 2.2rem;
    }
    
    .benefit-item {
        min-width: 100%;
    }
    
    .framework-chip {
        font-size: 0.7rem;
    }
    
    .value-card,
    .how-it-works-card,
    .case-study-card,
    .cta-container {
        padding: 30px;
    }
    
    .case-study-card {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-author {
        justify-content: center;
    }
    
    .case-study-results {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-connector {
        display: none;
    }
}

@media (max-width: 767px) {
    .dedup-header {
        padding: 70px 0 30px;
    }
    
    .dedup-header h1 {
        font-size: 1.8rem;
    }
    
    .intro-card,
    .framework-selector-card,
    .visualization-card,
    .mapping-card,
    .requirement-details-card,
    .unified-requirements-card,
    .best-practices-card {
        padding: 20px;
    }
    
    .card-header {
        padding: 15px 20px;
    }
    
    .mapping-actions {
        flex-direction: column;
    }
    
    .practice-item {
        flex-direction: column;
    }
    
    .practice-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .reference-item {
        flex-direction: column;
    }
    
    .reference-badge {
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .value-card,
    .how-it-works-card,
    .case-study-card,
    .cta-container {
        padding: 25px;
    }
    
    .value-card h2,
    .how-it-works-card h2,
    .case-study-content h3,
    .cta-container h2 {
        font-size: 1.5rem;
    }
    
    .value-card .lead,
    .case-study-content .lead,
    .cta-container p {
        font-size: 1rem;
    }
    
    .metric-value {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
