* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* === Login Card === */
.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    text-align: center;
}

.login-card .logo { margin-bottom: 8px; }
.panda-icon { font-size: 56px; display: block; line-height: 1; }
.login-card h1 { font-size: 20px; color: #1a1a1a; margin-bottom: 4px; }
.login-card h2 { font-size: 14px; color: #888; font-weight: normal; margin-bottom: 24px; }

.login-form { text-align: left; }

/* === Check Card === */
.check-card {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* === Admin Card === */
.admin-card {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 1100px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* === Header Bar === */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #1a1a2e;
    color: #fff;
}

.header-bar h1 { font-size: 18px; }
.header-left { display: flex; align-items: center; gap: 10px; }
.panda-icon-header { font-size: 28px; line-height: 1; }
.header-right { display: flex; align-items: center; gap: 12px; }

.user-badge {
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 14px;
}
.admin-badge { background: #f0ad4e; color: #1a1a2e; }
.service-badge { background: #5cb85c; color: #fff; }

/* === Check Main === */
.check-main { padding: 32px 24px; }
.check-main h2 { font-size: 18px; margin-bottom: 8px; }
.hint { color: #888; font-size: 13px; margin-bottom: 24px; }

.check-form { margin-bottom: 24px; }
.input-group {
    display: flex;
    gap: 12px;
}
.input-group input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s;
}
.input-group input:focus { border-color: #4a90d9; }

/* === Result Box === */
.result-box {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}
.result-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.result-dup { background: #fff7e6; border: 1px solid #ffd591; color: #d46b08; }
.result-ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }

.result-icon { font-size: 36px; margin-bottom: 8px; }
.result-msg { font-size: 16px; font-weight: 600; }
.result-detail { font-size: 13px; margin-top: 6px; opacity: 0.8; }

/* === Tips === */
.tips {
    background: #fafafa;
    padding: 16px 20px;
    border-radius: 8px;
}
.tips h3 { font-size: 14px; margin-bottom: 8px; color: #666; }
.tips ul { padding-left: 20px; font-size: 13px; color: #888; line-height: 1.8; }

/* === Admin Tabs === */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 24px;
}
.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}
.tab-btn.active { color: #4a90d9; border-bottom-color: #4a90d9; }
.tab-btn:hover { color: #4a90d9; }

.tab-content { display: none; padding: 24px; }
.tab-content.active { display: block; }

/* === Toolbar === */
.toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.toolbar input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    outline: none;
}
.toolbar input:focus { border-color: #4a90d9; }

/* === Table === */
.table-wrap {
    overflow-x: auto;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th {
    background: #fafafa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}
td {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }
td.empty { text-align: center; padding: 40px; color: #ccc; }

.action-cell { white-space: nowrap; }

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

/* === Upload Area === */
.upload-area h3 { font-size: 16px; margin-bottom: 8px; }
.upload-area > p { color: #888; font-size: 13px; margin-bottom: 16px; }
.file-input-wrap { margin-bottom: 12px; }
.file-input-wrap input[type="file"] { display: none; }

/* === Inline Form === */
.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.inline-form input[type="text"],
.inline-form input[type="password"] {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.inline-form input:focus { border-color: #4a90d9; }
.inline-form select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    cursor: pointer;
}
.inline-form select:focus { border-color: #4a90d9; }
.checkbox-label { font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 4px; }

/* === Select (service page) === */
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    cursor: pointer;
    margin-bottom: 16px;
}
.form-group select:focus { border-color: #4a90d9; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: #4a90d9; color: #fff; }
.btn-primary:hover { background: #3a7bc8; }
.btn-outline { background: #fff; color: #666; border: 1px solid #d9d9d9; }
.btn-outline:hover { color: #4a90d9; border-color: #4a90d9; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #e0383a; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { width: 100%; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.form-group input:focus { border-color: #4a90d9; }

/* === Alerts === */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.alert-ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.alert-warn { background: #fffbe6; border: 1px solid #ffe58f; color: #d48806; }
.alert-warn ul { margin: 4px 0 0 16px; font-size: 12px; }

/* === Footer === */
.login-footer {
    margin-top: 20px;
    font-size: 13px;
}
.login-footer a { color: #4a90d9; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
.contact-info {
    margin-top: 12px;
    color: #999;
    font-size: 12px;
}

/* === Contact Bar (check page) === */
.contact-bar {
    margin-top: 16px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.text-muted { color: #aaa; font-size: 13px; }

.user-form-area { margin-bottom: 8px; }
.user-form-area h3 { font-size: 15px; margin-bottom: 10px; }

/* === Tags === */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.tag-admin { background: #f0ad4e; color: #1a1a2e; }
.tag-service { background: #5cb85c; color: #fff; }
.tag-employee { background: #e0e0e0; color: #666; }


.type-select {
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    outline: none;
    cursor: pointer;
    min-width: 120px;
    transition: border-color .2s;
}
.type-select:focus { border-color: #4a90d9; }
