* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f7fb;
    color: #1f2937;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5, #f3f4f6);
}

.login-card, .form-card, .table-card, .success-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 30px;
}

.login-card h1, .success-card h1 {
    margin-bottom: 10px;
    color: #166534;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

button,
.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

button, .btn-primary {
    background: #16a34a;
    color: #fff;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-light {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.error-box {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

.topbar {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: white;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.container {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 16px;
}

.toolbar {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.toolbar-flex {
    display: flex;
    justify-content: flex-start;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input {
    min-width: 260px;
    margin-bottom: 0;
}

.form-card {
    padding: 24px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.section-title {
    margin: 20px 0 10px;
    color: #166534;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    font-size: 14px;
}

th {
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.doc-links a {
    display: inline-block;
    margin: 3px 6px 3px 0;
    padding: 6px 10px;
    background: #ecfdf5;
    color: #166534;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #bbf7d0;
}

.empty-box {
    padding: 32px;
    text-align: center;
    color: #6b7280;
}

.success-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-card {
    width: 100%;
    max-width: 500px;
    padding: 32px;
    text-align: center;
}

.success-card p {
    margin: 12px 0 20px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}