.editor {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
}

.left-panel {
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.editor {
    padding: 2rem 0;
}

.mask-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.mask-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mask-controls {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    z-index: 1001;
}

.brush-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.brush-size-slider {
    width: 150px;
}

.image-container {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
}

.mask-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: transparent;
    cursor: crosshair;
}

.mask-canvas.disabled {
    pointer-events: none;
    cursor: default;
}

.image-status {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    margin: 0;
}

.close-btn {
    background: rgba(220, 53, 69, 0.8);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(220, 53, 69, 1);
}

.reset-btn {
    background: rgba(255, 193, 7, 0.8);
    border: none;
    color: black;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.reset-btn:hover {
    background: rgba(255, 193, 7, 1);
}

.mode-select-btn.active {
    background-color: #007bff;
    color: white;
}

#dev-settings {
    display: none;
}

.overlay-text {
    background: rgba(0, 0, 0, 0.6);
}



.image-row {
    margin-top: 2rem;
}

.image-row img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.5s ease;
}


.fade-img {
    opacity: 1
}

.fade-out {
    opacity: 0;
}

.image-row img:hover {
    transform: scale(1.03);
}

.caption-text {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

h1 {
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    color: #333;
}



  /* Container */
  .custom-select {
    position: relative;
    width: 300px;
    font-family: Arial, sans-serif;
    height:auto;
  }

  /* Selected item */
  .select-selected {
    background-color: #f0f0f0;
    border: 1px solid #aaa;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .select-selected img {
    width: 130px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
  }

  /* Dropdown items container */
  .select-items {
    position: absolute;
    background-color: white;
    border: 1px solid #aaa;
    border-top: none;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    z-index: 99;
    display: none;
  }

  /* Each item */
  .select-items div {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .select-items div:hover {
    background-color: #ddd;
  }

  .select-items img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
  }