* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f9;
    color: #1a1a2e;
    line-height: 1.5;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

h1, h2, h3 {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4f6ef7;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
}

input[readonly] {
    background: #f0f2f5;
    color: #666;
    cursor: not-allowed;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: #4f6ef7;
    color: #fff;
}

.btn-primary:hover {
    background: #3b57d9;
}

.btn-secondary {
    background: #e8ecf1;
    color: #333;
}

.btn-secondary:hover {
    background: #d5dbe3;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #e8ecf1;
    color: #888;
}

.step.active {
    background: #4f6ef7;
    color: #fff;
}

.step.done {
    background: #27ae60;
    color: #fff;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e8ecf1;
}

th {
    background: #f8f9fb;
    font-weight: 600;
}

code {
    display: block;
    background: #1a1a2e;
    color: #a8e6cf;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    word-break: break-all;
    margin: 12px 0;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active { background: #d4edda; color: #155724; }
.badge-completed { background: #cce5ff; color: #004085; }
.badge-expired { background: #f8d7da; color: #721c24; }

.nav {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8ecf1;
}

.nav a {
    color: #4f6ef7;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.nav a:hover {
    text-decoration: underline;
}

.upload-area {
    border: 2px dashed #d0d5dd;
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    color: #888;
    margin-bottom: 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: #4f6ef7;
}

.camera-box {
    width: 100%;
    max-width: 400px;
    height: 280px;
    background: #1a1a2e;
    border-radius: 10px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

.preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 8px;
}

.login-box {
    max-width: 400px;
    margin: 80px auto;
}
