/* ActProof.ai - Visualization Styles */

/* Compliance Score Grid */
.compliance-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.score-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.score-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.score-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.score-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.score-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.score-card-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.score-badge,
.risk-badge,
.gaps-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-success {
    background: rgba(16, 185, 129, 0.9);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.9);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.9);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.status-success {
    color: #10b981;
}

.status-danger {
    color: #ef4444;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.chart-container {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-400);
}

.chart-container h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.chart-container canvas {
    max-height: 300px;
}

/* Compliance Details */
.compliance-details {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-400);
}

.compliance-details h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.compliance-articles {
    display: grid;
    gap: 1rem;
}

.article-item {
    border: 2px solid var(--gray-400);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
    background: var(--gray-200);
}

.article-item:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.article-compliant {
    background: rgba(16, 185, 129, 0.05);
    border-color: #10b981;
}

.article-non-compliant {
    background: rgba(239, 68, 68, 0.05);
    border-color: #ef4444;
}

.article-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.article-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.article-compliant .article-icon {
    background: #10b981;
    color: white;
}

.article-non-compliant .article-icon {
    background: #ef4444;
    color: white;
}

.article-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1rem;
}

.article-description {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.missing-fields {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #dc2626;
}

.missing-fields strong {
    font-weight: 600;
}

/* Recommendations Section */
.recommendations-section {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-400);
}

.recommendations-section h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--gray-200);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid var(--gray-400);
}

.recommendation-item:hover {
    background: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.recommendation-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.recommendation-text {
    flex: 1;
    color: #374151;
    line-height: 1.6;
}

.no-recommendations {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .compliance-score-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .score-value {
        font-size: 2rem;
    }

    .chart-container canvas {
        max-height: 250px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .chart-container,
    .compliance-details,
    .recommendations-section {
        background: #1f2937;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .chart-container h4,
    .compliance-details h4,
    .recommendations-section h4 {
        color: #f9fafb;
    }

    .article-item {
        background: #374151;
        border-color: #4b5563;
    }

    .article-name,
    .recommendation-text {
        color: #e5e7eb;
    }

    .article-description {
        color: #9ca3af;
    }

    .recommendation-item {
        background: #374151;
    }

    .recommendation-item:hover {
        background: #4b5563;
    }
}
