/* items.css */

.items-index {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.items-index h1 {
  margin-bottom: 24px;
  color: #2c3e50;
  font-size: 32px;
}

.items-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.item-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.item-card-header {
  padding: 22px 20px 16px;
  background: #f4f7fb;
}

.item-card-header h2 {
  margin: 0;
  font-size: 22px;
  color: #1f3d67;
}

.item-card-body {
  padding: 20px;
}

.item-card-body p {
  margin: 10px 0;
  color: #4a5568;
}

.item-card-footer {
  padding: 18px 20px 24px;
  text-align: center;
  background: #fcfdff;
}

.item-card-footer a {
  display: inline-block;
  padding: 12px 22px;
  background: #2962ff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.item-card-footer a:hover {
  background: #1a4ed0;
}

.items-show {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.item-detail {
  background: white;
  border-radius: 14px;
  border: 1px solid #e1e8ed;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 28px;
}

.item-detail h1 {
  margin-bottom: 20px;
  font-size: 30px;
  color: #1f3d67;
}

.item-detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.item-detail-row span {
  color: #4a5568;
}

.item-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: #0b6e4f;
  margin-bottom: 26px;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.item-actions .btn-primary,
.item-actions .btn-secondary {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

.item-actions .btn-primary {
  background: #2962ff;
  color: white;
}

.item-actions .btn-secondary {
  background: #f1f5f9;
  color: #32435b;
}

.item-actions .btn-primary:hover {
  background: #1a4ed0;
}

.item-actions .btn-secondary:hover {
  background: #dfe7ef;
}

@media (max-width: 768px) {
  .item-detail-row {
    grid-template-columns: 1fr;
  }

  .item-actions {
    flex-direction: column;
  }
}
/* mypages.css */

.mypages-show {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.mypages-show h1 {
  margin-bottom: 16px;
  color: #1f3d67;
  font-size: 32px;
}

.user-info {
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.user-info p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.reservations-list {
  display: grid;
  gap: 18px;
}

.reservation-item {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.reservation-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #2962ff, #4f8cff);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reservation-header h3 {
  margin: 0;
  font-size: 20px;
}

.reservation-status {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.reservation-status.pending {
  background: rgba(255, 255, 255, 0.18);
}

.reservation-status.in-progress {
  background: rgba(255, 255, 255, 0.18);
}

.reservation-status.completed {
  background: rgba(255, 255, 255, 0.18);
}

.reservation-body {
  padding: 22px;
}

.reservation-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.reservation-row:last-child {
  margin-bottom: 0;
}

.reservation-label {
  font-weight: 700;
  color: #334155;
}

.reservation-value {
  color: #475569;
}

.reservation-footer {
  padding: 18px 22px 22px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reservation-action-button {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: white;
  background: #10b981;
  text-decoration: none;
  text-align: center;
}

.reservation-action-button:hover {
  background: #0f9d72;
}

.no-reservations {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.no-reservations p {
  color: #475569;
  font-size: 16px;
  margin-bottom: 18px;
}

.no-reservations a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: #2962ff;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.no-reservations a:hover {
  background: #1a4ed0;
}

@media (max-width: 768px) {
  .reservation-row {
    grid-template-columns: 1fr;
  }

  .reservation-footer {
    flex-direction: column;
  }
}
/* reservations.css */

.reservations-new,
.reservations-confirm,
.reservations-show {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.reservations-new h1,
.reservations-confirm h1,
.reservations-show h1 {
  font-size: 30px;
  color: #1f3d67;
  margin-bottom: 22px;
}

.reservations-new form,
.reservations-confirm form {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-weight: 700;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  color: #1f2937;
  background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.form-actions input[type="submit"],
.form-actions button {
  flex: 1;
  min-width: 160px;
  background: #2962ff;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
}

.form-actions input[type="submit"]:hover,
.form-actions button:hover {
  background: #1a4ed0;
}

.form-actions .back-button {
  background: #64748b;
}

.form-actions .back-button:hover {
  background: #475569;
}

.confirm-details {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 22px;
}

.confirm-details p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.confirm-details p:last-child {
  border-bottom: none;
}

.confirm-details strong {
  color: #1f2937;
}

.confirm-total {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.confirm-total h2 {
  margin-bottom: 16px;
  color: #1f2937;
}

.confirm-total-amount {
  font-size: 32px;
  font-weight: 800;
  color: #0f766e;
}

.reservation-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.reservation-success h2 {
  color: #064e3b;
  margin-bottom: 12px;
}

.reservation-success p {
  color: #0f766e;
}

.reservation-details {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
}

.reservation-details p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.reservation-details p:last-child {
  border-bottom: none;
}

.back-link {
  margin-top: 24px;
  text-align: center;
}

.back-link a {
  display: inline-block;
  padding: 14px 22px;
  background: #2962ff;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.back-link a:hover {
  background: #1a4ed0;
}

@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }
}
/* sessions.css */

.sessions-new {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

.sessions-new form {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 32px;
}

.sessions-new h1 {
  margin-bottom: 28px;
  font-size: 30px;
  color: #1f3d67;
  text-align: center;
}

.sessions-new .form-group {
  margin-bottom: 18px;
}

.sessions-new .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #334155;
}

.sessions-new .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 15px;
}

.sessions-new .form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.sessions-new input[type="submit"] {
  width: 100%;
  padding: 14px 18px;
  background: #2962ff;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sessions-new input[type="submit"]:hover {
  background: #1a4ed0;
}

.sessions-new .auth-link {
  text-align: center;
  margin-top: 24px;
}

.sessions-new .auth-link p {
  margin-bottom: 10px;
  color: #64748b;
}

.sessions-new .auth-link a {
  color: #2962ff;
  text-decoration: none;
  font-weight: 700;
}

.sessions-new .auth-link a:hover {
  color: #1a4ed0;
}
/* users.css */

.users-new {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

.users-new form {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 34px 32px;
}

.users-new h1 {
  margin-bottom: 28px;
  font-size: 30px;
  color: #1f3d67;
  text-align: center;
}

.users-new .form-group {
  margin-bottom: 18px;
}

.users-new .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-weight: 700;
}

.users-new .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 15px;
}

.users-new .form-group input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.users-new input[type="submit"] {
  width: 100%;
  padding: 14px 18px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.users-new input[type="submit"]:hover {
  background: #0f9d72;
}

.users-new .auth-link {
  text-align: center;
  margin-top: 24px;
}

.users-new .auth-link p {
  margin-bottom: 10px;
  color: #64748b;
}

.users-new .auth-link a {
  color: #2962ff;
  text-decoration: none;
  font-weight: 700;
}

.users-new .auth-link a:hover {
  color: #1a4ed0;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  background: #1f3d67;
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

header strong {
  font-weight: 700;
  margin-right: auto;
}

header a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.24s ease;
}

header a:hover {
  background: rgba(255, 255, 255, 0.12);
}

main {
  width: 100%;
  flex: 1;
  padding: 24px 0 40px;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 20px;
  color: white;
  background: #2962ff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.24s ease;
}

.btn:hover {
  background: #1a4ed0;
}

.btn-primary {
  background: #2962ff;
}

.btn-primary:hover {
  background: #1a4ed0;
}

.btn-secondary {
  background: #f1f5f9;
  color: #1f2937;
}

.btn-secondary:hover {
  background: #d7e2ef;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #64748b;
}

.card {
  background: white;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  main {
    padding: 18px 0 30px;
  }
}

