.warning-button {
    background-color: var(--warning-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.retraining-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.retraining-content {
    text-align: center;
}

.training-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.retraining-content ul {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.retraining-content li {
    margin-bottom: 0.5rem;
}

.retraining-content p {
    margin-bottom: 1rem;
}.threshold-controls {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.threshold-setting {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.threshold-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.threshold-input-container input {
    flex: 1;
}

.threshold-description {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

.assessment-explanation {
    background-color: var(--tertiary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.assessment-explanation h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.assessment-explanation p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.production-note {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}/* Global Styles */
:root {
    --primary-color: #2a5885;
    --secondary-color: #4a7aad;
    --tertiary-color: #e0ebf5;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --success-color: #48a368;
    --warning-color: #e6a23c;
    --error-color: #f56c6c;
    --fact-color: #e0f2fe;
    --conclusion-color: #fef2e0;
    --hover-color: #f0f7ff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f9fafb;
    line-height: 1.6;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.hidden {
    display: none !important;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 1.8rem;
}

.tagline {
    font-size: 1rem;
    font-weight: 300;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Main Container */
.main-container {
    display: flex;
    height: calc(100vh - 68px);
    padding: 1rem;
    gap: 1rem;
}

/* Justification Panel */
.justification-panel {
    flex: 0 0 35%;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    background-color: var(--tertiary-color);
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-controls {
    display: flex;
    gap: 0.5rem;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    gap: 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
}

/* Justification Content */
.justification-content {
    padding: 1rem;
}

.fact-justification, .conclusion-justification {
    margin-bottom: 1.5rem;
}

.fact-justification h3, .conclusion-justification h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fact-content, .conclusion-content {
    background-color: var(--tertiary-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.source {
    font-style: italic;
    font-size: 0.875rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.source a {
    color: var(--secondary-color);
    text-decoration: none;
}

.source a:hover {
    text-decoration: underline;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.system-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.system-metrics {
    padding: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.metric-label {
    flex: 0 0 150px;
    font-weight: 500;
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--secondary-color);
}

.system-warning {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #fff8e6;
    border-left: 4px solid var(--warning-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.system-warning i {
    color: var(--warning-color);
}

.small-button {
    background-color: var(--warning-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: auto;
}

/* Chat Window */
.chat-window {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    position: relative;
}

.user-message {
    background-color: var(--tertiary-color);
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.ai-message {
    background-color: white;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0;
}

.system-message {
    background-color: #f8f9fa;
    text-align: center;
    max-width: 100%;
    font-style: italic;
    color: var(--light-text);
}

.fact {
    background-color: var(--fact-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0;
    cursor: pointer;
    display: inline-block;
}

.conclusion {
    background-color: var(--conclusion-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0;
    cursor: pointer;
    display: inline-block;
}

.judgment-decision {
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-weight: 500;
    background-color: rgba(42, 88, 133, 0.05);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.judgment-decision:hover {
    background-color: rgba(42, 88, 133, 0.1);
}

.judgment-decision::after {
    content: "Click to evaluate";
    position: absolute;
    right: 10px;
    bottom: 5px;
    font-size: 0.7rem;
    color: var(--primary-color);
    font-style: italic;
    font-weight: normal;
    opacity: 0.7;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
}

.input-container button {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prompt-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prompt-button {
    padding: 0.75rem 1rem;
    background-color: var(--tertiary-color);
    border-radius: 8px;
    text-align: left;
    transition: background-color 0.2s;
}

.prompt-button:hover {
    background-color: var(--hover-color);
}

/* Agreement Buttons */
.agreement-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

.agreement-buttons button {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.agree-button {
    background-color: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disagree-button {
    background-color: #f0f0f0;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unsure-button {
    background-color: white;
    color: var(--light-text);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.notification.success {
    background-color: rgba(72, 163, 104, 0.1);
    color: var(--success-color);
}

.notification.warning {
    background-color: rgba(230, 162, 60, 0.1);
    color: var(--warning-color);
}

.notification.fade-out {
    opacity: 0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.2rem;
}

.close-modal {
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

/* Assessment Styles */
.assessment-scenario {
    background-color: var(--tertiary-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.assessment-scenario h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.assessment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.option:hover {
    background-color: var(--hover-color);
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.secondary-button {
    background-color: #f0f0f0;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

.tertiary-button {
    background-color: white;
    color: var(--light-text);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

/* Results Modal */
.results-content {
    text-align: center;
}

.result-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.judgment-metrics {
    margin-top: 2rem;
}

.judgment-metrics .metric {
    justify-content: center;
}

.score {
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.improved {
    background-color: rgba(72, 163, 104, 0.1);
    color: var(--success-color);
}

.declined {
    background-color: rgba(245, 108, 108, 0.1);
    color: var(--error-color);
}

/* Icon Button */
.icon-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }
    
    .justification-panel {
        height: 300px;
    }
    
    .chat-window {
        height: 500px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .secure-badge {
        align-self: flex-start;
        margin-top: 0.5rem;
    }
    
    .main-container {
        padding: 0.5rem;
    }
}

.judgment-controls {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.judgment-controls h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.judgment-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.judgment-buttons .agree-button,
.judgment-buttons .disagree-button {
    flex: 0 0 auto;
    min-width: 120px;
}

.judgment-buttons .unsure-button {
    flex: 0 0 100%;
    max-width: 200px;
    margin-top: 0.5rem;
}