:root {
  --bg-color: #0d1117;
  --panel-bg: rgba(22, 27, 34, 0.8);
  --accent-color: #58a6ff;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Outfit", "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
}

.header-bar {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.container--narrow {
  max-width: 732px;
}

.btn {
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-success {
  background: linear-gradient(135deg, #238636, #2ea043);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #1f6feb, #58a6ff);
  color: white;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.form-control {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
}

.display-3 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #58a6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
}

.avatar-tiny {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.body-content {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.live-search-field {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent-color);
  color: white;
  font-size: 2rem;
  padding: 1rem;
  width: 100%;
}

.chat-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.chat-title-bar {
  padding: 10px 15px;
  background: var(--accent-color);
  color: white;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
}

.chat-log {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.chat-field {
  padding: 12px;
  border: none;
  background: var(--bg-color);
  color: white;
  border-radius: 0 0 12px 12px;
}

.floating-alerts {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
}

.alert {
  padding: 1rem 2rem;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

.alert-success { background: #238636; color: white; }
.alert-danger { background: #da3633; color: white; }

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.list-group-item {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.list-group-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
}

.tag-badge {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 5px;
}

footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-align: center;
}
