* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1115;
  color: #e4e6eb;
}

.login-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: #1a1d24;
  padding: 40px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.login-box h1 {
  font-size: 22px;
  margin-bottom: 4px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #8a8f98;
  margin-bottom: 24px;
  font-size: 13px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #2a2e37;
  background: #12141a;
  color: #e4e6eb;
  font-size: 14px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #4f7cff;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.login-box button:hover { background: #3d68f0; }

.error { color: #ff6b6b; margin-top: 10px; font-size: 13px; text-align: center; }

/* ---- Dashboard ---- */

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #2a2e37;
}

.dash-header h1 { font-size: 18px; }

.dash-header button {
  background: #2a2e37;
  color: #e4e6eb;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.dash-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.create-app-box {
  background: #1a1d24;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
}

.create-app-box input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #2a2e37;
  background: #12141a;
  color: #e4e6eb;
}

.create-app-box button {
  background: #4f7cff;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.app-card {
  background: #1a1d24;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.app-card-top h3 { font-size: 16px; }

.app-card-top .sub-count {
  background: #2a2e37;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #8a8f98;
}

.app-card .meta {
  font-size: 12px;
  color: #8a8f98;
  margin-bottom: 14px;
  word-break: break-all;
}

.app-card .btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-card .btn-row button {
  padding: 7px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.btn-snippet { background: #2a2e37; color: #e4e6eb; }
.btn-send { background: #4f7cff; color: white; }
.btn-delete { background: #3a2226; color: #ff8a8a; }

.snippet-box, .send-box {
  margin-top: 14px;
  background: #12141a;
  padding: 14px;
  border-radius: 8px;
  display: none;
}

.snippet-box pre {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 12px;
  color: #8ff08f;
}

.send-box input, .send-box textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid #2a2e37;
  background: #1a1d24;
  color: #e4e6eb;
  font-family: inherit;
}

.send-box button {
  background: #4f7cff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
