/* Assessment Module Styles */
/* Styles for Amendment 13 Compliance Assessment Tool */

/* Assessment Container */
.assessment-section {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    min-height: 80vh;
}

#assessment-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Welcome Card */
.assessment-welcome {
    animation: fadeIn 0.5s ease;
}

.welcome-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.assessment-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.assessment-benefits h3 {
    color: #333;
    margin-bottom: 15px;
}

.assessment-benefits ul {
    list-style: none;
    padding: 0;
}

.assessment-benefits li {
    padding: 10px 0;
    padding-right: 35px;
    position: relative;
}

.assessment-benefits li::before {
    content: attr(data-icon);
    position: absolute;
    right: 0;
    font-size: 1.2rem;
}

.assessment-info {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-icon {
    font-size: 1.5rem;
}

.assessment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Resume Dialog */
.assessment-resume {
    animation: fadeIn 0.5s ease;
}

.resume-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.resume-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Section Styles */
.assessment-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.section-header {
    margin-bottom: 30px;
}

.progress-indicator {
    margin-bottom: 20px;
}

.progress-indicator span {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9rem;
}

.section-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-description {
    color: #666;
    font-size: 1rem;
}

/* Question Styles */
.questions-container {
    margin: 30px 0;
}

.question-block {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.question-block:hover {
    background: #f0f2f5;
}

.question-block.error {
    border: 2px solid #ef4444;
    background: #fef2f2;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.question-label {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.required {
    color: #ef4444;
    margin-left: 5px;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.checkbox-label:hover {
    background: #f0f2f5;
    border-color: #e0e0e0;
}

.checkbox-label input[type="checkbox"] {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    color: #444;
}

/* Tooltip Styles */
.help-icon,
.option-help-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #667eea;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-icon:hover,
.option-help-icon:hover {
    color: #764ba2;
    transform: scale(1.1);
}

.help-icon svg,
.option-help-icon svg {
    width: 20px;
    height: 20px;
}

/* Option-specific tooltip styles */
.option-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.option-wrapper .checkbox-label {
    flex: 1;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-wrapper .form-select {
    flex: 1;
}

.select-option-help {
    display: inline-block;
    position: relative;
}

.tooltip-content {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    animation: tooltipFadeIn 0.3s ease;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px 10px 0 0;
}

.tooltip-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.tooltip-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.tooltip-close:hover {
    color: #333;
}

.tooltip-body {
    padding: 20px;
    color: #555;
    line-height: 1.6;
}

.tooltip-requirements {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tooltip-requirements strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.tooltip-requirements ul {
    margin: 0;
    padding-right: 20px;
    list-style-type: disc;
}

.tooltip-requirements li {
    margin-bottom: 8px;
    color: #666;
}

.tooltip-reference {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.tooltip-reference small {
    color: #999;
    font-style: italic;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Navigation */
.section-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

/* Loading State */
.assessment-loading {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.assessment-loading h3 {
    color: #333;
    margin: 20px 0 10px;
}

.assessment-loading p {
    color: #666;
}

/* Results Styles */
.assessment-results {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.results-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
}

.report-date {
    color: #666;
    font-size: 1rem;
}

.report-organization {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
}

/* Score Section */
.score-section {
    margin-bottom: 40px;
}

.score-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    flex-wrap: wrap;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

.score-label {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.risk-indicator {
    flex: 1;
    min-width: 300px;
}

.risk-indicator h3 {
    color: #333;
    margin-bottom: 10px;
}

.risk-description {
    color: #666;
    margin: 10px 0;
}

.risk-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.risk-fill {
    height: 100%;
    transition: width 0.5s ease;
}

/* Score Interpretation */
.score-interpretation {
    margin-top: 30px;
}

.interpretation {
    padding: 20px;
    border-radius: 12px;
    border-right: 4px solid;
}

.interpretation.success {
    background: #d4edda;
    border-color: #28a745;
}

.interpretation.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.interpretation.caution {
    background: #ffe4b5;
    border-color: #ff9800;
}

.interpretation.danger {
    background: #f8d7da;
    border-color: #dc3545;
}

.interpretation h4 {
    margin-bottom: 10px;
    color: #333;
}

/* Fines Section */
.fines-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff3e0;
    border-radius: 16px;
    border-right: 4px solid #ff9800;
}

.fines-section.success {
    background: #d4edda;
    border-color: #28a745;
}

.fines-section h2 {
    color: #e65100;
    margin-bottom: 20px;
}

.fines-section.success h2 {
    color: #155724;
}

.total-fine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.fine-label {
    font-size: 1.2rem;
    color: #666;
}

.fine-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #e65100;
}

.violations-list {
    margin-top: 20px;
}

.violations-list h3 {
    color: #444;
    margin-bottom: 15px;
}

.violation-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-right: 4px solid;
}

.violation-item.high {
    border-color: #f44336;
}

.violation-item.medium {
    border-color: #ff9800;
}

.violation-item.low {
    border-color: #ffc107;
}

.violation-item.critical {
    border-color: #9c27b0;
}

.violation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.violation-severity-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
}

.violation-severity-badge.high {
    background: #f44336;
}

.violation-severity-badge.medium {
    background: #ff9800;
}

.violation-severity-badge.low {
    background: #ffc107;
    color: #333;
}

.violation-severity-badge.critical {
    background: #9c27b0;
}

.violation-fine {
    font-weight: bold;
    color: #e65100;
    font-size: 1.2rem;
}

.violation-desc {
    color: #555;
    margin-bottom: 5px;
}

.violation-reference {
    color: #999;
    font-size: 0.9rem;
}

.fines-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.fines-disclaimer p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Recommendations Section */
.recommendations-section {
    margin-bottom: 40px;
}

.recommendations-section h2 {
    color: #333;
    margin-bottom: 30px;
}

.priority-group {
    margin-bottom: 30px;
}

.priority-group h3 {
    color: #444;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-right: 4px solid;
    transition: all 0.3s ease;
}

.priority-group.critical .recommendation-item {
    border-color: #f44336;
    background: #ffebee;
}

.priority-group.high .recommendation-item {
    border-color: #ff9800;
    background: #fff3e0;
}

.priority-group.medium .recommendation-item {
    border-color: #ffc107;
    background: #fffde7;
}

.priority-group.low .recommendation-item {
    border-color: #4caf50;
    background: #e8f5e9;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rec-category {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.rec-timeline {
    color: #666;
    font-size: 0.9rem;
}

.rec-action {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.rec-description {
    color: #666;
    font-size: 0.9rem;
}

/* Compliance Matrix */
.compliance-matrix {
    margin-bottom: 40px;
}

.compliance-matrix h2 {
    color: #333;
    margin-bottom: 20px;
}

.compliance-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compliance-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 600;
}

.compliance-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

.compliance-table tr:last-child td {
    border-bottom: none;
}

.compliance-table tr:hover {
    background: #f8f9fa;
}

.status-ok {
    color: #4caf50;
    font-weight: bold;
}

.status-fail {
    color: #f44336;
    font-weight: bold;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.action-buttons button {
    min-width: 150px;
}

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

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

/* Progress Bar Styles */
.progress-bar {
    height: 24px;
    background: var(--bg-light, #f5f5f5);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-container {
    position: relative;
    margin-bottom: 1rem;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 10;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 12px;
    width: 0%;
    transition: width 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-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%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #assessment-container {
        padding: 20px;
    }
    
    .welcome-card,
    .assessment-section,
    .assessment-results {
        padding: 20px;
    }
    
    .score-container {
        flex-direction: column;
    }
    
    .assessment-info {
        flex-direction: column;
    }
    
    .info-item {
        width: 100%;
    }
    
    .section-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-navigation button {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .compliance-table {
        font-size: 0.9rem;
    }
    
    .compliance-table th,
    .compliance-table td {
        padding: 10px;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-value {
        font-size: 2rem;
    }
}

/* Countdown Banner Styles */
.countdown-banner {
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite alternate;
}

.countdown-banner h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}

.countdown-banner p {
    margin: 0;
    opacity: 0.8;
}

.countdown-normal {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    color: #1976d2;
}

.countdown-urgent {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    color: #f57c00;
}

.countdown-critical {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #f44336;
    color: #d32f2f;
    animation: urgentPulse 1s ease-in-out infinite alternate;
}

.countdown-today {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    color: #388e3c;
}

.countdown-active {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #9c27b0;
    color: #7b1fa2;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

@keyframes urgentPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    100% { transform: scale(1.02); box-shadow: 0 0 20px 10px rgba(244, 67, 54, 0); }
}