:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(148, 163, 184, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top right, #1e1b4b, #0f172a);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    padding: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.dropzone {
    border: 2px dashed rgba(96, 165, 250, 0.5);
    border-radius: 16px;
    padding: 4rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.4);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #60a5fa;
    margin-bottom: 1rem;
}

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

.dropzone p {
    color: #94a3b8;
}

.hidden {
    display: none !important;
}

.status-panel {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

#statusText {
    font-size: 1.1rem;
    color: #cbd5e1;
}

.results-area {
    margin-top: 2rem;
    text-align: left;
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
}

.results-area h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #e2e8f0;
}

.table-container {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

th {
    background: #1e293b;
    position: sticky;
    top: 0;
    font-weight: 600;
    color: #94a3b8;
    z-index: 10;
}

tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

tbody tr.focused-row {
    background: rgba(59, 130, 246, 0.25);
    box-shadow: inset 4px 0 0 var(--accent-color);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.action-area {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(59, 130, 246, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}
