/* Search input style */
.labeling-progress-modal__search {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #2f363c;
  background: #2a3137;
  color: #e6edf3;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.labeling-progress-modal__search::placeholder { color: #9aa4ae; opacity: .9; }
.labeling-progress-modal__search:hover { border-color: #3a4148; }
.labeling-progress-modal__search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.25), inset 0 1px 0 rgba(255,255,255,0.06);
  background: #263038;
}
.labeling-progress-modal__search.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.25), inset 0 1px 0 rgba(255,255,255,0.04);
  background: #262226;
}
/* Search results panel under search input */
.labeling-progress-modal__actions { position: relative; }
.labeling-progress-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #2a3137;
  border: 1px solid #2f363c;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
  animation: lpResultsSlideIn 0.2s ease-out;
}
.labeling-progress-search-results__item {
  padding: 10px 14px;
  color: #9aa4ae;
  font-size: 13px;
}
@keyframes lpResultsSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.labeling-progress-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(129, 129, 129, 0.65);
    backdrop-filter: saturate(120%) blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 9998;
}

.labeling-progress-backdrop.is-visible {
    opacity: 0.45;
    visibility: visible;
}

.labeling-progress-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 9999;
}

.labeling-progress-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.labeling-progress-modal__panel {
    background: #fff;
    width: 80vw;
    max-width: 80vw;
    height: 80vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.labeling-progress-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #1f2a33;
    background-color: #21262b;
    color: #fff;
}

.labeling-progress-modal__title {
    font-size: 14px;
    font-weight: 600;
}

.labeling-progress-modal__filter {
    display: flex;
    align-items: center;
    gap: 10px;
}
.selectric{
    width: 100px;
    background: #2a3137;
}

.labeling-progress-modal__select {
    height: 36px;
    padding: 0 14px;
    padding-right: 36px;
    border-radius: 10px;
    border: 1px solid #2f363c;
    background: #2a3137;
    color: #e6edf3;
    outline: none;
    font-size: 13px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa4ae' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.labeling-progress-modal__select:hover {
    border-color: #3a4148;
}

.labeling-progress-modal__select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.25), inset 0 1px 0 rgba(255,255,255,0.06);
    background-color: #263038;
}

.labeling-progress-modal__search-icon {
    flex-shrink: 0;
}

.labeling-progress-modal__actions {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    gap: 12px;
}

.labeling-progress-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    opacity: 0.75;
    transition: opacity .15s ease;
}

.labeling-progress-modal__close:hover {
    opacity: 1;
}

.labeling-progress-modal__body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.labeling-progress-modal__footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 10px 12px;
    border-top: 1px solid #1f2a33;
    background-color: #21262b;
    color: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35);
}

.labeling-progress-modal__btn {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: box-shadow .15s ease, background-color .15s ease, border-color .15s ease, transform .05s ease, opacity .15s ease;
    opacity: 0.92;
}

.labeling-progress-modal__btn--icon {
    padding: 0;
    width: 34px;
    height: 34px;
}

.labeling-progress-modal__btn svg {
    pointer-events: none;
}

.labeling-progress-modal__btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.labeling-progress-modal__btn:active {
    transform: translateY(1px);
}

.labeling-progress-modal__btn.is-active,
.labeling-progress-modal__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35), 0 0 0 1px #2563eb inset;
}

.labeling-progress-modal__btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.labeling-progress-modal__btn--ghost {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Disabled buttons */
.labeling-progress-modal__btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none !important;
    filter: saturate(70%);
}

.labeling-progress-modal__btn[disabled]:hover {
    opacity: 0.55;
    border-color: rgba(255, 255, 255, 0.25);
}

.labeling-progress-modal__btn--primary[disabled] {
    background: #1f4ed8;
    border-color: #1f4ed8;
    color: rgba(255, 255, 255, 0.85);
}

.labeling-progress-modal__content {
    flex: 1;
    min-height: 0;
}

#labeling-progress-map {
    width: 100%;
    height: 100%;
}

.tile-map-labeling-progress-polygon-label-base {
    color: #FFFF00;
    text-align: center;
    width: max-content;
    display: flex;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    opacity: 0.8;
}

.tile-map-labeling-progress-polygon-label-base>div>span {
    color: #FFFF00;
}

.labeling-progress-modal__download {
    width: 200px;
    height: 36px;
}

.labeling-progress-modal__actions {
    width: 60%;
}

.progress-label {
    padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    z-index: 1000 !important;
}