/* HSE Onboarding Frontend Styles */

.hse-onboarding-result {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 20px 0;
}

.hse-result-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.hse-result-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.hse-result-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hse-result-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hse-section {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.hse-section h3 {
    margin: 0 0 15px 0;
    color: #34495e;
    font-size: 18px;
}

/* Job Card */
.hse-job-card {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.hse-job-card h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.hse-job-id {
    color: #7f8c8d;
    font-size: 14px;
}

/* Activities */
.hse-activities-list {
    display: grid;
    gap: 10px;
}

.hse-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.hse-activity-title {
    font-weight: 500;
}

.hse-activity-code {
    color: #7f8c8d;
    font-size: 12px;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Risk Stats */
.hse-risk-summary {
    margin-bottom: 20px;
}

.hse-risk-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.hse-stat {
    background: white;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.hse-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.hse-stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

/* Risk Items */
.hse-risk-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hse-risk-item {
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 15px;
}

.hse-risk-item.hse-severity-high {
    border-left: 4px solid #e74c3c;
}

.hse-risk-item.hse-severity-medium {
    border-left: 4px solid #f39c12;
}

.hse-risk-item.hse-severity-low {
    border-left: 4px solid #3498db;
}

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

.hse-risk-header h4 {
    margin: 0;
    color: #2c3e50;
}

.hse-risk-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hse-risk-score {
    color: #7f8c8d;
    font-size: 14px;
}

.hse-risk-description {
    color: #5d6d7e;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

.hse-risk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Badges */
.hse-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.hse-badge-success {
    background: #2ecc71;
    color: white;
}

.hse-badge-info {
    background: #3498db;
    color: white;
}

.hse-badge-warning {
    background: #f39c12;
    color: white;
}

.hse-badge-danger {
    background: #e74c3c;
    color: white;
}

/* Risk Level Assessment */
.hse-risk-level {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 6px;
}

.hse-risk-level.hse-level-high {
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

.hse-risk-level.hse-level-medium {
    background: #fff3e0;
    border: 1px solid #ffcc80;
}

.hse-risk-level.hse-level-low {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.hse-risk-level.hse-level-none {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.hse-level-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hse-level-high .hse-level-indicator {
    background: #e74c3c;
}

.hse-level-medium .hse-level-indicator {
    background: #f39c12;
}

.hse-level-low .hse-level-indicator {
    background: #3498db;
}

.hse-level-none .hse-level-indicator {
    background: #95a5a6;
}

.hse-level-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.hse-level-content p {
    margin: 0;
    color: #5d6d7e;
    font-size: 14px;
}

/* Footer */
.hse-result-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.hse-ai-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

.hse-ai-notice .dashicons {
    color: #3498db;
}

/* Login Required */
.hse-login-required,
.hse-no-results {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 6px;
    color: #7f8c8d;
}

/* Form Styles */
#hse-activities-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.hse-activities-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.hse-activity-item {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.hse-activity-content h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.hse-activity-desc {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.hse-activity-response {
    display: flex;
    gap: 20px;
}

.hse-activity-response label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.hse-activity-response input[type="radio"] {
    margin: 0;
}

/* Loading States */
.hse-loading {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
}

.hse-error {
    padding: 20px;
    text-align: center;
    color: #e74c3c;
    background: #ffebee;
    border-radius: 4px;
}