* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #667eea;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 40px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.upload-area:hover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.05);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #4c51bf;
    background: rgba(76, 81, 191, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.upload-content p {
    color: #666;
    margin-bottom: 10px;
}

.file-types {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Text Input Section */
.text-input-section {
    margin-top: 30px;
}

.text-input-section h3 {
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 1.5rem;
}

#textInput {
    width: 100%;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

#textInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.analyze-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

/* Analysis Section */
.analysis-section {
    margin-top: 50px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.2rem;
    color: #666;
}

/* Enhanced Progress Bar */
.progress-container {
    width: 100%;
    background: #f0f0f0;
    border-radius: 25px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #667eea, #764ba2, #48bb78);
    border-radius: 25px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 0.9rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    transition: color 0.3s ease;
}

.progress-step.active {
    color: #667eea;
    font-weight: 600;
}

.progress-step.completed {
    color: #48bb78;
}

.progress-step i {
    font-size: 1rem;
}

/* Results Section */
.results {
    margin-top: 30px;
}

.result-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.tab-panel {
    display: none;
}

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

.tab-panel h3 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.content-box h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
}

.content-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-box li {
    margin-bottom: 8px;
}

.highlight {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: help;
}

.highlight:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(254, 178, 178, 0.4);
}

.positive {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: help;
}

.positive:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(154, 230, 180, 0.4);
}

.warning {
    background: linear-gradient(135deg, #fef5e7, #fed7aa);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: help;
}

.warning:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(254, 215, 170, 0.4);
}

.critical {
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: help;
    animation: pulse 2s infinite;
}

.critical:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(252, 165, 165, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

.action-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #718096, #4a5568);
}

.action-btn.secondary:hover {
    box-shadow: 0 8px 25px rgba(113, 128, 150, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.footer p {
    margin-bottom: 10px;
    color: #666;
}

.disclaimer {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Document Type Badge */
.document-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 10px 0;
    animation: slideInFromTop 0.5s ease-out;
}

.confidence-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.confidence-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #2d3748;
    color: white;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Enhanced Animations */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in {
    animation: slideInFromLeft 0.5s ease-out;
}

/* Enhanced Content Boxes */
.content-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    line-height: 1.6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.content-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* AI Configuration Panel */
.ai-config-panel {
    margin-top: 20px;
    text-align: center;
}

.config-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.config-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.config-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideInFromTop 0.3s ease-out;
}

.config-option {
    margin-bottom: 15px;
}

.config-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #2d3748;
}

.config-option input[type="checkbox"] {
    transform: scale(1.2);
}

.config-option input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 5px;
    font-family: monospace;
}

.config-option small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Legal Term Highlighting */
.legal-term {
    background: linear-gradient(135deg, #e6fffa, #b2f5ea);
    padding: 1px 4px;
    border-radius: 3px;
    border-bottom: 1px dotted #38b2ac;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .result-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
}

/* Chatbot Styles */
.chatbot-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0;
    height: 500px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
    border-radius: 12px 12px 0 0;
}

.chat-message {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    gap: 12px;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.message-content {
    max-width: 70%;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bot-message .message-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.suggested-questions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
}

.suggestion-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.chat-input-container {
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e2e8f0;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

#chatInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-status {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 2px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: #64748b;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Risk Dashboard Styles */
.risk-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.risk-meter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.risk-meter {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto;
}

.risk-meter-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 180deg, #10b981 0deg, #f59e0b 120deg, #ef4444 180deg);
    border-radius: 100px 100px 0 0;
    overflow: hidden;
}

.risk-meter-inner::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: -5px;
    background: white;
    border-radius: 90px 90px 0 0;
}

.risk-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 80px;
    background: #1f2937;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 1s ease-out;
    z-index: 10;
}

.risk-needle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -5px;
    width: 13px;
    height: 13px;
    background: #1f2937;
    border-radius: 50%;
}

.risk-score {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    z-index: 10;
}

.risk-label {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #6b7280;
    z-index: 10;
}

.risk-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-item.low .legend-color {
    background: #10b981;
}

.legend-item.medium .legend-color {
    background: #f59e0b;
}

.legend-item.high .legend-color {
    background: #ef4444;
}

.risk-categories {
    margin-bottom: 30px;
}

.risk-categories h4 {
    margin-bottom: 20px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.risk-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.risk-category-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.risk-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

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

.category-header i {
    font-size: 20px;
    color: #667eea;
}

.category-header h5 {
    margin: 0;
    flex: 1;
    margin-left: 10px;
    color: #1f2937;
}

.category-score {
    font-size: 18px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    min-width: 40px;
    text-align: center;
}

.category-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.category-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
    width: 0%;
}

.category-details {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

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

.recommendations-section h4 {
    margin-bottom: 20px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.recommendation-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.recommendation-card.priority-high {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
}

.recommendation-card.priority-medium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

.recommendation-card.priority-low {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.recommendation-priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.priority-high {
    background: #ef4444;
    color: white;
}

.priority-medium {
    background: #f59e0b;
    color: white;
}

.priority-low {
    background: #10b981;
    color: white;
}

.recommendation-title {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.recommendation-content {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 10px;
}

.recommendation-action {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.risk-factors-section h4 {
    margin-bottom: 20px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.risk-factors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-factor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.risk-factor-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.risk-factor-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.risk-factor-icon.high {
    background: #ef4444;
}

.risk-factor-icon.medium {
    background: #f59e0b;
}

.risk-factor-icon.low {
    background: #10b981;
}

.risk-factor-content {
    flex: 1;
}

.risk-factor-title {
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 5px 0;
}

.risk-factor-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.risk-factor-impact {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Risk Score Colors */
.score-low {
    background: #10b981;
}

.score-medium {
    background: #f59e0b;
}

.score-high {
    background: #ef4444;
}

.progress-low {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-high {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Responsive Design for Risk Dashboard */
@media (max-width: 768px) {
    .risk-meter-container {
        flex-direction: column;
        text-align: center;
    }
    
    .risk-category-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}
