* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef3f8;
  color: #0f172a;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.login-screen {
  min-height: 100vh;
  background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 390px;
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.logo-square {
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: bold;
  margin-bottom: 18px;
}

.small-title {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 8px 0 22px;
  font-size: 28px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #475569;
  margin: 12px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  background: white;
}

.primary-btn {
  background: #2563eb;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: bold;
}

.secondary-btn {
  background: white;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: bold;
}

.danger-btn {
  background: transparent;
  color: #b91c1c;
  border: 0;
  font-weight: bold;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 180px;
  background: white;
  border-right: 1px solid #dbe3ea;
  padding: 18px 12px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: bold;
}

.brand strong {
  display: block;
}

.brand span {
  font-size: 12px;
  color: #64748b;
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 6px;
}

.nav-item.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.main {
  flex: 1;
  padding: 24px;
}

.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.workspace {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
}

.card {
  background: white;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  background: white;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  padding: 18px;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
}

.empty-box {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: #64748b;
}

.room-card {
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
  background: #fbfdff;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

@media (max-width: 800px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .brand {
    min-width: 150px;
    margin-bottom: 0;
  }

  .nav-item {
    min-width: 130px;
  }

  .main {
    padding: 16px;
  }

  .grid-2,
  .stats {
    grid-template-columns: 1fr;
  }
}