:root {
    --bg: #0f172a;       /* Deep slate background */
    --card: #1e293b;     /* Lighter slate card */
    --accent: #38bdf8;   /* Sky blue accent */
    --text-p: #f1f5f9;   /* White/gray text */
    --text-s: #94a3b8;   /* Muted text */
    --border: #334155;
    --danger: #ef4444;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-p);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
}

.card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
}

h2 { margin-bottom: 1.5rem; font-weight: 700; color: var(--accent); }

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.2rem;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    box-sizing: border-box;
}

input:focus { outline: 2px solid var(--accent); border-color: transparent; }

button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #0f172a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.1s;
}

button:active { transform: scale(0.98); }

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

.btn-logout { width: auto; background: var(--danger); color: white; padding: 6px 12px; font-size: 13px; }

.upload-zone {
    background: #0f172a;
    border: 2px dashed var(--border);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

#fileList { list-style: none; padding: 0; }

#fileList span { color: var(--text-p); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }

#fileList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #1e293b;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-info {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.file-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-remove {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 4px 8px;
    width: auto;
    font-size: 11px;
    font-weight: 600;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

#progressBarFill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.2s ease;
}

#progressText {
    font-size: 12px;
    color: var(--text-s);
    display: block;
    margin-top: 6px;
    text-align: right;
    font-weight: 600;
}