.ne-widget {
  background: #fdf8f2;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  color: #1f2933;
  font-family: inherit;
}

.ne-controls {
  background: #ffffff;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.ne-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ne-controls-top {
  justify-content: space-between;
}

.ne-search-group {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.ne-search-input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 51, 0.15);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ne-search-input:focus {
  border-color: #0b728f;
  box-shadow: 0 0 0 3px rgba(11, 114, 143, 0.2);
  outline: none;
}

.ne-clear-search {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: rgba(31, 41, 51, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #1f2933;
  font-size: 18px;
  line-height: 0;
  cursor: pointer;
}

.ne-clear-search:hover {
  background: rgba(31, 41, 51, 0.15);
}

.ne-view-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 51, 0.15);
  overflow: hidden;
}

.ne-toggle-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ne-toggle-btn.is-active {
  background: #0b728f;
  color: #ffffff;
}

.ne-toggle-btn:not(.is-active):hover {
  background: rgba(11, 114, 143, 0.12);
}

.ne-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 1;
}

.ne-select-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 41, 51, 0.75);
}

.ne-select select {
  border: 1px solid rgba(31, 41, 51, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
  appearance: none;
}

.ne-select select:focus {
  border-color: #0b728f;
  box-shadow: 0 0 0 3px rgba(11, 114, 143, 0.2);
  outline: none;
}

.ne-reset-button {
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(31, 41, 51, 0.15);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ne-reset-button:hover {
  border-color: #0b728f;
  color: #0b728f;
}

.ne-reset-button {
  margin-left: auto;
}

.ne-controls-bottom {
  justify-content: center;
  gap: 12px;
}

.ne-nav-button,
.ne-today-button {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(31, 41, 51, 0.15);
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.ne-nav-button:hover,
.ne-today-button:hover {
  border-color: #0b728f;
  color: #0b728f;
}

.ne-month-label {
  font-size: 16px;
  font-weight: 600;
  min-width: 160px;
  text-align: center;
}

.ne-date-group {
  margin-bottom: 48px;
}

.ne-date-layout {
  --ne-sidebar-width: 220px;
  position: relative;
  display: grid;
  grid-template-columns: var(--ne-sidebar-width) 1fr;
  gap: 32px;
}

.ne-date-layout::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: -24px;
  left: calc(var(--ne-sidebar-width) / 2);
  transform: translateX(-1px);
  width: 2px;
  background: #e2edf3;
}

.ne-date-sidebar {
  position: relative;
  padding-right: 12px;
}

.ne-date-sidebar-inner {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #dbe5ec;
  text-align: center;
  z-index: 1;
}

.ne-date-sidebar-inner::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0b728f;
  box-shadow: 0 0 0 4px rgba(11, 114, 143, 0.16);
}

.ne-date-badge {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #0b728f;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 700;
}

.ne-date-badge-month {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.ne-date-badge-day {
  font-size: 30px;
  line-height: 1;
}

.ne-date-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ne-date-heading-main {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f2f3f;
}

.ne-date-heading-sub {
  margin: 0;
  font-size: 12px;
  color: #4c6773;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ne-date-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.ne-events-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ne-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin: 0;
  border: 1px solid #dfe6ec;
  box-shadow: none;
}

.ne-card-main {
  display: flex;
  gap: 20px;
  flex: 1;
  align-items: stretch;
}

.ne-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ne-card-title {
  margin: 0;
  font-size: 18px;
  color: #152c3d;
}

.ne-card-meta,
.ne-card-location,
.ne-card-description {
  margin: 0;
  font-size: 14px;
  color: #4d5e68;
}

.ne-card-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ne-card-tags span {
  background: #e6f3f7;
  color: #0b728f;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.ne-card-media {
  width: 220px;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbe5ec;
  padding: 4px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.ne-card-media--image {
  background: #ffffff;
}

.ne-card-media-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.ne-card-media-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 36, 50, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ne-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.ne-card-media-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 52, 74, 0.9);
  color: #ffffff;
  letter-spacing: 0.05em;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.ne-card-media--image:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 114, 143, 0.15);
}

.ne-card-media--image:hover .ne-card-media-inner::after {
  opacity: 1;
}

.ne-card-media--image:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.ne-card-media--image:hover .ne-card-media-label {
  background: #0b728f;
  transform: translate(-50%, -3px);
}

.ne-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b728f;
  font-weight: 700;
  font-size: 14px;
  border: 2px dashed #b7d6e1;
  background: #f4fbfd;
  min-height: 160px;
  padding: 24px;
  border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ne-card-media--placeholder:hover {
  border-color: #0b728f;
  background: #e6f3f7;
  color: #063043;
}

.ne-status {
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  background: rgba(31, 41, 51, 0.05);
  font-weight: 600;
}

.ne-status-error {
  background: rgba(240, 92, 69, 0.1);
  color: #b91c1c;
}

.ne-status-empty {
  background: rgba(31, 41, 51, 0.05);
  color: rgba(31, 41, 51, 0.75);
}

@media (max-width: 900px) {
  .ne-date-layout {
    grid-template-columns: 1fr;
  }

  .ne-date-layout::before {
    display: none;
  }

  .ne-date-sidebar {
    padding-right: 0;
  }

  .ne-date-sidebar-inner {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 18px 20px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(11, 114, 143, 0.12);
  }

  .ne-date-sidebar-inner::after {
    display: none;
  }

  .ne-date-heading {
    align-items: flex-start;
  }

  .ne-date-heading-sub {
    letter-spacing: 0.02em;
  }

  .ne-card {
    flex-direction: column;
  }

  .ne-card-main {
    flex-direction: column-reverse;
  }

  .ne-card-media {
    width: 100%;
  }

  .ne-card-media img {
    max-height: 260px;
  }

  .ne-controls-top {
    flex-direction: column;
    align-items: stretch;
  }

  .ne-view-toggle {
    align-self: flex-end;
  }
}

@media (max-width: 600px) {
  .ne-date-layout {
    gap: 24px;
  }

  .ne-widget {
    padding: 18px;
  }

  .ne-controls {
    padding: 14px;
  }

  .ne-date-badge {
    width: 60px;
    height: 60px;
  }

  .ne-date-heading-main {
    font-size: 18px;
  }

  .ne-month-label {
    min-width: 120px;
    font-size: 15px;
  }

  .ne-controls-middle {
    flex-direction: column;
  }

  .ne-select {
    width: 100%;
  }

  .ne-date-sidebar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 18px;
  }
}
