:root {
--primary: #003d1d;
--primary-light: #005a2b;
--primary-dark: #002912;
--accent: #00a651;
--bg: #f8f9fa;
--white: #ffffff;
--gray-100: #f3f4f6;
--gray-200: #e5e7eb;
--gray-300: #d1d5db;
--gray-400: #9ca3af;
--gray-500: #6b7280;
--gray-600: #4b5563;
--gray-700: #374151;
--gray-800: #1f2937;
--success: #10b981;
--success-bg: #d1fae5;
--error: #ef4444;
--error-bg: #fee2e2;
--warning: #f59e0b;
--warning-bg: #fef3c7;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family:
"Inter",
-apple-system,
BlinkMacSystemFont,
sans-serif;
background: #f8f9fa3d;
min-height: 100vh;
color: var(--gray-800);
}

.login-page {
display: flex;
min-height: 100vh;
background: linear-gradient(
135deg,
var(--primary) 0%,
var(--primary-light) 50%,
var(--primary) 100%
);
}
.login-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 2rem;
}
.login-card {
background: var(--white);
padding: 3rem;
border-radius: 12px;
box-shadow: var(--shadow-lg);
width: 100%;
max-width: 420px;
}
.login-logo {
display: flex;
justify-content: center;
margin-bottom: 2rem;
}
.login-logo img {
height: 40px;
}
.login-title {
text-align: center;
margin-bottom: 0.5rem;
font-size: 1.75rem;
font-weight: 700;
color: var(--gray-800);
}
.login-subtitle {
text-align: center;
color: var(--gray-500);
margin-bottom: 2rem;
font-size: 0.95rem;
}
.form-group {
margin-bottom: 1.25rem;
}
.form-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--gray-700);
font-size: 0.9rem;
}
.form-input,
.form-select {
width: 100%;
padding: 9px;
border: 1px solid var(--gray-300);
border-radius: 8px;
font-size: 13px;
font-family: inherit;
transition: all 0.2s;
background: var(--white);
}
.form-input:focus,
.form-select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(0, 61, 29, 0.1);
}
.search-dropdown-item:hover {
background: #f3f4f6;
}
.btn-primary {
padding: 0.875rem;
background: var(--primary);
color: var(--white);
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
font-family: inherit;
}
.btn-primary.full-width {
width: 100%;
}
.btn-primary:hover {
background: var(--primary-light);
}
.btn-secondary {
background: var(--gray-100);
border: 1px solid var(--gray-300);
color: var(--gray-700);
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.btn-secondary:hover {
background: var(--gray-200);
border-color: var(--gray-400);
}
.ai-test-toggle {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
}
.ai-test-toggle input {
display: none;
}
.ai-test-toggle-slider {
width: 36px;
height: 20px;
background: var(--gray-300);
border-radius: 10px;
position: relative;
transition: background 0.2s;
}
.ai-test-toggle-slider::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
background: white;
border-radius: 50%;
top: 2px;
left: 2px;
transition: transform 0.2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ai-test-toggle input:checked + .ai-test-toggle-slider {
background: var(--primary);
}
.ai-test-toggle input:checked + .ai-test-toggle-slider::after {
transform: translateX(16px);
}
.ai-test-toggle-label {
font-size: 0.8rem;
font-weight: 500;
color: var(--gray-600);
}
.ai-test-toggle input:checked ~ .ai-test-toggle-label {
color: var(--primary);
}
.ai-test-badge {
display: inline-flex;
align-items: center;
gap: 3px;
background: #dbeafe;
color: #1e40af;
font-size: 0.65rem;
padding: 2px 6px;
border-radius: 4px;
font-weight: 500;
}
.btn-sm {
padding: 0.4rem 0.75rem;
font-size: 0.8rem;
border-radius: 6px;
border: 1px solid var(--gray-300);
background: white;
cursor: pointer;
transition: all 0.2s;
}
.defect-tab-btn {
background: var(--gray-100);
border: 1px solid var(--gray-300);
color: var(--gray-600);
}
.defect-tab-btn.active {
background: var(--primary);
border-color: var(--primary);
color: white;
}
.defect-tab-btn:hover:not(.active) {
background: var(--gray-200);
}
.login-error {
color: var(--error);
margin-top: 1rem;
text-align: center;
font-size: 0.9rem;
}
.login-footer {
text-align: center;
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid var(--gray-200);
color: var(--gray-500);
font-size: 0.85rem;
}

.app-layout {
display: flex;
min-height: 100vh;
}
.sidebar {
width: 212px;
background: var(--primary);
color: var(--white);
display: flex;
flex-direction: column;
position: fixed;
height: 100vh;
z-index: 100;
}
.sidebar-logo {
padding: 20px 17px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-logo img {
height: 32px;
}
.sidebar-nav {
flex: 1;
padding: 0;
}
.nav-item {display: flex;align-items: center;padding: 12px;color: rgba(255, 255, 255, 0.7);text-decoration: none;font-size: 14px;font-weight: 500;transition: all 0.2s;cursor: pointer;}
.nav-item:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--white);
}
.nav-item.active {
background: rgba(255, 255, 255, 0.15);
color: var(--white);
border-left: 3px solid var(--accent);
}
.nav-item svg {width: 18px;height: 18px;margin-right: 12px;}
.sidebar-footer {
padding: 1rem 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.5);
}

