@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --nav-h: 64px;
  --gap: 5px;
  --gap-sm: 12px;
  --gap-xs: 8px;
}

body {
  background-color: #1e1e1e;
  color: #e0e0e0;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: var(--nav-h);
}

header.navbar {
  background-color: #2c2c2c;
  border-top: 1px solid #444;
  left: 0;
  right: 0;
  bottom: 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

header.navbar .container-fluid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nav-links > * {
  margin-inline: 2px;
}

.navbar-brand.square-btn {
  background-color: #fe2c55;
  color: #fff;
  padding: 8px 12px;
  border-radius: 0;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  margin: 0;
}

.nav-links .btn,
.nav-links .btn4 {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  line-height: 1.1;
}

.nav-links .btn i {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.btn3 {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(37, 37, 37);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.9rem;
  color: #fff;
  flex: 0 0 auto;
}

.btn4 .obolochka {
  display: flex;
  align-items: center;
  justify-content: center;
}

.obolochka.active {
  border: #ffffff solid 1px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  display: inline-flex;
}

.btn4 .img_btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #424242;
  position: relative;
}

.img_btn.active {
  width: 24px;
  height: 24px;
}

.container {
  background-color: #252525;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  margin: 20px;
  padding: 16px;
}

.alert {
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding: 12px;
}

.alert-success {
  background-color: #2e7d32;
}

.alert-danger {
  background-color: #c62828;
}

.alert-warning {
  background-color: #f57c00;
}

.alert-info {
  background-color: #0277bd;
}

.btn-close {
  cursor: pointer;
  filter: invert(100%);
  float: right;
}

button {
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

input,
textarea,
select {
  background-color: #2c2c2c;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 8px;
  font-family: 'Montserrat', sans-serif;
}

.feed-icon {
  width: 20px;
  height: auto;
  margin-bottom: 5px;
}

@media (max-width: 480px) {
  :root {
    --gap: var(--gap-sm);
  }
  .nav-links .btn,
  .nav-links .btn4 {
    font-size: 0.8rem;
  }
  .nav-links .btn i {
    font-size: 1.2rem;
  }
  .btn3 {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
  .btn4 .img_btn {
    width: 24px;
    height: 24px;
  }
  .obolochka.active {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 380px) {
  :root {
    --gap: var(--gap-xs);
  }
  .nav-links .btn,
  .nav-links .btn4 {
    font-size: 0.72rem;
  }
  .nav-links .btn i {
    font-size: 1rem;
  }
  .btn3 {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  .btn4 .img_btn {
    width: 22px;
    height: 22px;
  }
  .obolochka.active {
    width: 24px;
    height: 24px;
  }
}

#arc-reactor {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #7ee3ff 0%, #46c6ff 40%, #0aa7ff 62%, #0576b8 80%, #024d7a 100%);
  box-shadow: 0 0 8px rgba(0, 174, 255, 0.8), 0 0 20px rgba(0, 174, 255, 0.6), inset 0 0 18px rgba(255, 255, 255, 0.5);
  border: 2px solid #0ab0ff;
  z-index: 1100;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s ease;
}

#arc-reactor::before {
  content: "";
  width: 74px;
  height: 74px;
  border-radius: 50%;
  position: absolute;
  border: 2px solid rgba(0, 190, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 190, 255, 0.6), inset 0 0 12px rgba(0, 190, 255, 0.4);
  filter: blur(0.3px);
}

#arc-reactor .core {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #e7fbff 0%, #baf1ff 60%, #73dbff 100%);
  box-shadow: 0 0 20px rgba(171, 238, 255, 0.9), inset 0 0 8px rgba(255, 255, 255, 0.8);
}

#arc-reactor:hover {
  transform: translateY(-2px) scale(1.02);
}

#arc-reactor.listening {
  animation: arcPulse 1.2s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(0, 214, 255, 0.95), 0 0 36px rgba(0, 214, 255, 0.6), inset 0 0 24px rgba(255, 255, 255, 0.7);
}

@keyframes arcPulse {
  0% {
    filter: drop-shadow(0 0 0px rgba(0, 214, 255, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(0, 214, 255, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 0px rgba(0, 214, 255, 0.6));
  }
}

@media (max-width: 480px) {
  #arc-reactor {
    right: 14px;
    bottom: 84px;
    width: 62px;
    height: 62px;
  }
  #arc-reactor::before {
    width: 70px;
    height: 70px;
  }
  #arc-reactor .core {
    width: 24px;
    height: 24px;
  }
}

#arc-reactor {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #7ee3ff 0%, #46c6ff 40%, #0aa7ff 62%, #0576b8 80%, #024d7a 100%);
  box-shadow: 0 0 8px rgba(0, 174, 255, 0.8), 0 0 24px rgba(0, 174, 255, 0.7), inset 0 0 22px rgba(255, 255, 255, 0.6);
  border: 2px solid #0ab0ff;
  z-index: 1100;
  display: grid;
  place-items: center;
  cursor: pointer;
  animation: arcPulse 1.5s infinite ease-in-out;
}

#arc-reactor::before {
  content: "";
  width: 82px;
  height: 82px;
  border-radius: 50%;
  position: absolute;
  border: 2px solid rgba(0, 190, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 190, 255, 0.6), inset 0 0 14px rgba(0, 190, 255, 0.5);
  filter: blur(0.4px);
}

#arc-reactor .core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #e7fbff 0%, #baf1ff 60%, #73dbff 100%);
  box-shadow: 0 0 24px rgba(171, 238, 255, 0.95), inset 0 0 10px rgba(255, 255, 255, 0.85);
}

@keyframes arcPulse {
  0%   { filter: drop-shadow(0 0 0px rgba(0, 214, 255, 0.6)); }
  50%  { filter: drop-shadow(0 0 14px rgba(0, 214, 255, 0.95)); }
  100% { filter: drop-shadow(0 0 0px rgba(0, 214, 255, 0.6)); }
}

@media (max-width: 480px) {
  #arc-reactor {
    right: 14px;
    bottom: 84px;
    width: 62px;
    height: 62px;
  }
  #arc-reactor::before {
    width: 70px;
    height: 70px;
  }
  #arc-reactor .core {
    width: 24px;
    height: 24px;
  }
}