/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --border: #e5e5e5;
    --text: #1a1a1a;
    --text-muted: #737373;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --danger: #dc2626;
    --success: #16a34a;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.navbar-brand span {
    color: var(--accent);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.navbar-links a {
    color: var(--text-muted);
}

.navbar-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.navbar-user {
    color: var(--text-muted);
    font-size: 13px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px;
}

.container-wide {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
}


.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero p {
    color: var(--text-muted);
    font-size: 15px;
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.02);
}

.drop-zone-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.drop-zone-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.drop-zone-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.file-info {
    display: none;
    margin-top: 16px;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.file-info.visible {
    display: inline-flex;
}

.submit-container {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.submit-container.visible {
    display: block;
}

.submit-container .btn {
    width: auto;
}

/* ===== Documents List ===== */
.section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.doc-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.doc-item-icon.pdf {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.doc-item-icon.xlsx {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.doc-item-name {
    font-size: 14px;
    font-weight: 500;
}

.doc-item-date {
    font-size: 12px;
    color: var(--text-muted);
}

.doc-item-action {
    font-size: 13px;
    color: var(--accent);
}

.doc-pair {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.doc-pair .doc-item {
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
}

.doc-pair .doc-item:last-child {
    border-bottom: none;
}

.doc-pair .excel-item {
    background: #f0fdf4;
}