* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #F8F4EE;
  color: #1f1f1f;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #4A2C1F;
  color: white;
  padding: 24px 18px;
}

.sidebar h2 {
  margin: 0 0 28px;
  font-size: 22px;
}

.sidebar a {
  display: block;
  color: #F8F4EE;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.sidebar a.active,
.sidebar a:hover {
  background: #7A3E16;
}

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

h1 {
  color: #4A2C1F;
  margin: 0;
}

.muted {
  color: #7b6b60;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: white;
  border: 1px solid #E8DDD2;
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  color: #1f1f1f;
}

.card h3 {
  margin-top: 0;
  color: #7A3E16;
}

.formBox,
.tableBox {
  background: white;
  border: 1px solid #E8DDD2;
  border-radius: 18px;
  padding: 20px;
  margin-top: 22px;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: #4A2C1F;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  height: 42px;
  border: 1px solid #D8C5B6;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
}

textarea {
  height: 80px;
  padding-top: 10px;
}

.full {
  grid-column: span 3;
}

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

button {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: #7A3E16;
  color: white;
}

.secondary {
  background: #EFE3D7;
  color: #4A2C1F;
}

.danger {
  background: #D04E2C;
  color: white;
}

.success {
  background: #2F8E59;
  color: white;
}

.warning {
  background: #B7791F;
  color: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #EFE3D7;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  color: #4A2C1F;
  background: #FBF7F2;
}

.badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.live {
  background: #D7F1E2;
  color: #2F8E59;
}

.upcoming {
  background: #EFE3D7;
  color: #7A3E16;
}

.completed {
  background: #E5E7EB;
  color: #374151;
}

.cancelled {
  background: #FEE2E2;
  color: #B91C1C;
}

.rowActions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rowActions button {
  padding: 8px 10px;
  font-size: 12px;
}

small.muted {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.repeatRow {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #E8DDD2;
  border-radius: 14px;
  background: #FBF7F2;
}

.repeatGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.repeatRow .danger {
  margin-top: 12px;
}

.checkboxDropdown {
  position: relative;
}

.checkboxDropdownBtn {
  width: 100%;
  height: 42px;
  background: white;
  border: 1px solid #D8C5B6;
  border-radius: 10px;
  padding: 0 12px;
  color: #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.checkboxDropdownMenu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 48px;
  background: white;
  border: 1px solid #D8C5B6;
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.checkboxDropdown.open .checkboxDropdownMenu {
  display: block;
}

.checkboxItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #F0E7DE;
  font-size: 13px;
  color: #4A2C1F;
  cursor: pointer;
}

.checkboxItem:last-child {
  border-bottom: 0;
}

.checkboxItem:hover {
  background: #FBF7F2;
}

.checkboxItem input {
  width: auto;
  height: auto;
  margin: 0;
}

.statusStack {
  display: inline-block;
  margin-top: 8px;
}

.actionPairs {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.actionPair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.actionPair.single {
  grid-template-columns: 1fr;
}

.actionPairs button {
  width: 100%;
}

.endBtn {
  background: #D04E2C;
  color: white;
}

.labelHint {
  margin-left: 8px;
  color: #8B7A6B;
  font-size: 11px;
  font-weight: 500;
}