.main-content {
flex: 1;
margin-left: 199px;
display: flex;
flex-direction: column;
}
.top-header {
background: var(--white);
padding: 0.75rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--gray-200);
position: sticky;
top: 0;
z-index: 50;
}
.page-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--gray-800);
}
.user-menu {
position: relative;
}
.user-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--primary);
color: var(--white);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.2s;
}
.user-avatar:hover {
border-color: var(--gray-300);
}

.user-dropdown {
position: absolute;
top: calc(100% + 10px);
right: 0;
max-width: 360px;
background: var(--white);
border-radius: 12px;
box-shadow: var(--shadow-lg);
border: 1px solid var(--gray-200);
display: none;
z-index: 1000;
overflow: hidden;
}
.user-dropdown.show {
display: block;
animation: slideDown 0.2s ease;
}
@keyframes slideDown {
from {
transform: translateY(-10px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

.dropdown-header {
padding: 1.25rem;
border-bottom: 1px solid var(--gray-100);
display: flex;
align-items: center;
gap: 0.75rem;
}
.dropdown-info {
display: flex;
flex-direction: column;
}
.dropdown-name {
font-weight: 600;
color: var(--gray-800);
font-size: 0.9rem;
}
.dropdown-email {
color: var(--gray-500);
font-size: 0.75rem;
}
.dropdown-items {
padding: 0.5rem;
}
.dropdown-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem;
color: var(--gray-700);
text-decoration: none;
font-size: 0.85rem;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
}
.dropdown-item:hover {
background: var(--gray-50);
}
.dropdown-item.logout {
color: var(--error);
}
.dropdown-item svg {
width: 18px;
height: 18px;
opacity: 0.7;
}

.content-area {
flex: 1;
padding: 1.5rem 2rem;
overflow-y: auto;
}

.agent-detail-header {
margin-bottom: 1.5rem;
}
.agent-detail-controls {
display: flex;
gap: 1rem;
align-items: center;
}

.filters-bar {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
align-items: center;
}
.multi-select-container {
position: relative;
min-width: 140px;
}
.multi-select-btn {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
border: 1px solid var(--gray-300);
border-radius: 8px;
background: var(--white);
cursor: pointer;
font-size: 13px;
min-height: 38px;
transition: all 0.2s;
}
.multi-select-btn:hover {
border-color: var(--gray-400);
}
.multi-select-btn.active {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(0, 61, 29, 0.1);
}
.multi-select-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
margin-top: 4px;
background: var(--white);
border: 1px solid var(--gray-300);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 100;
max-height: 250px;
overflow-y: auto;
display: none;
width: 170px;
}
.multi-select-dropdown.show {
display: block;
}
.multi-select-option {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
cursor: pointer;
font-size: 13px;
transition: background 0.15s;
}
.multi-select-option:hover {
background: var(--gray-100);
}
.multi-select-option input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: var(--primary);
}
.multi-select-tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
max-width: 200px;
}
.multi-select-tag {
background: var(--primary);
color: white;
padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.filter-label {
font-size: 0.75rem;
color: var(--gray-500);
text-transform: capitalize;
margin-bottom: 5px;
}
.btn-back {display: flex;align-items: center;gap: 0.5rem;padding: 7px 20px;background: var(--white);border: 1px solid var(--gray-300);border-radius: 8px;cursor: pointer;font-size: 0.9rem;color: var(--gray-700);}
.btn-back:hover {background: #f5f5f51c;}
.btn-refresh {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
background: var(--white);
border: 1px solid var(--gray-300);
border-radius: 6px;
cursor: pointer;
color: var(--gray-500);
transition: all 0.2s;
}
.btn-refresh:hover {
background: var(--gray-100);
color: var(--gray-700);
}
.btn-refresh.spinning svg {
animation: spin 0.8s linear infinite;
}

.agents-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
}
.agent-card {
background: var(--white);
border-radius: 8px;
padding: 1.25rem;
cursor: pointer;
transition: all 0.2s;
border: 1px solid var(--gray-200);
}
.agent-card:hover {
border-color: #ffffff;
background: #fbfbfb;
}
.agent-header {
margin-bottom: 0.75rem;
}
.agent-name {
font-weight: 600;
font-size: 0.95rem;
color: var(--gray-800);
margin-bottom: 0.125rem;
line-height: 1.3;
}
.agent-company {
font-size: 0.8rem;
color: var(--gray-500);
}
.agent-meta {
display: flex;
align-items: center;
gap: 1.5rem;
margin-top: 0.75rem;
}
.agent-meta-item {
display: flex;
flex-direction: column;
}
.agent-meta-label {
font-size: 0.65rem;
color: var(--gray-400);
text-transform: capitalize;
letter-spacing: 0.5px;
}
.agent-meta-value {
font-size: 0.95rem;
font-weight: 500;
color: var(--gray-700);
}
.agent-score-inline {
font-weight: 600;
}
.score-excellent {
color: #166534;
}
.score-good {
color: #047857;
}
.score-average {
color: #92400e;
}
.score-poor {
color: #c2410c;
}
.score-bad {
color: #991b1b;
}

.analytics-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.chart-card {
background: var(--white);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
padding: 1.5rem;
border: 1px solid rgba(0, 0, 0, 0.04);
}
.chart-title {
font-weight: 600;
margin-bottom: 1rem;
color: var(--gray-700);
font-size: 0.95rem;
}
.chart-container {
height: 250px;
position: relative;
}

.analytics-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--gray-200);
}
.analytics-tab {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 1.25rem;
border: none;
background: var(--gray-100);
color: var(--gray-600);
font-size: 0.9rem;
font-weight: 500;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
}
.analytics-tab:hover {
background: var(--gray-200);
color: var(--gray-800);
}
.analytics-tab.active {
background: var(--primary);
color: white;
}
.analytics-tab svg {
width: 16px;
height: 16px;
}
.analytics-tab-content {
display: none;
}
.analytics-tab-content.active {
display: block;
}
.section-header {
margin-bottom: 1rem;
}
.section-title-main {
font-size: 1.25rem;
font-weight: 600;
color: var(--gray-800);
margin: 0;
padding-bottom: 0.75rem;
border-bottom: 2px solid var(--primary);
display: inline-block;
}

