/* Layout */
.rentify-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
#rentify-calendar {
  width: 300px;
}

/* Header */
.rentify-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rentify-header button {
  background: #eee;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}
.rentify-title {
  font-size: 24px;
  color: #fff;
  font-weight: bold;
}

/* Grid */
.rentify-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.rentify-cell {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.rentify-cell.empty {
  background: transparent;
  cursor: default;
}

/* Status colors */
.rentify-cell.available {
  background: #27ae60;
}
.rentify-cell.booked {
  background: #e74c3c;
  cursor: not-allowed;
}
.rentify-cell.pending {
  background: #f39c12;
  cursor: not-allowed;
}
.rentify-cell.past {
  background: #7f8c8d;
  cursor: not-allowed;
}

/* Range selection */
.rentify-cell.selected-range {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Legend */
.rentify-legend {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend-box {
  width: 15px;
  height: 15px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 3px;
}
.legend-box.available {
  background: #27ae60;
}
.legend-box.booked {
  background: #e74c3c;
}
.legend-box.pending {
  background: #f39c12;
}

/* Form */
#rentify-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
}
#rentify-form label {
  color: #fff;
  font-size: 14px;
}
#rentify-form input,
#rentify-form button {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: auto; /* Default for desktop */
  box-sizing: border-box;
}
#rentify-form button {
  background: #27ae60;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Responsive for mobile */
@media (max-width: 767px) {
  .rentify-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  #rentify-calendar {
    width: 100%;
  }
  #rentify-form {
    min-width: unset;
  }
  #rentify-form input,
  #rentify-form button {
    width: 100%;
  }
}
