body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  background: #f4f6f9;
  margin: 0;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
}

h1, h2 {
  margin-top: 0;
}

button {
  background: #2d7ef7;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #1e66d0;
}

button.secondary {
  background: #6c757d;
}

button.secondary:hover {
  background: #555d64;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* index layout */
.top-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.mini-calendar-card {
  position: sticky;
  top: 20px;
}

.main-calendar-card {
  min-width: 0;
}

.week-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.week-label {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 14px;
  color: #1b4f9a;
}

.calendar-wrapper {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 900px;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #ccc;
  padding: 8px;
  vertical-align: top;
  text-align: center;
}

.calendar-table th {
  background: #e9f1ff;
  font-weight: bold;
}

.room-header {
  width: 120px;
}

.calendar-cell {
  cursor: pointer;
  min-height: 140px;
  background: #fafcff;
  transition: background 0.2s;
}

.calendar-cell:hover {
  background: #eef5ff;
}

.empty-cell-label {
  color: #888;
  font-size: 13px;
  margin-top: 8px;
}

.reservation-summary {
  background: #d9ecff;
  border-left: 4px solid #2d7ef7;
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 6px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
}

.reservation-summary:hover {
  background: #c8e3ff;
}

.reservation-time {
  font-weight: bold;
  color: #1b4f9a;
}

.reservation-main {
  color: #333;
}

.small-btn {
  background: #2d7ef7;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 8px;
}

.small-btn:hover {
  background: #1e66d0;
}

/* form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input,
select {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

input[type="text"],
select {
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
}

.time-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.time-range select {
  width: auto;
  min-width: 72px;
  max-width: none;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* mini calendar */
.mini-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mini-calendar-header span {
  font-weight: bold;
  font-size: 18px;
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.mini-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #555;
  padding: 4px 0;
}

.mini-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.mini-day:hover {
  background: #eef5ff;
}

.mini-day.empty {
  background: #f8f8f8;
  border: 1px solid #f0f0f0;
  cursor: default;
}

.mini-day.selected-week {
  background: #2d7ef7;
  color: white;
  font-weight: bold;
  border-color: #2d7ef7;
}

.mini-day.today {
  outline: 2px solid #f59e0b;
  outline-offset: -2px;
}

.mini-calendar-note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

/* responsive */
@media (max-width: 1000px) {
  .top-layout {
    grid-template-columns: 1fr;
  }

  .mini-calendar-card {
    position: static;
  }
}
