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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 640px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.container-wide {
  max-width: 95%;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Form */
label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.hint {
  font-weight: 400;
  font-size: 0.85rem;
  color: #777;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #b88bb2;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
}

/* Shift sort list */
.shift-list {
  list-style: none;
  margin-top: 0.5rem;
}

.shift-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.4rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: grab;
  user-select: none;
  font-size: 1rem;
}

.shift-list li:active {
  cursor: grabbing;
}

.drag-handle {
  color: #aaa;
  font-size: 1.1rem;
}

.sortable-ghost {
  opacity: 0.4;
  background: #e8f0fe;
}

/* Shift count radio buttons */
.shift-count-options {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.shift-count-option {
  display: flex;
  margin-top: 0;
  font-weight: normal;
}

.shift-count-option input[type="radio"] {
  display: none;
}

.shift-count-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f9f9f9;
}

.shift-count-option input[type="radio"]:checked + span {
  background: #b88bb2;
  color: #fff;
  border-color: #b88bb2;
}

.shift-count-option span:hover {
  border-color: #b88bb2;
}

/* Awareness experience radio buttons */
.awareness-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.awareness-option {
  display: flex;
  margin-top: 0;
  font-weight: normal;
}

.awareness-option input[type="radio"] {
  display: none;
}

.awareness-option span {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f9f9f9;
  font-size: 0.95rem;
}

.awareness-option input[type="radio"]:checked + span {
  background: #b88bb2;
  color: #fff;
  border-color: #b88bb2;
}

.awareness-option span:hover {
  border-color: #b88bb2;
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  margin-top: 1.5rem;
  background: #32852f;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: #357abd;
}

.btn-small {
  padding: 0.3rem 0.7rem;
  margin-top: 0;
  font-size: 0.85rem;
}

.btn-secondary {
  background: #777;
}

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

.btn-danger {
  background: #d9534f;
}

.btn-danger:hover {
  background: #c9302c;
}

/* Alert */
.alert {
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert.error {
  background: #fdecea;
  color: #a94442;
  border: 1px solid #f5c6cb;
}

/* Admin */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-header h1 {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f5f5f5;
  font-weight: 600;
}

.actions {
  white-space: nowrap;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.inline {
  display: inline;
}

.link-back {
  display: inline-block;
  margin-top: 1.5rem;
  color: #b88bb2;
  text-decoration: none;
}

.link-back:hover {
  text-decoration: underline;
}

.empty {
  color: #999;
  font-style: italic;
}

.comment-icon {
  cursor: pointer;
  font-size: 1.2rem;
}
