body {
  background: #f6f8fb;
  color: #172033;
}

.navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e9edf5;
}

.nav-link {
  color: #334155 !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #2563eb !important;
}

.card {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
}


.btn-primary {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  border: 0;
}
.btn-primary,
.btn-success {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  border: none;
  color: white;
}

.btn-primary:hover,
.btn-success:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline-primary {
  border-color: #2563eb;
  color: #2563eb;
}

.btn-outline-primary,
.btn-outline-secondary {
  background: white;
  border: 1px solid #dbe4f0;
  color: #334155;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background: #f3f7fd;
  color: #2563eb;
  border-color: #2563eb;
}

/* УДАЛЕНИЕ */
.btn-danger,
.btn-outline-danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
}

.btn-danger:hover,
.btn-outline-danger:hover {
  background: #ffe4e6;
  color: #be123c;
}

/* МАЛЕНЬКИЕ КНОПКИ */
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

/* БОЛЬШИЕ */
.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
}
.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid #d8e0ee;
  padding: 0.7rem 0.9rem;
}

.list-group-item {
  border: 0;
  border-bottom: 1px solid #eef2f7;
  padding: 1rem;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #e5eaf3;
}

.progress-bar {
  border-radius: 999px;
}

.badge {
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
}

.container {
  max-width: 1140px;
}

footer {
  background: #ffffff !important;
  border-top: 1px solid #e9edf5 !important;
}
/* ===== КНОПКИ ===== */

#ai-chat-button {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: white;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  z-index: 9999;
}

#ai-chat-window {
  position: fixed;
  right: 25px;
  bottom: 105px;
  width: 380px;
  height: 520px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.chat-header {
  height: 70px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.chat-header button {
  border: none;
  background: transparent;
  color: white;
  font-size: 32px;
  line-height: 1;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f8fafc;
}

.ai-message,
.user-message {
  padding: 10px 13px;
  border-radius: 16px;
  margin-bottom: 10px;
  white-space: pre-wrap;
  font-size: 14px;
}

.ai-message {
  background: white;
  color: #334155;
  border: 1px solid #e2e8f0;
  margin-right: 35px;
}

.user-message {
  background: #2563eb;
  color: white;
  margin-left: 45px;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.chat-input input {
  flex: 1;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}

.chat-input button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: white;
}

@media (max-width: 576px) {
  #ai-chat-window {
    right: 10px;
    bottom: 90px;
    width: calc(100vw - 20px);
    height: 70vh;
  }

  #ai-chat-button {
    right: 18px;
    bottom: 18px;
  }
}