.executive-summary-card {
background: var(--white);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
padding: 1.5rem;
border: 1px solid rgba(0, 0, 0, 0.04);
}
.executive-summary-card .summary-badge {
padding: 4px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
}
.executive-summary-card .summary-badge.critical {
background: rgba(220, 38, 38, 0.1);
color: #dc2626;
}
.executive-summary-card .summary-badge.warning {
background: rgba(245, 158, 11, 0.1);
color: #f59e0b;
}
.executive-summary-card .summary-badge.good {
background: rgba(34, 197, 94, 0.1);
color: #22c55e;
}
.executive-summary-card .summary-badge.excellent {
background: rgba(5, 150, 105, 0.1);
color: #059669;
}
.executive-summary-card .defect-tag {
display: inline-block;
padding: 4px 10px;
border-radius: 12px;
font-size: 0.8rem;
margin: 2px;
}
.executive-summary-card .defect-tag.hard {
background: #fef2f2;
color: #dc2626;
}
.executive-summary-card .defect-tag.soft {
background: #fef3c7;
color: #d97706;
}
.executive-summary-card .section-title {
font-weight: 600;
margin-bottom: 8px;
font-size: 0.9rem;
}
.executive-summary-card .section-title.concerns {
color: #dc2626;
}
.executive-summary-card .section-title.positives {
color: #22c55e;
}
.executive-summary-card .section-title.insights {
color: #6b7280;
}
.executive-summary-card ul {
margin: 0;
padding-left: 20px;
}
.executive-summary-card ul li {
margin-bottom: 4px;
font-size: 0.9rem;
}

