* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3f8;
    color: #1f2937;
}
a { color: #0f5ea8; text-decoration: none; }
a:hover { text-decoration: underline; }
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.auth-card.wide { max-width: 700px; }
h1, h2 { margin-top: 0; }
.muted, .small { color: #6b7280; }
label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}
input, button {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
}
button {
    margin-top: 18px;
    background: #0f5ea8;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
button:hover { background: #0c4f8f; }
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 12px;
}
.alert.error {
    background: #fee2e2;
    color: #991b1b;
}
.alert.success {
    background: #dcfce7;
    color: #166534;
}
.auth-links { margin-top: 16px; }
.layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 270px;
    background: #0f172a;
    color: #fff;
    padding: 24px 18px;
}
.brand {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}
.userbox, .profile-summary {
    background: rgba(255,255,255,0.08);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.menu a {
    display: block;
    padding: 12px 14px;
    color: #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
}
.menu a.active, .menu a:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}
.content {
    flex: 1;
    padding: 28px;
}
.page-header {
    margin-bottom: 24px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.quick-links a {
    background: #eff6ff;
    padding: 10px 12px;
    border-radius: 10px;
}
.form-card { max-width: 820px; }
.grid-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}
@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; }
}


.two-col{grid-template-columns:2fr 1fr;}
.help-text{font-size:12px;color:#666;margin-top:-6px;margin-bottom:6px;}
.table-wrap{overflow:auto;}
.data-table{width:100%;border-collapse:collapse;}
.data-table th,.data-table td{padding:12px 10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:middle;}
.data-table th{background:#f8fafc;font-size:13px;}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.button-link,.danger-button{display:inline-block;padding:8px 12px;border-radius:8px;border:none;text-decoration:none;cursor:pointer;font-size:14px;}
.button-link{background:#1f2937;color:#fff;}
.danger-button{background:#b91c1c;color:#fff;}

.dropzone {
    border: 2px dashed #93c5fd;
    background: #f8fbff;
    padding: 26px;
    border-radius: 14px;
    text-align: center;
    transition: 0.2s ease;
    margin-bottom: 14px;
}
.dropzone.dragover {
    border-color: #1d4ed8;
    background: #eaf2ff;
}
.dropzone strong { display:block; margin-bottom: 8px; }
.badge {
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    background:#e5e7eb;
}
.badge.uploaded{background:#dbeafe;color:#1d4ed8;}
.badge.processing{background:#fef3c7;color:#92400e;}
.badge.ready{background:#dcfce7;color:#166534;}
.stats {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap:16px;
    margin-bottom:20px;
}
.stat {
    background:#fff;
    border-radius:14px;
    padding:20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.stat .value {font-size:28px;font-weight:800;margin-top:6px;}
textarea {
    width:100%;
    min-height:120px;
    padding:12px 14px;
    border-radius:10px;
    border:1px solid #cbd5e1;
    font-size:15px;
}
.inline-form {display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.inline-form select {
    padding:10px 12px;
    border-radius:10px;
    border:1px solid #cbd5e1;
}
.info-box {
    padding:14px;
    border-radius:12px;
    background:#f8fafc;
    margin-bottom:16px;
}
.note {font-size:13px;color:#64748b;}
@media (max-width: 700px) {
    .inline-form {display:block;}
}
