* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #333;
}

.navbar {
    background: #2c3e50;
    color: #fff;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand { font-size: 18px; font-weight: bold; padding: 14px 0; }
.nav-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav-menu a { color: #fff; text-decoration: none; padding: 14px 0; display: inline-block; }
.nav-menu a:hover { color: #3498db; }

.container { max-width: 1200px; margin: 20px auto; padding: 0 20px; }

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.login-box h2 { margin-top: 0; text-align: center; }
.hint { color: #999; font-size: 12px; text-align: center; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-group small { color: #888; }

.form-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 600px;
}

.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-inline input { padding: 8px; border: 1px solid #ddd; border-radius: 4px; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #ecf0f1;
    color: #333;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.btn:hover { background: #d5dbdb; }
.btn-primary { background: #3498db; color: #fff; }
.btn-primary:hover { background: #2980b9; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-warning:hover { background: #e67e22; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-warning { background: #fff3cd; color: #856404; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}
.stat-value { font-size: 28px; font-weight: bold; color: #3498db; }
.stat-label { color: #888; margin-top: 5px; }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.search-form { display: flex; gap: 8px; }
.search-form input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; min-width: 220px; }

.data-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 14px;
    table-layout: fixed;
}
.data-table th, .data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
}
.data-table th { background: #f8f9fa; font-weight: 600; }
.data-table tr:hover { background: #f8f9fa; }
.data-table code { background: #f0f0f0; padding: 2px 5px; border-radius: 3px; font-size: 12px; word-break: break-all; }
.data-table td:last-child {
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }

.pagination { margin-top: 15px; text-align: center; }
.pagination a, .pagination span { padding: 6px 12px; margin: 0 3px; display: inline-block; }
.pagination a { background: #fff; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #333; }
.pagination a:hover { background: #f0f0f0; }
.text-center { text-align: center; }
