@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

*,
*:before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: red .7px solid; */
}

a {
  text-decoration: none;
}

button {
  padding: .4rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: .8rem;
  cursor: pointer;
}

li {
  list-style: none;
}

.josefin-sans-regular {
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.libre-baskerville-regular {
  font-family: "Libre Baskerville", serif;
  font-weight: 300;
  font-style: normal;
}

.libre-baskerville-bold {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-style: normal;
}

.libre-baskerville-regular-italic {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: italic;
}

.header {
  height: 40vh;
  padding: 1.2rem;
  position: relative;
  background-color: #132152;
  color: #fff;
}

.form-section {
  padding: 1.2rem;
  position: absolute;
  top: 30vh;
  max-width: 968px;
  margin: 0 auto;
}

.form-header {
  padding-bottom: 1rem;
  color: #fff;
}

.form-header h3 {
  font-size: .9rem;
  line-height: 1.2rem;
  margin-bottom: 0.6rem;
}

.form-header p {
  font-size: .7rem;
}

.subtitle {
  font-size: .6rem;
  color: #888;
}

label {
  font-size: .8rem;
  margin-bottom: .2rem;
}

.request-form {
  padding-top: 1.6rem;
}

.form-group-title {
  margin-bottom: 0.8rem;
  margin-top: 0.6rem;
}

.form-control {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: stretch;
}

.form-row .form-control {
  width: 50%;
}

.form-control input, .form-control textarea {
  width: 100%;
  padding: 0.4rem;

  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
}

.form-group-content {
  display: flex;
  flex-direction: column;
}

.form-action input {
  cursor: pointer;
}

.invalid {
  border: 2px solid #ff3860 !important;
  background-color: #fff5f7;
}

.valid {
  border: 2px solid #23d160 !important;
  background-color: #f6fef9;
}

small {
  font-size: 0.8em;
  margin-top: 4px;
  display: block;
}

.form-control {
  margin-bottom: 1rem;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-message {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.success-content {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  text-align: center;
  max-width: 90%;
  width: 500px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.form-error {
  background-color: #ffebee;
  color: #d32f2f;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  border-left: 4px solid #d32f2f;
}

.submit-button {
  background-color: #4caf50;
  font-family: "Josefin Sans", sans-serif;
  color: white;
  padding: .4rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.submit-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.back-next {
  display: flex;
  gap: .4rem;
  align-items: center;
  justify-content: stretch;
}

.back-next button {
  width: 100%;
}

/* DASHBOARD */
/* NAV */
.dashboard-nav {
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: #fff;
  border-bottom: #ccc 1px solid;
  z-index: 10;
}

/* .page */
.page {
  display: flex;
  /* height: calc(100vh - 40px); */
}

.page-header {
  margin-top: 1.2rem;
  margin-bottom: 2.4rem;
}

.sidebar {
  width: 180px;
  color: #fff;
  padding: 1.2rem;
  top: 0;
  left: 0;
  height: 100%;
  position: fixed;
  padding-top: 6rem;
  border-right: #ccc 1px solid;
}

.sidebar-list-item {
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.content {
  margin-left: 180px;
  padding: 1.2rem;
  width: calc(100% - 180px);
}

.reservations-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border-radius: .4rem;
  border: #ccc 1px solid;
}

.reservations-table thead {
  background-color: #f1f1f2;
}

.reservations-table thead th {
  padding: .8rem;
  font-size: .8rem;
  font-weight: bolder;
  text-align: left;
}

.reservations-table tbody tr {
  border-top: #ccc 1px solid;
}

.reservations-table tbody tr td {
  padding: .8rem;
  font-size: .8rem;
  font-size: .7rem;
}

.reservations-table tbody tr td .customer-name,
.reservations-table tbody tr td .event-name,
.reservations-table tbody tr td .total-guests {
  font-weight: bolder;
  margin-bottom: .3rem;
}

.reservations-table tbody tr td .event-desc,
.reservations-table tbody tr td .customer-contact,
.reservations-table tbody tr td .adults,
.reservations-table tbody tr td .children {
  color: #888;
}

.reservations-table tbody tr td .event-name {
  cursor: pointer;
  text-decoration: underline;
}

[x-cloak] {
  display: none;
}

.reservation-dialog-backdrop{
  background: rgba(0,0,0,0.5); 
  position: fixed; 
  inset: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 100;
}

.reservaion-dialog-info{
  background: white; 
  min-width: 320px; 
  width: 45vw; 
  position: relative;
}

.view-reservation-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.view-reservation-dialog-form {
  padding-top: 3rem;
}

.view-reservation-form-content {
  padding-top: .8rem;
  padding-left: .8rem;
  padding-right: .8rem;
}

.view-event-header{
  background-image: url('../img/original-b17ca27ebc430bbfb2386de4a71cfb85.png');
  background-position: center;
  background-size: cover;
  height: 25vh;
  display: flex;
  align-items: flex-end;
}

.view-event-header-content {
  width: 100%;
  backdrop-filter: blur(10px);
  padding: .8rem;
}

.event-description, .event-created-by, .view-event-guests {
  padding-left: .8rem;
  padding-right: .8rem;
  margin-bottom: .8rem;
}

.event-description {
  margin-top: .8rem;
}

.view-reservation-form-footer {
  padding: .8rem;
  border-top: #ccc 1px solid;
}

.view-event-creator, .view-events-number-of-guests {
  font-weight: bold;
  color: #888;
}