/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

:root {
  --bg: #0d1117;
  --card: #161b22;
  --card-light: #1c2128;
  --border: #30363d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #1f6feb;
  --danger: #f85149;
}

/* Body */
body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
  min-height: 100vh;
}

/* Card Container */
.card {
  background: var(--card);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 950px;
  animation: fadeIn 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Profile Section */
.profile {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
}
.profile.small img {
  width: 70px;
  height: 70px;
}
.profile h1 {
  font-size: 1.6rem;
  font-weight: 600;
}
.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Headings */
h2 {
  font-size: 1.2rem;
  font-weight: 600;
  border-left: 4px solid var(--accent);
  padding-left: 8px;
  margin-bottom: 12px;
}

/* Sections */
section {
  background: var(--card-light);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Form Elements */
textarea,
input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  margin-top: 6px;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
}
textarea:focus,
input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Labels */
label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: block;
}

/* Buttons */
button,
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
button:hover,
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn.danger {
  background: var(--danger);
}
.btn.danger:hover {
  background: #c93c34;
}

/* Notes, Error */
.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.error {
  color: var(--danger);
  background: rgba(248, 81, 73, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* Table */
.msgs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 10px;
}
.msgs th,
.msgs td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.msgs th {
  background: var(--card);
  font-weight: 600;
}
.msgs tr:hover {
  background: rgba(88, 166, 255, 0.08);
}

/* Message Box */
.messageBox {
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  border: 1px solid var(--border);
}

/* Dashboard Actions */
.dash-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}