/* cam6 — Custom styles */

/* Bootstrap Icons font override */
.bi::before, [class*=" bi-"]::before, [class^="bi-"]::before {
  font-family: bootstrap-icons !important;
}

/* Smooth transitions for theme switching */
:root {
  --cam6-transition-speed: 0.2s;
}

body, .card, .navbar, .form-control, .btn {
  transition: background-color var(--cam6-transition-speed) ease,
              border-color var(--cam6-transition-speed) ease,
              color var(--cam6-transition-speed) ease;
}

/* Full-height layout */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--bs-body-bg);
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Video stream container */
.video-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background: #000;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}

.video-container canvas {
  width: 100%;
  height: auto;
  display: block;
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
  padding: 0 1rem;
  margin: 0 auto;
}

/* Center login form vertically: make main a flex container when it contains login-wrapper */
main:has(.login-wrapper) {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Telegram button */
.btn-telegram {
  background-color: #0088cc;
  color: #fff;
  border: none;
}

.btn-telegram:hover {
  background-color: #0077b3;
  color: #fff;
}

/* Responsive video on small screens */
@media (max-width: 576px) {
  .video-container {
    border-radius: 0;
  }
}
