/* Skift Utlysning - Web Styling */

/* Top Actions */
.topActions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.userName {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Stats Panel */
.statsPanel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.statCard {
  background: linear-gradient(135deg, rgba(99,102,241,.12) 0%, rgba(59,130,246,.08) 100%);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.statCard__label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.statCard__value {
  font-size: 32px;
  font-weight: 700;
  color: #0a7a0a;
}

/* Filters Panel */
.filtersPanel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.filterChips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #fff;
  color: #666;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background: #f5f5f5;
  border-color: #999;
}

.chip.is-active {
  background: #0a7a0a;
  border-color: #0a7a0a;
  color: #fff;
}

.shiftFilters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filterLabel {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-right: 4px;
}

.chipSmall {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chipSmall:hover {
  background: #f5f5f5;
  border-color: #999;
}

.chipSmall.is-active {
  background: #0a7a0a;
  border-color: #0a7a0a;
  color: #fff;
}

.searchInput {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #111;
}

.searchInput::placeholder {
  color: #999;
}

/* Needs Container */
.needsContainer {
  min-height: 400px;
}

.emptyState {
  text-align: center;
  padding: 60px 20px;
}

.emptyState__icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.emptyState__title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.emptyState__subtitle {
  font-size: 14px;
  color: #666;
}

/* Needs Grid */
.needsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.needCard {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.needCard:hover {
  border-color: #0a7a0a;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.needCard__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.needCard__date {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.needCard__day {
  font-size: 13px;
  color: #666;
}

.needCard__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--day {
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge--evening {
  background: rgba(249, 115, 22, 0.2);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.badge--night {
  background: rgba(99, 102, 241, 0.2);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.badge--weekend {
  background: rgba(168, 85, 247, 0.2);
  color: #7c3aed;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.statusBadge {
  font-size: 10px;
  padding: 3px 8px;
}

.statusBadge--open {
  background: rgba(34, 197, 94, 0.15);
  color: #0a7a0a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.statusBadge--assigned {
  background: rgba(59, 130, 246, 0.15);
  color: #1976d2;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.statusBadge--closed {
  background: rgba(107, 114, 128, 0.15);
  color: #666;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.needCard__body {
  margin-bottom: 12px;
}

.needCard__position {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.needCard__time {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.needCard__note {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin-top: 8px;
}

.needCard__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.needCard__coverage {
  font-size: 13px;
  font-weight: 600;
  color: #0a7a0a;
}

.needCard__responses {
  display: flex;
  align-items: center;
  gap: 6px;
}

.responseCount {
  font-size: 13px;
  color: #666;
}

.responseAvatars {
  display: flex;
  gap: -4px;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a7a0a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #fff;
  margin-left: -4px;
}

.avatar:first-child {
  margin-left: 0;
}

/* Modal */
.modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal__content {
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px 0;
}

.modal__subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal__close:hover {
  background: #f0f0f0;
  color: #111;
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  max-height: 60vh;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
}

/* Detail Grid */
.detailGrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.detailSection {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sectionTitle {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.detailList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detailRow {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
}

.detailLabel {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.detailValue {
  font-size: 13px;
  color: #111;
}

.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 8px 0;
}

.peopleList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.personItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 8px;
}

.personAvatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0a7a0a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.personName {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.personState {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #0a7a0a;
  font-weight: 600;
  text-transform: uppercase;
}

.emptyText {
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.actionButtons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toast */
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .statsPanel {
    grid-template-columns: 1fr;
  }

  .needsGrid {
    grid-template-columns: 1fr;
  }

  .detailGrid {
    grid-template-columns: 1fr;
  }

  .detailRow {
    grid-template-columns: 100px 1fr;
  }
}
