:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #16a34a;
    --danger: #dc2626;
    --glass: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* Background Image Integration */
    background: linear-gradient(rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.1)), 
                url('https://images.unsplash.com/photo-1559757175-5700dde675bc?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    min-height: 100-vh;
    padding: 2rem;
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Header & Stats */
.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    background: var(--primary);
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.stat-item.accuracy { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.stat-item.auc { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.stat-item.dataset { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }

.value { display: block; font-size: 1.5rem; font-weight: bold; }

/* Tabs */
.tab-nav {
    display: flex;
    padding: 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #4b5563;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

/* Detection Interface */
.upload-zone {
    border: 2px dashed #cbd5e1;
    padding: 3rem;
    text-align: center;
    border-radius: 1rem;
    background: #f8fafc;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: 0.3s;
}

/* Performance Table */
.metric-row {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
}

footer { text-align: center; font-size: 0.85rem; color: #4b5563; }