html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #181926;
  font-family: 'Roboto', Arial, sans-serif;
  color: #fff;
  overflow: hidden; /* full app feel */
}
.panel {
  background: #1e2030;
  padding: 28px;
  border-radius: 14px;
  width: 330px;
  box-shadow: 0 0 22px rgba(0,0,0,0.45);
  animation: fadeIn 0.3s ease-out;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #24273a;
  color: #fff;
}

button {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  background: #5b6078;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #6e738d;
}

#error {
  color: #f38ba8;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
}

/* BADGES */
.badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 4px;
}

.badge-ceo { background: #f9e2af; color: #181926; font-weight: 700; }
.badge-admin { background: #f38ba8; color: #181926; }
.badge-staff { background: #89b4fa; color: #181926; }

/* FULLSCREEN CHAT */
.chat-container {
  width: 100%;
  height: 100vh;
  background: #1e2030;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

/* HEADER */
.chat-header {
  padding: 16px 22px;
  border-bottom: 1px solid #24273a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-link,
.logout-link {
  color: #89b4fa;
  text-decoration: none;
  font-size: 13px;
}

.admin-link:hover,
.logout-link:hover {
  text-decoration: underline;
}

#seen-indicator {
  font-size: 12px;
  color: #a5adcb;
}

/* MESSAGES AREA */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #24273a;
  border-radius: 12px;
  position: relative;
}

.message-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-user {
  font-weight: bold;
  font-size: 14px;
}

.message-content {
  margin-top: 6px;
  font-size: 15px;
}

.message-text {
  display: inline-block;
  margin-bottom: 6px;
}

.edited-tag {
  font-size: 11px;
  color: #a5adcb;
}

/* MEDIA */
.msg-media {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  border-radius: 10px;
}

.img-media,
.video-media {
  max-height: 320px;
  object-fit: cover;
}

/* 3-DOT MENU */
.message-menu {
  position: relative;
}

.menu-btn {
  background: transparent;
  border: none;
  color: #a5adcb;
  font-size: 18px;
  padding: 0 6px;
  cursor: pointer;
}

.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 20px;
  background: #1e2030;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 10;
}

.menu-dropdown button {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  text-align: left;
  font-size: 14px;
}

.menu-dropdown button:hover {
  background: #363a4f;
}

.menu-dropdown.show {
  display: block;
}

/* INPUT BAR */
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid #24273a;
  background: #1e2030;
}

#chat-form {
  display: flex;
  gap: 10px;
}

#message-input {
  flex: 1;
  padding: 14px;
  font-size: 15px;
}

#file-input {
  max-width: 160px;
  font-size: 12px;
}

/* ADMIN DASHBOARD */
.admin-container {
  width: 100%;
  height: 100vh;
  background: #1e2030;
  border-radius: 0;
  padding: 20px;
  box-shadow: none;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #24273a;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.admin-actions {
  margin-bottom: 24px;
}

.admin-form-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.admin-form-row input {
  flex: 1;
}

.admin-note {
  font-size: 13px;
  color: #a5adcb;
  margin-top: 8px;
}

.logs-list {
  max-height: 350px;
  overflow-y: auto;
  background: #24273a;
  border-radius: 12px;
  padding: 10px;
}

.log-item {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #313244;
}

.log-item:last-child {
  border-bottom: none;
}

.log-time {
  color: #a5adcb;
  margin-right: 10px;
}
.auth-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;       
  border: 3px solid #6a5acd;
  object-fit: cover;  
  margin-bottom: 15px;
}

.video-media {
  width: 260px;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 6px;
  background: #000;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #181926;
  font-family: "Inter", sans-serif;
}

.auth-box {
  background: #181926;
  padding: 40px 50px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 420px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  animation: fadeIn 0.4s ease;
  text-align: center;
}

.auth-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.auth-box h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: 600;
}

.auth-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  font-size: 16px;
  transition: 0.2s;
}

.auth-box input:focus {
  border-color: #6a5acd;
  background: #222;
  outline: none;
}

.auth-box button {
  width: 100%;
  padding: 14px;
  background: #6a5acd;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.auth-box button:hover {
  background: #7b6df0;
}

.message-timestamp {
  font-size: 12px;
  color: #888;
  margin-left: 10px;
}


@media (max-width: 700px) {

.chat-input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0d0d0d; /* match your theme */
  padding: 12px;
  box-sizing: border-box;
  border-top: 1px solid #222;
  z-index: 9999;
}

#chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#message-input {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  box-sizing: border-box;
}



.file-btn {
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

button[type="submit"] {
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 10px;
  white-space: nowrap;
}

.messages {
  padding-bottom: 110px !important;
}


.file-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 150px;
  overflow: hidden;
}

#file-input {
  font-size: 12px;
  max-width: 120px;
}

#file-name {
  font-size: 0.85rem;
  color: #ccc;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100px;
}


  .auth-panel {
    padding: 22px;
    max-width: 100%;
  }

  .auth-panel input,
  .auth-panel button {
    font-size: 1rem;
    padding: 15px;
  }


}
