/* VERITAS MVP - Styling */

:root {
	--primary-color: #2563eb;
	--primary-hover: #1d4ed8;
	--secondary-color: #64748b;
	--success-color: #10b981;
	--bg-color: #f8fafc;
	--card-bg: #ffffff;
	--text-primary: #0f172a;
	--text-secondary: #475569;
	--border-color: #e2e8f0;
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-primary);
	line-height: 1.6;
}

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

header {
	text-align: center;
	margin-bottom: 3rem;
}

header h1 {
	font-size: 3rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.subtitle {
	font-size: 1.125rem;
	color: var(--text-secondary);
}

.card {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 2rem;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
}

.card h2 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.card > p {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

.tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid var(--border-color);
}

.tab-btn {
	background: none;
	border: none;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	color: var(--text-secondary);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}

.tab-btn:hover {
	color: var(--primary-color);
}

.tab-btn.active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
	font-weight: 600;
}

.tab-content {
	display: none;
}

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

.drop-zone {
	border: 2px dashed var(--border-color);
	border-radius: 8px;
	padding: 3rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	background: var(--bg-color);
}

.drop-zone:hover {
	border-color: var(--primary-color);
	background: #eff6ff;
}

.drop-zone.drag-over {
	border-color: var(--primary-color);
	background: #eff6ff;
	transform: scale(1.02);
}

.drop-text {
	font-size: 1.125rem;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.drop-hint {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.file-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: var(--bg-color);
	border-radius: 8px;
	margin-top: 1rem;
}

.file-info.hidden {
	display: none;
}

.file-details strong {
	display: block;
	margin-bottom: 0.25rem;
}

.file-details span {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

textarea {
	width: 100%;
	min-height: 200px;
	padding: 1rem;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.975rem;
	resize: vertical;
}

textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

.btn-primary, .btn-secondary {
	padding: 0.875rem 2rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	width: 100%;
	margin-top: 1.5rem;
}

.btn-primary {
	background: var(--primary-color);
	color: white;
}

.btn-primary:hover:not(:disabled) {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

.btn-primary:disabled {
	background: var(--secondary-color);
	cursor: not-allowed;
	opacity: 0.5;
}

.btn-secondary {
	background: transparent;
	color: var(--text-primary);
	border: 2px solid var(--border-color);
}

.btn-secondary:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.status-message {
	padding: 1rem;
	border-radius: 8px;
	margin-top: 1rem;
	font-weight: 500;
}

.status-message.hidden {
	display: none;
}

.status-message.info {
	background: #dbeafe;
	color: #1e40af;
}

.status-message.success {
	background: #d1fae5;
	color: #065f46;
}

.status-message.error {
	background: #fee2e2;
	color: #991b1b;
}

#results-section.hidden {
	display: none;
}

.summary-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.summary-card {
	background: var(--bg-color);
	padding: 1.5rem;
	border-radius: 8px;
	text-align: center;
}

.summary-label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

.summary-value {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
}

.tech-summary {
	background: #eff6ff;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 2rem;
}

.tech-summary h3 {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.result-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid var(--border-color);
}

.result-tab-btn {
	background: none;
	border: none;
	padding: 0.75rem 1.5rem;
	font-size: 0.975rem;
	color: var(--text-secondary);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}

.result-tab-btn:hover {
	color: var(--primary-color);
}

.result-tab-btn.active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
	font-weight: 600;
}

.result-tab-content {
	display: none;
}

.result-tab-content.active {
	display: block;
}

.platform-item, .system-item {
	background: var(--bg-color);
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.platform-item h4, .system-item h4 {
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.platform-item p, .system-item p {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin: 0.25rem 0;
}

.confidence-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-top: 0.5rem;
}

.confidence-high {
	background: #d1fae5;
	color: #065f46;
}

.confidence-medium {
	background: #fef3c7;
	color: #92400e;
}

.confidence-low {
	background: #fee2e2;
	color: #991b1b;
}

pre {
	background: #1e293b;
	color: #e2e8f0;
	padding: 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 0.875rem;
}

footer {
	text-align: center;
	padding: 2rem;
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 0.8s linear infinite;
	margin-right: 0.5rem;
	vertical-align: middle;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.files-list {
    margin-top: 1rem;
}
    
.files-list h4 {
    font-size: 0.975rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
    
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
    
.file-item-info strong {
    display: block;
    font-size: 0.925rem;
}
    
.file-item-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
    
.btn-remove {
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}
    
.btn-remove:hover {
    background: #dc2626;
}
    
.swarm-selector {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}
    
.swarm-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
    
.swarm-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}
    
.swarm-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
}