/* ========== Dashboard Layout ========== */
.dashboard-container {
  --dashboard-radius: 14px;
  --dashboard-gap: clamp(1rem, 0.8rem + 0.8vw, 1.35rem);
  --dashboard-padding: clamp(1.25rem, 1rem + 1vw, 2rem);

  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: var(--dashboard-gap);
}

/* ========== Header ========== */
.dashboard-title {
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  font-weight: 700;
  margin: 0;
  color: rgba(15, 23, 42, 0.95);
  letter-spacing: -0.01em;
}

/* ========== Action Buttons ========== */
.dashboard-actions {
  display: grid;
  gap: 0.75rem;
}

.dashboard-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.35rem;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--dashboard-radius);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(51, 65, 85, 0.95);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.dashboard-btn:hover {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.dashboard-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.dashboard-btn--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.dashboard-btn--primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.dashboard-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.dashboard-btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.dashboard-btn__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.dashboard-btn--primary .dashboard-btn__icon {
  opacity: 1;
}

.dashboard-btn[disabled],
.dashboard-btn.is-loading {
  cursor: wait;
  opacity: 0.6;
  transform: none !important;
}

.dashboard-btn[disabled]:hover,
.dashboard-btn.is-loading:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* ========== Feedback Messages ========== */
.dashboard-feedback {
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(59, 130, 246, 0.08);
  color: rgba(37, 99, 235, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.dashboard-feedback[hidden] {
  display: none;
}

.dashboard-feedback--error {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(185, 28, 28, 0.95);
  border-color: rgba(239, 68, 68, 0.2);
}

.dashboard-feedback--success {
  background: rgba(34, 197, 94, 0.08);
  color: rgba(21, 128, 61, 0.95);
  border-color: rgba(34, 197, 94, 0.2);
}

/* ========== Rooms Section ========== */
.dashboard-rooms {
  background: white;
  border-radius: var(--dashboard-radius);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dashboard-rooms__title {
  margin: 0;
  padding: var(--dashboard-padding);
  padding-bottom: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.dashboard-rooms__body {
  padding: var(--dashboard-padding);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-rooms__state {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(100, 116, 139, 0.85);
  padding: 0.5rem 0;
}

.dashboard-rooms__state--error {
  color: rgba(185, 28, 28, 0.9);
}

.dashboard-rooms__state--empty {
  color: rgba(100, 116, 139, 0.75);
  font-style: italic;
}

.dashboard-rooms__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.dashboard-rooms__item {
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.2s ease;
}

.dashboard-rooms__item:hover {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.dashboard-rooms__link {
  display: block;
  padding: 0.9rem 1.15rem;
  font-weight: 500;
  color: rgba(37, 99, 235, 0.95);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.dashboard-rooms__link:hover {
  color: rgba(29, 78, 216, 1);
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .dashboard-container {
    padding: 0 0.5rem;
  }

  .dashboard-btn {
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
  }

  .dashboard-rooms__title {
    font-size: 1rem;
  }
}