.kpi-row {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.kpi-card {
background: var(--white);
border-radius: 10px;
padding: 0.75rem;
box-shadow: var(--shadow);
text-align: center;
position: relative;
}
.kpi-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
}
.kpi-label {
font-size: 0.7rem;
color: var(--gray-500);
text-transform: capitalize;
margin-top: 0.25rem;
}
.kpi-desc {
font-size: 0.65rem;
color: var(--gray-400);
margin-top: 0.35rem;
line-height: 1.3;
}

.table-container {
background: var(--white);
border-radius: 12px;
box-shadow: var(--shadow);
overflow: hidden;
}
.table-header {
display: grid;
grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 0.6fr 50px;
padding: 1rem 1.5rem;
background: var(--gray-100);
font-weight: 600;
font-size: 0.8rem;
text-transform: capitalize;
letter-spacing: 0.5px;
color: var(--gray-600);
border-bottom: 1px solid var(--gray-200);
}
.conversation-row {
display: grid;
grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 0.6fr 50px;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--gray-100);
align-items: center;
transition: background 0.15s;
}
.conversation-row:hover {
background: var(--gray-50);
}
.table-row {
display: grid;
padding: 0.875rem 1.5rem;
border-bottom: 1px solid var(--gray-100);
align-items: center;
transition: background 0.15s;
font-size: 0.85rem;
}
.table-row:hover {
background: var(--gray-50);
}
.ai-score-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.25rem 0.5rem;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 600;
min-width: 40px;
}
.expand-btn {
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
border-radius: 6px;
color: var(--gray-500);
transition: all 0.2s;
}
.expand-btn:hover {
background: var(--gray-200);
}
.expand-btn svg {
width: 20px;
height: 20px;
transition: transform 0.2s;
}
.expand-btn.expanded svg {
transform: rotate(180deg);
}

.transcript-panel {
display: none;
padding: 1rem 1.5rem 1.5rem;
background: var(--gray-50);
border-bottom: 1px solid var(--gray-200);
}
.transcript-panel.show {
display: block;
}
.detail-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
margin-bottom: 1rem;
padding: 1rem;
background: var(--white);
border-radius: 8px;
border: 1px solid var(--gray-200);
}
.detail-item {
display: flex;
flex-direction: column;
}
.detail-item.detail-full {
grid-column: span 4;
}
.detail-label {
font-size: 0.75rem;
color: var(--gray-500);
text-transform: capitalize;
margin-bottom: 0.25rem;
}
.detail-value {
font-size: 0.9rem;
color: var(--gray-800);
font-weight: 500;
}

