/* Base layout unified with 开板票监控管理 */
body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    padding: 15px;
    margin: 0;
    color: #333;
}
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.header h1 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
}
.logout-btn, .refresh-btn, .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}
.logout-btn { background: #dc3545; color: #fff; }
.logout-btn:hover { background: #c82333; }
.btn-primary { background: #007bff; color: #fff; }
.btn-primary:hover { background: #0056b3; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; }
.refresh-btn { background: #6c757d; color: #fff; }
.refresh-btn:hover { background: #5a6268; }

/* Cards & tables */
.stats, .actions, .control-panel, .table-header, .controls, .content-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.loading { text-align: center; padding: 40px; color: #6c757d; }
.error { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.success { background: #d4edda; color: #155724; padding: 15px; border-radius: 4px; margin-bottom: 20px; }

/* Utility */
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; border-radius: 6px; padding: 0 6px; font-size: 12px; }
.badge { display: inline-block; padding: 2px 6px; font-size: 12px; border-radius: 999px; border: 1px solid #e6e8eb; background: #fafafa; color: #555; }

/* Tables */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #dee2e6; }
th { background: #f8f9fa; font-weight: bold; color: #333; }
tr:hover { background: #f8f9fa; }

/* Responsive nav toggle helper (toggleNav is in nav.js) */
@media (max-width: 768px) {
    .header { gap: 12px; }
}
