* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef0f5;
  color: #374151;
}

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

.login-card {
  width: 380px;
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.topbar {
  height: 88px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1 {
  margin: 0;
}

.topbar p {
  margin: 4px 0 0;
  color: #6b7280;
}

.logout,
.button-link {
  display: inline-block;
  text-decoration: none;
  background: #1473ff;
  color: white;
  padding: 11px 16px;
  border-radius: 8px;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.container {
  padding: 28px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.practice-card {
  background: white;
  color: inherit;
  text-decoration: none;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.practice-card h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.empty {
  background: white;
  padding: 20px;
  border-radius: 12px;
}

.layout {
  display: flex;
  min-height: calc(100vh - 88px);
}

.sidebar {
  width: 260px;
  background: #111827;
  padding: 22px;
}

.sidebar button {
  width: 100%;
  margin-bottom: 10px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: #374151;
  color: white;
  cursor: pointer;
  text-align: left;
}

.sidebar button:hover {
  background: #4b5563;
}

.content {
  flex: 1;
  padding: 28px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

label {
  display: block;
  margin-top: 14px;
  color: #4b5563;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
}

textarea {
  min-height: 90px;
}

button,
.button-link {
  cursor: pointer;
}

button {
  background: #1473ff;
  color: white;
  border: 0;
  padding: 12px 16px;
  border-radius: 8px;
}

.secondary {
  background: white;
  color: #374151;
  border: 1px solid #9ca3af;
}

.danger-btn {
  background: #dc2626;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}

.chip {
  background: white;
  color: #1473ff;
  border: 1px solid #1473ff;
}

.chip.selected {
  background: #1473ff;
  color: white;
}

.item {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px;
  margin-top: 14px;
}

.status-ok {
  color: #15803d;
  font-weight: bold;
}

.status-ko {
  color: #b91c1c;
  font-weight: bold;
}

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

pre {
  background: #111827;
  color: #e5e7eb;
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
}

.success {
  background: #dcfce7;
  color: #166534;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.practice-card {
  overflow: hidden;
}

.practice-card p,
.practice-card h3 {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.practice-card p {
  line-height: 1.25;
}