* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f5; color: #333; display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #1a1a2e; color: #fff; padding: 20px 0; position: fixed; height: 100vh; }
.logo { font-size: 1.4em; font-weight: bold; padding: 0 20px 20px; border-bottom: 1px solid #333; }
.nav-link { display: block; padding: 12px 20px; color: #ccc; text-decoration: none; }
.nav-link:hover, .nav-link.active { background: #16213e; color: #fff; }
.content { margin-left: 220px; padding: 30px; flex: 1; }
h1 { margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stat-card h3 { font-size: 0.85em; color: #888; margin-bottom: 8px; }
.stat-card p { font-size: 1.5em; font-weight: 600; }
.login-page { justify-content: center; align-items: center; background: #1a1a2e; }
.login-box { background: #fff; padding: 40px; border-radius: 12px; width: 360px; }
.login-box h1 { text-align: center; margin-bottom: 24px; }
.login-box input { width: 100%; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.login-box button { width: 100%; padding: 10px; background: #1a1a2e; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.login-box button:hover { background: #16213e; }
.error { color: #e74c3c; margin-bottom: 12px; text-align: center; }
.form-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; }
.form-card h2 { font-size: 1.1em; margin-bottom: 12px; }
.form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-row input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.form-row button { padding: 8px 16px; background: #1a1a2e; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.form-row button:hover { background: #16213e; }
.btn-danger { padding: 6px 12px; background: #e74c3c; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-danger:hover { background: #c0392b; }
.alert { padding: 12px 16px; border-radius: 6px; margin-top: 12px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert code { display: block; margin-top: 8px; padding: 8px; background: #f8f9fa; border-radius: 4px; word-break: break-all; }
.chat-messages { max-height: 500px; overflow-y: auto; background: #fff; border-radius: 8px; padding: 16px; }
.msg { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.msg.bot { color: #2563eb; }
.msg.user { color: #333; }
