:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f26;
    --bg-tertiary: #242b33;
    --bg-card: #1e252d;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 1rem; }

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-info { display: flex; gap: 2rem; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-item i { color: var(--accent-blue); }

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

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.nav-tab {
    padding: 0.875rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.nav-tab.active { background: var(--gradient-blue); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover { border-color: rgba(59, 130, 246, 0.3); box-shadow: var(--shadow-glow); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.card-title { display: flex; align-items: center; gap: 0.75rem; font-size: 1.125rem; font-weight: 700; }
.card-title i { color: var(--accent-blue); font-size: 1.25rem; }
.card-badge { background: var(--bg-tertiary); padding: 0.375rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: var(--accent-blue); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } .header-info { display: none; } .nav-tabs { flex-direction: column; } }

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(59, 130, 246, 0.02);
}

.upload-zone:hover { border-color: var(--accent-blue); background: rgba(59, 130, 246, 0.05); }
.upload-zone.dragover { border-color: var(--accent-blue); background: rgba(59, 130, 246, 0.1); transform: scale(1.02); }
.upload-zone i { font-size: 3rem; color: var(--accent-blue); margin-bottom: 1rem; display: block; }
.upload-zone h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.upload-zone p { font-size: 0.875rem; color: var(--text-muted); }
.upload-zone input[type="file"] { display: none; }

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--gradient-blue); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-secondary); border-color: var(--accent-blue); }
.btn-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; }
.btn-block { width: 100%; }

.action-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

.action-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover { border-color: var(--accent-blue); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.action-btn i { font-size: 2rem; color: var(--accent-blue); margin-bottom: 0.75rem; display: block; }
.action-btn h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.25rem; }
.action-btn p { font-size: 0.75rem; color: var(--text-muted); }

.status-indicator { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.8125rem; font-weight: 600; }
.status-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-error { background: rgba(239, 68, 68, 0.1); color: var(--error); }

.table-container { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-color); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.data-table th { background: var(--bg-tertiary); padding: 1rem 0.75rem; text-align: left; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.5px; position: sticky; top: 0; white-space: nowrap; }
.data-table td { padding: 0.875rem 0.75rem; border-bottom: 1px solid var(--border-color); }
.data-table tr:hover td { background: rgba(59, 130, 246, 0.05); }
.data-table input { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 6px; padding: 0.5rem; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; }
.data-table input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-input { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 10px; padding: 0.875rem 1rem; color: var(--text-primary); font-family: inherit; font-size: 0.9375rem; transition: all 0.2s ease; }
.form-input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg-tertiary); border-radius: 16px; padding: 1.25rem; border: 1px solid var(--border-color); }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; font-size: 1.125rem; }
.stat-card .stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.stat-card .stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stat-card .stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; font-family: 'JetBrains Mono', monospace; }
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); animation: slideIn 0.3s ease; min-width: 300px; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast i { font-size: 1.25rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
@keyframes slideIn { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }

.spinner { width: 20px; height: 20px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 2rem; max-width: 500px; width: 90%; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.25rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }

.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state i { font-size: 4rem; margin-bottom: 1rem; color: var(--border-color); }
.empty-state h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-secondary); }

.footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.8125rem; border-top: 1px solid var(--border-color); margin-top: 2rem; }
