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-bottom: 60px;
}

html, body {
    background: #0a1124; /* deep midnight blue */
    color: #e0e6f0;      /* light text for contrast */
}


.avatar-box {
    flex: 1 1 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 2px 2px 12px rgba(10,17,0,0.4);
    border: 0px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* Scale down, never overflow, preserve aspect */
    object-position: center;
    display: block;
    filter: drop-shadow(0 0 8px #1a237e);
    border-radius: 8px;
}

.status-bar {
    background: #1b263b;
    color: #7ec7ff;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 0 auto 12px auto;
    width: fit-content;
    font-style: italic;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(10,17,36,0.15);
    text-align: center;
    transition: opacity 0.3s;
    border: 1px solid #23395d;
}

.top-section {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 20vh; /* No more than 20% of viewport height */
}

.meta-card {
    flex: 1 1 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: #162447;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(10,17,36,0.4);
    padding: 1.5rem 2rem;
    font-size: 1rem;
    color: #e0e6f0;
    border: 1px solid #23395d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.meta-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7ec7ff;
}

.meta-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-card li {
    margin-bottom: 0.5rem;
}

.chat-container {
    background: #162447;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(10,17,36,0.3);
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #e0e6f0;
}

.chat-box {
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    background: #1b263b;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #23395d;
}

.chat-msg {
    margin-bottom: 0.75rem;
    color: #e0e6f0;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.form-control {
    background: #23395d;
    color: #e0e6f0;
    border: 1px solid #395886;
    border-radius: 4px;
}

.form-control:focus {
    background: #23395d;
    color: #fff;
    border-color: #7ec7ff;
    box-shadow: 0 0 0 0.1rem #23395d, 0 0 0 0.25rem #7ec7ff;
}

.btn-primary {
    background: #23395d;
    color: #7ec7ff;
    border: 1px solid #395886;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.btn-primary:hover, .btn-primary:focus {
    background: #7ec7ff;
    color: #162447;
    border-color: #7ec7ff;
}