.ai-evaluation {
background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
border: 1px solid #86efac;
border-radius: 10px;
padding: 1rem;
margin-bottom: 1rem;
}
.ai-eval-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
}
.ai-eval-title {
font-weight: 600;
color: var(--primary);
font-size: 0.9rem;
}
.ai-eval-scores {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.eval-score-item {
text-align: center;
padding: 0.5rem;
background: white;
border-radius: 6px;
}
.eval-score-label {
font-size: 0.6rem;
color: var(--gray-500);
text-transform: capitalize;
margin-bottom: 0.25rem;
}
.eval-score-value {
font-size: 1rem;
font-weight: 700;
color: var(--gray-800);
}
.ai-eval-summary {
font-size: 0.85rem;
color: var(--gray-700);
line-height: 1.5;
margin-bottom: 0.75rem;
padding: 0.75rem;
background: white;
border-radius: 6px;
}
.ai-eval-flags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.eval-flag {
padding: 0.25rem 0.6rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
}
.eval-flag.agent {
background: #fee2e2;
color: #991b1b;
}
.eval-flag.candidate {
background: #fef3c7;
color: #92400e;
}

.transcript-messages {
max-height: 300px;
overflow-y: auto;
margin-top: 1rem;
}
.message-bubble {
margin-bottom: 0px;
max-width: 80%;
}
.message-bubble.user {
margin-left: auto;
}
.message-content {
padding: 10px;
border-radius: 12px;
font-size: 12px;
line-height: 1.5;
}
.message-bubble.user .message-content {
background: #f1f1f1;
color: #000000;
border-bottom-right-radius: 4px;
}
.message-bubble.agent .message-content {
background: var(--white);
color: var(--gray-800);
border: 1px solid var(--gray-200);
border-bottom-left-radius: 4px;
}
.message-meta {
font-size: 0.75rem;
color: var(--gray-500);
margin-top: 0.25rem;
padding: 0 0.5rem;
}
.message-bubble.user .message-meta {
text-align: right;
}

.empty-state {
text-align: center;
padding: 4rem 2rem;
color: var(--gray-500);
}
.loading {
text-align: center;
padding: 3rem;
color: var(--gray-500);
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--gray-200);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 1rem;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.hidden {
display: none !important;
}

.loading-screen {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
135deg,
var(--primary) 0%,
var(--primary-light) 50%,
var(--primary) 100%
);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
}
.loading-content {
text-align: center;
}
.loading-screen .spinner {
border-color: rgba(255, 255, 255, 0.3);
border-top-color: white;
}
.toast-container {
position: fixed;
top: 1.5rem;
right: 1.5rem;
z-index: 9999;
}
.toast {
background: var(--white);
padding: 1rem 1.5rem;
border-radius: 10px;
box-shadow: var(--shadow-lg);
margin-bottom: 0.75rem;
animation: slideIn 0.3s ease;
}
.toast.success {
border-left: 4px solid var(--success);
}
.toast.error {
border-left: 4px solid var(--error);
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}

@media (max-width: 1200px) {
.analytics-grid {
grid-template-columns: 1fr 1fr;
}
.kpi-row {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.sidebar {
display: none;
}
.main-content {
margin-left: 0;
}
.kpi-row {
grid-template-columns: repeat(2, 1fr);
}
.table-header,
.conversation-row {
grid-template-columns: 1fr 0.8fr 0.6fr 50px;
}
.table-header > *:nth-child(2),
.conversation-row > *:nth-child(2),
.table-header > *:nth-child(4),
.conversation-row > *:nth-child(4) {
display: none;
}
}

.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
opacity: 0;
visibility: hidden;
transition:
opacity 0.3s ease,
visibility 0.3s ease;
}
.modal-overlay.active {
opacity: 1;
visibility: visible;
}

