/* pages/assets/style.css */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #f8fafc;
}

.auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card input,
.auth-card button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  font-size: 14px;
}

.auth-card input {
  background: #0f172a;
  color: #f8fafc;
}

.app-layout {
  height: 100dvh;
  display: flex;
}

.sidebar {
  width: 320px;
  background: #1e293b;
  border-right: 1px solid #334155;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.me-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #334155;
}

.section-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.room-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
}

.room-btn:hover,
.room-btn.active {
  background: #2563eb;
  color: #ffffff;
}

.group-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.group-box input[type="text"] {
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
}

.members-box {
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header {
  padding: 12px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  font-weight: 600;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 75%;
}

.msg-bubble {
  background: #1e293b;
  border-radius: 10px;
  padding: 8px 12px;
}

.msg-author {
  font-size: 12px;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 2px;
}

.composer {
  padding: 10px 14px;
  background: #1e293b;
  border-top: 1px solid #334155;
  display: flex;
  gap: 8px;
  align-items: center;
}

#msg {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
}

button {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: #334155;
}

button.danger {
  background: #dc2626;
  padding: 6px 10px;
  font-size: 12px;
}

@media (max-width: 767px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    max-height: 44dvh;
    border-right: none;
    border-bottom: 1px solid #334155;
  }
}
