html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Chat theme: green / yellow / white */
:root{
  --chat-bg:#ffffff;
  --chat-panel:#ffffff;
  --chat-green:#2ecc71;
  --chat-yellow:#f1c40f;
  --chat-text:#000000;
}

body { background: var(--chat-bg); color: var(--chat-text); }
.card.bg-dark, .card.bg-black, .card { background: var(--chat-panel) !important; border: 1px solid #e9e9e9; }
.btn-success { background: var(--chat-green); border-color: var(--chat-green); color:#fff }
.btn-warning { background: var(--chat-yellow); border-color: var(--chat-yellow); color:#000 }
.navbar { background: #ffffff; border-bottom: 1px solid #e9e9e9; flex-shrink: 0; }
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.navbar .navbar-brand, .navbar .nav-link { color: var(--chat-green) !important; }

.list-group-item.bg-black { background: transparent; border: none }

.card{
    margin:10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  body {
    padding: 0;
  }

  .container-fluid {
    padding: 0;
  }

  .row {
    margin: 0 !important;
  }

  [class*="col-"] {
    padding: 0 !important;
    margin: 0 !important;
  }

  .card {
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e9e9e9;
  }

  .card-body {
    padding: 10px !important;
  }

  .input-group {
    flex-wrap: wrap;
  }

  .input-group input,
  .input-group button {
    font-size: 14px;
    padding: 8px;
  }

  .btn-sm {
    padding: 6px 8px;
    font-size: 12px;
  }

  img.rounded-circle {
    width: 32px !important;
    height: 32px !important;
  }

  #messages {
    max-height: 50vh;
  }

  #members {
    max-height: 30vh;
  }

  #dmPanel {
    width: 100%;
    max-width: 100%;
    bottom: 0 !important;
    right: 0 !important;
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 480px) {
  [class*="col-md-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .card {
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #e9e9e9;
  }

  .navbar-brand {
    font-size: 18px;
  }

  .btn {
    font-size: 12px;
    padding: 6px 8px;
  }

  h4, h5 {
    font-size: 16px;
  }

  #messageInput {
    font-size: 14px;
  }

  #messages {
    padding: 8px;
    max-height: 45vh;
  }

  #members {
    max-height: 25vh;
  }
}