/* ——— Admin Portal Tabs ——— */
.sam-admin-portal {
  max-width: 900px;
  margin: 2em auto;
  padding: 1em;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.sam-admin-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 1.5em;
}
.sam-admin-tab {
  padding: 0.6em 1em;
  margin-right: 0.5em;
  text-decoration: none;
  color: #555;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transition: background 0.2s;
}
.sam-admin-tab.active {
  background: #fff;
  color: #222;
  border-color: #ddd;
  border-bottom-color: #fff;
}
.sam-admin-tab:not(.active):hover {
  background: #f9f9f9;
  color: #333;
}
.sam-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sam-logout-link {
  color: #c0392b;
  text-decoration: none;
  font-weight: bold;
}
.sam-logout-link:hover {
  text-decoration: underline;
}
.sam-apply-auth-forms {
  display: flex;
  gap: 2rem;
}
.sam-login-form,
.sam-register-form {
  flex: 1;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 4px;
  background: #fafafa;
}

/* Apply Page Layout */
.sam-apply-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
}
.sam-apply-form,
.sam-apply-sidebar {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem;
}
.sam-apply-form {
  flex: 2;
}
.sam-apply-sidebar {
  flex: 1;
}

/* Form styling */
.sam-form-group {
  margin-bottom: 1.25rem;
}
.sam-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.sam-form-group select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Button styling */
.sam-btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.sam-btn-primary:hover {
  background: #006799;
}

/* Sidebar list */
.sam-rooms-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sam-rooms-list li {
  margin-bottom: 1rem;
}
.sam-rooms-list li strong {
  display: block;
  margin-bottom: 0.25rem;
}
/* ------------------------------------------------------------------
   Available Rooms: grid layout and card styling
   ------------------------------------------------------------------ */

/* Container UL for rooms */
.sam-rooms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual room “card” */
.sam-rooms-list li {
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1rem;
  transition: transform 0.2s ease;
}

/* Lift on hover */
.sam-rooms-list li:hover {
  transform: translateY(-4px);
}

/* Room title */
.sam-rooms-list li h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

/* Room details paragraph(s) */
.sam-rooms-list li p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

/* “Apply” button/link */
.sam-rooms-list li .sam-apply-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 3px;
  transition: transform 0.2s ease;
}

/* Button hover lift */
.sam-rooms-list li .sam-apply-button:hover {
  transform: translateY(-2px);
}
/* ───────────────────────────────────────────────────────── */
/* 3b) Grid‑style applications list                       */
/* ───────────────────────────────────────────────────────── */
.sam-dashboard-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sam-dashboard-list .sam-dashboard-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sam-dashboard-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.sam-dashboard-item .sam-status {
  font-weight: bold;
}

/* Status color‑coding */
.sam-status-pending  { color: #d9822b; }
.sam-status-approved { color: #2b8a3e; }
.sam-status-denied   { color: #c92a2a; }

/* ───────────────────────────────────────────────────────── */
/* 3a & 3c) Inline CTA when no apps exist                  */
/* ───────────────────────────────────────────────────────── */
.sam-apply-cta {
  text-align: center;
  margin: 2rem 0;
}

.sam-apply-button.large {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0069ff;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.15rem;
}

.sam-apply-button.large:hover {
  background: #0053c7;
}