.confirm-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition:
opacity 0.2s ease,
visibility 0.2s ease;
}
.confirm-overlay.active {
opacity: 1;
visibility: visible;
}
.confirm-box {
background: var(--white);
border-radius: 12px;
padding: 1.5rem;
width: 100%;
max-width: 380px;
text-align: center;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
transform: scale(0.9);
transition: transform 0.2s ease;
}
.confirm-overlay.active .confirm-box {
transform: scale(1);
}
.confirm-icon {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
}
.confirm-icon.warning {
background: #fef3c7;
color: #d97706;
}
.confirm-icon.success {
background: #d1fae5;
color: #059669;
}
.confirm-icon.error {
background: #fee2e2;
color: #dc2626;
}
.confirm-title {
font-size: 1.1rem;
font-weight: 600;
color: var(--gray-800);
margin-bottom: 0.5rem;
}
.confirm-message {
font-size: 0.9rem;
color: var(--gray-600);
margin-bottom: 1.5rem;
line-height: 1.5;
}
.confirm-buttons {
display: flex;
gap: 0.75rem;
justify-content: center;
}
.confirm-btn {
padding: 0.6rem 1.25rem;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
border: none;
}
.confirm-btn-cancel {
background: var(--gray-100);
color: var(--gray-700);
}
.confirm-btn-cancel:hover {
background: var(--gray-200);
}
.confirm-btn-ok {
background: var(--primary);
color: white;
}
.confirm-btn-ok:hover {
opacity: 0.9;
}
.confirm-btn-ok.danger {
background: #dc2626;
}

.slide-panel {
position: fixed;
top: 0;
right: 0;
width: 762px;
max-width: 100%;
height: 100vh;
background: var(--white);
z-index: 1001;
transform: translateX(100%);
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
}
.slide-panel.active {
transform: translateX(0);
}
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.25rem 1.5rem;
border-bottom: 1px solid var(--gray-200);
background: var(--gray-50);
}
.panel-title {
font-size: 1.1rem;
font-weight: 600;
color: var(--gray-800);
}
.panel-close {
background: none;
border: none;
cursor: pointer;
font-size: 29px;
padding: 0px 10px;
border-radius: 8px;
color: var(--gray-500);
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.panel-close:hover {
color: var(--gray-700);
}
.panel-close svg {
width: 24px;
height: 24px;
}
.panel-body {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
}
.panel-section {
margin-bottom: 1.5rem;
}
.panel-section-title {
font-size: 0.85rem;
font-weight: 600;
color: var(--gray-600);
text-transform: capitalize;
letter-spacing: 0.5px;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--gray-200);
}
.panel-info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
.panel-info-item {
background: var(--gray-50);
padding: 3px;
border-radius: 8px;
}
.panel-info-label {
font-size: 14px;
color: var(--gray-500);
text-transform: capitalize;
margin-bottom: 0.25rem;
}
.panel-info-value {
font-size: 13px;
font-weight: 500;
color: var(--gray-800);
}
.panel-eval-scores {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 0.75rem;
margin-bottom: 1rem;
}
.panel-eval-item {
background: var(--gray-50);
padding: 0.75rem;
border-radius: 8px;
text-align: center;
}
.panel-eval-label {
font-size: 0.7rem;
color: var(--gray-500);
text-transform: capitalize;
margin-bottom: 0.25rem;
}
.panel-eval-value {
font-size: 1.25rem;
font-weight: 700;
color: var(--primary);
}
.panel-summary {
background: var(--gray-50);
padding: 0px;
border-radius: 8px;
font-size: 13px;
color: var(--gray-700);
line-height: 1.6;
margin-bottom: 24px;
}
.panel-flags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.panel-transcript {
border: 0px;
border-radius: 8px;
padding: 0px;
background: var(--gray-50);
}
.conversation-row {
cursor: pointer;
}

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

.modal-content {
background: white;
border-radius: 12px;
max-width: 500px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
}

.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--gray-500);
line-height: 1;
}

.modal-close:hover {
color: var(--gray-700);
}

.modal-body {
padding: 1.5rem;
}

.form-group {
margin-bottom: 1rem;
}

.form-label {
display: block;
font-size: 0.85rem;
font-weight: 500;
margin-bottom: 0.35rem;
color: var(--gray-700);
}

.form-input, .form-select {
width: 100%;
padding: 0.6rem 0.75rem;
border: 1px solid var(--gray-300);
border-radius: 6px;
font-size: 0.9rem;
}

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