/* Veritas AI Demo Interface Styles */

/* Demo Controls */
.demo-controls-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.demo-progress-wrapper {
    flex: 1;
    margin-right: 15px;
}

.demo-progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.demo-progress-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

.demo-buttons {
    display: flex;
    gap: 8px;
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border: 1px solid;
}

.agent-details {
    flex: 1;
}

.agent-details h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.agent-status {
    font-size: 0.8rem;
    color: #6c757d;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fc;
}

.chat-message {
    margin-bottom: 16px;
    max-width: 80%;
    position: relative;
}

.chat-message.assistant {
    margin-right: auto;
    background-color: #fff;
    border-radius: 0 18px 18px 18px;
    padding: 12px 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-message.user {
    margin-left: auto;
    background-color: #e7f3ff;
    border-radius: 18px 0 18px 18px;
    padding: 12px 16px;
    color: #0a3055;
}

.message-sender {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.agent-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 0.7rem;
}

.message-content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: right;
    margin-top: 6px;
}

.typing-indicator {
    padding: 15px;
    background-color: #fff;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.6;
    animation: typing-dot 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-footer {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
}

.chat-input-container {
    display: flex;
    align-items: center;
    position: relative;
}

.chat-input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 24px;
    padding: 10px 16px;
    padding-right: 50px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.chat-send-button {
    position: absolute;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-send-button:hover {
    background-color: #0b5ed7;
}

/* Chat Options */
#chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.chat-option-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    text-align: left;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.chat-option-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.chat-option-button.learning-center-option {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Agent Transfer */
.agent-switch {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.agent-transfer {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.transfer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    margin-right: 10px;
}

.transfer-message {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

/* Framework Selection */
.framework-selector-container {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.framework-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.framework-category h6 {
    margin-bottom: 12px;
    font-weight: 600;
    color: #495057;
}

.framework-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.framework-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.framework-item:hover {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}

.framework-item.required {
    background-color: #e8f4ff;
    border-color: #b8daff;
}

.framework-checkbox {
    display: flex;
    align-items: flex-start;
}

.framework-checkbox input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
}

.framework-label {
    display: flex;
    flex: 1;
    margin-bottom: 0;
    cursor: pointer;
}

.framework-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    margin-right: 12px;
    color: #0d6efd;
}

.framework-info {
    flex: 1;
}

.framework-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.framework-description {
    font-size: 0.85rem;
    color: #6c757d;
}

.required-badge {
    background-color: #0d6efd;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Enhanced UI for Auto Demo Button */
.enhanced-demo-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.enhanced-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pulse-button {
    position: relative;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Document Upload & Management */
.document-requirements-container {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.document-checklist h6 {
    margin-bottom: 15px;
    font-weight: 600;
}

.document-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.document-category {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.category-title {
    font-weight: 600;
    color: #495057;
}

.category-completion {
    font-size: 0.85rem;
    color: #6c757d;
}

.category-documents {
    display: flex;
    flex-direction: column;
}

.document-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.document-item:last-child {
    border-bottom: none;
}

.document-status {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.missing {
    color: #dc3545;
}

.status-icon.complete {
    color: #198754;
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.document-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.document-requirements {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.requirement-tags {
    display: flex;
    gap: 6px;
}

.framework-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.framework-tag.gdpr {
    background-color: rgba(102, 16, 242, 0.1);
    color: #6610f2;
}

.framework-tag.eu-ai-act {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.framework-tag.nist-ai-rmf {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.requirement-priority {
    font-size: 0.75rem;
    font-weight: 600;
}

.requirement-priority.critical {
    color: #dc3545;
}

.requirement-priority.high {
    color: #fd7e14;
}

.requirement-priority.medium {
    color: #0dcaf0;
}

.document-actions {
    display: flex;
    gap: 8px;
}

/* Veritas Modal */
.veritas-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-weight: 600;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #6c757d;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* File Upload Interface */
.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 20px;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-instructions {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #495057;
}

.upload-formats {
    font-size: 0.85rem;
    color: #6c757d;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    max-width: 350px;
    overflow: hidden;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: toast-enter 0.3s ease forwards;
}

@keyframes toast-enter {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-header i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.toast-header .me-auto {
    font-weight: 600;
}

.toast-body {
    padding: 0.75rem;
}

.toast-success .toast-header i {
    color: #28a745;
}

.toast-warning .toast-header i {
    color: #ffc107;
}

.toast-error .toast-header i {
    color: #dc3545;
}

.toast-info .toast-header i {
    color: #0dcaf0;
}

/* Progress Steps */
.progress-steps-container {
    margin: 30px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.progress-step:after {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -15px;
    width: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.progress-step:last-child:after {
    display: none;
}

.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #6c757d;
    margin-right: 12px;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-icon {
    background-color: #e7f5ff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.progress-step.completed .step-icon {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.step-details {
    flex: 1;
}

.step-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.progress-step.active .step-title {
    color: #0d6efd;
}

.step-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.step-status.pending {
    color: #6c757d;
}

.step-status.active {
    color: #0d6efd;
}

.step-status.completed {
    color: #198754;
}

/* Module Navigation */
.module-nav-links {
    display: flex;
    margin-left: 20px;
    gap: 15px;
}

.module-nav-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.module-nav-link i {
    margin-right: 6px;
}

.module-nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.module-nav-link.active {
    background-color: #0d6efd;
    color: white;
}

/* RegTracker Module Styles */
.reg-tracker-visualization {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.reg-tracker-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.regulatory-map {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.regulation-group {
    flex: 1;
    min-width: 250px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.regulation-header {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.regulation-header h6 {
    margin: 0;
    font-weight: 600;
}

.requirement-list {
    padding: 15px;
}

.requirement-item {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.requirement-item.critical {
    border-left: 3px solid #dc3545;
}

.requirement-item.high {
    border-left: 3px solid #fd7e14;
}

.requirement-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.connection-visualization {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.connection-diagram {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.connection-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-card {
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 30%;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Evidence Portal Styles */
.evidence-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.evidence-status-card {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.evidence-status-card h5 {
    margin-bottom: 15px;
    font-weight: 600;
}

.evidence-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.evidence-stat {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 600;
}

.stat-value.text-danger {
    color: #dc3545;
}

.upload-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.document-categories {
    margin-top: 30px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.category-header h5 {
    margin: 0;
    font-weight: 600;
}

.category-documents table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.document-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.document-description {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Document Analyst Styles */
.document-viewer {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 0;
    height: 650px;
    display: flex;
    flex-direction: column;
}

.document-toolbar {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.document-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.document-page {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
}

.content-paragraph {
    margin-bottom: 15px;
    position: relative;
    padding: 10px;
    border-radius: 6px;
}

.content-paragraph.issue-critical {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
}

.content-paragraph.issue-high {
    background-color: rgba(253, 126, 20, 0.1);
    border-left: 3px solid #fd7e14;
}

.issue-annotation {
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.issue-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
}

.issue-badge.critical {
    background-color: #f8d7da;
    color: #dc3545;
}

.issue-badge.high {
    background-color: #fff3cd;
    color: #fd7e14;
}

.document-analysis-summary {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    height: 650px;
    overflow-y: auto;
}

.document-analysis-summary h5 {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.compliance-score {
    text-align: center;
    margin-bottom: 20px;
}

.issues-summary h6, 
.regulations-coverage h6, 
.required-fixes h6 {
    font-weight: 600;
    margin-bottom: 12px;
}

.issue-count {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.issue-type {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.issue-type.critical {
    border-left: 3px solid #dc3545;
}

.issue-type.high {
    border-left: 3px solid #fd7e14;
}

.issue-type.medium {
    border-left: 3px solid #0dcaf0;
}

.regulation-coverage-item {
    margin-bottom: 10px;
}

.required-fixes-list {
    padding-left: 0;
    list-style: none;
}

.fix-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.fix-priority {
    display: inline-block;
    padding: 2px 6px;
    margin-right: 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fix-priority.critical {
    background-color: #f8d7da;
    color: #dc3545;
}

.fix-priority.high {
    background-color: #fff3cd;
    color: #fd7e14;
}

/* Enhanced Dashboard Styles */
.dashboard-header {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.dashboard-overview {
    margin-bottom: 30px;
}

.overview-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.overview-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
}

.overview-score {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.overview-score.low {
    color: #dc3545;
}

.overview-status {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
}

.implementation-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-phase {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

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

.phase-header h6 {
    margin: 0;
    font-weight: 600;
}

.task-item {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item.critical {
    color: #dc3545;
}

.task-item.high {
    color: #fd7e14;
}

.task-framework {
    font-size: 0.8rem;
    color: #6c757d;
}

.generated-documents {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #0d6efd;
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.document-description {
    font-size: 0.8rem;
    color: #6c757d;
}

.document-actions {
    margin-left: 10px;
}

/* Module Transition Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.module-transition-in {
    animation: fade-in 0.3s ease forwards;
}

.module-transition-out {
    animation: fade-out 0.2s ease forwards;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .regulatory-map {
        flex-direction: column;
    }
    
    .evidence-dashboard {
        flex-direction: column;
    }
    
    .document-viewer, 
    .document-analysis-summary {
        height: auto;
        max-height: 500px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .chat-message {
        max-width: 90%;
    }
    
    .document-item {
        flex-direction: column;
    }
    
    .document-status {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .document-actions {
        margin-top: 10px;
    }
    
    .framework-label {
        flex-direction: column;
    }
    
    .framework-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .module-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .connection-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .dashboard-overview .col-md-3 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .assessment-overview {
        flex-direction: column;
    }
    
    .overall-score-container {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .demo-controls-container {
        flex-direction: column;
    }
    
    .demo-progress-wrapper {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
}
