body {
    margin: 0;
    font-family: Arial, "Microsoft JhengHei", sans-serif;
    background: #f5f7fb;
    color: #222;
}
.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}
.site-header, .site-footer {
    background: #1e293b;
    color: #fff;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo a, .nav a, .site-footer {
    color: #fff;
    text-decoration: none;
}
.nav a {
    margin-left: 14px;
}
.main-area {
    padding: 28px 0 40px;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    cursor: pointer;
}
.btn.secondary {
    background: #475569;
}
.btn.danger {
    background: #dc2626;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.table th, .table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.form-row {
    margin-bottom: 14px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}
input[type="text"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
}
textarea {
    min-height: 100px;
}
.notice {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}
.notice.success { background: #dcfce7; color: #166534; }
.notice.error { background: #fee2e2; color: #991b1b; }
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 12px;
}
.hero {
    padding: 26px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-radius: 16px;
    margin-bottom: 20px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
@media (max-width: 768px) {
    .header-flex {
        display: block;
    }
    .nav {
        margin-top: 10px;
    }
    .nav a {
        display: inline-block;
        margin: 0 10px 10px 0;
    }
}
