/* Assessment Page Styles */

/* Page Header */
.assessment-header h1{
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.assessment-header p {
      color: white;    
  font-size: 1.25rem;
    text-align: center;
}

.assessment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 60px;
}

.assessment-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.assessment-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.assessment-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.assessment-stats .stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* Assessment Container */
.assessment-container {
    padding: 40px 0 80px;
    background: #f8fafc;
    min-height: 100vh;
}

/* Progress Section */
.progress-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

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

.progress-header h3 {
    margin: 0;
    color: #1e293b;
}

.progress-text {
    color: #64748b;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* Assessment Tabs */
.assessment-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tab-btn.active {
    background: white;
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

.tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Domain Filter */
.domain-filter {
    margin-bottom: 2rem;
}

.domain-filter h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.domain-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.domain-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.domain-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.domain-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Maturity Guide */
.maturity-guide {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.maturity-guide h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.maturity-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.maturity-level {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.level-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.level-0 { background: #ef4444; }
.level-1 { background: #f97316; }
.level-2 { background: #eab308; }
.level-3 { background: #22c55e; }
.level-4 { background: #3b82f6; }

.level-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #1e293b;
}

.level-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

/* Controls Section */
.controls-section {
    margin-bottom: 2rem;
}

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

.controls-header h3 {
    margin: 0;
    color: #1e293b;
}

.controls-actions {
    display: flex;
    gap: 0.5rem;
}

.controls-grid {
    display: grid;
    gap: 1.5rem;
}

/* Control Card */
.control-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.control-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.control-card.completed {
    border-color: #22c55e;
    background: #f0fdf4;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.control-info h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.control-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.control-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.control-tag.domain {
    background: #dbeafe;
    color: #1e40af;
}

.control-tag.priority-CRÍTICO {
    background: #fee2e2;
    color: #dc2626;
}

.control-tag.priority-ALTO {
    background: #fef3c7;
    color: #d97706;
}

.control-tag.priority-MÉDIO {
    background: #dcfce7;
    color: #16a34a;
}

.control-id {
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.9rem;
}

.control-frameworks {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.control-frameworks strong {
    color: #374151;
}

.control-rating {
    margin-bottom: 1rem;
}

.control-rating h5 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 0.9rem;
}

.rating-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-option {
    flex: 1;
    min-width: 60px;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-option:hover {
    border-color: #3b82f6;
}

.rating-option.selected {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.rating-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.rating-label {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.control-evidences {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.control-evidences h5 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 0.9rem;
}

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

.evidences-list li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #64748b;
    position: relative;
    padding-left: 1rem;
}

.evidences-list li::before {
    content: '•';
    color: #3b82f6;
    position: absolute;
    left: 0;
}

/* Assessment Actions */
.assessment-actions {
    text-align: center;
    padding: 2rem 0;
}

/* Results Styles */
.results-container {
    max-width: 1000px;
    margin: 0 auto;
}

.score-overview {
    text-align: center;
    margin-bottom: 3rem;
}

.score-card {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.score-grade {
    font-size: 4rem;
    font-weight: 700;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #64748b;
}

.score-grade.grade-A { background: #22c55e; }
.score-grade.grade-B { background: #84cc16; }
.score-grade.grade-C { background: #eab308; }
.score-grade.grade-D { background: #f97316; }
.score-grade.grade-F { background: #ef4444; }

.score-details {
    text-align: left;
}

.score-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.score-description {
    color: #64748b;
    margin-top: 0.5rem;
}

/* Domain Breakdown */
.domain-breakdown {
    margin-bottom: 3rem;
}

.domain-breakdown h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.domain-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.domain-score-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.domain-name {
    font-weight: 600;
    color: #1e293b;
}

.domain-percentage {
    font-weight: 700;
    color: #3b82f6;
}

.domain-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.domain-progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Charts */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: #1e293b;
    text-align: center;
}

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

/* Priority Analysis */
.priority-analysis {
    margin-bottom: 3rem;
}

.priority-analysis h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.priority-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.priority-card.critical {
    border-left: 4px solid #ef4444;
}

.priority-card.high {
    border-left: 4px solid #f97316;
}

.priority-card.medium {
    border-left: 4px solid #22c55e;
}

.priority-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.priority-number.critical { color: #ef4444; }
.priority-number.high { color: #f97316; }
.priority-number.medium { color: #22c55e; }

/* Recommendations */
.recommendations {
    margin-bottom: 3rem;
}

.recommendations h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.recommendations-list {
    display: grid;
    gap: 1rem;
}

.recommendation-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f97316;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recommendation-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.recommendation-title {
    font-weight: 600;
    color: #1e293b;
}

.recommendation-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.recommendation-description {
    color: #64748b;
    font-size: 0.9rem;
}

/* Report Styles */
.report-container {
    max-width: 800px;
    margin: 0 auto;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.report-header h3 {
    margin: 0;
    color: #1e293b;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.report-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .domain-buttons {
        flex-direction: column;
    }
    
    .domain-btn {
        justify-content: flex-start;
    }
    
    .maturity-levels {
        grid-template-columns: 1fr;
    }
    
    .rating-options {
        flex-direction: column;
    }
    
    .rating-option {
        min-width: auto;
    }
    
    .score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .controls-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .controls-actions {
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

