* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #7f8fa6 transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f7f6;
    color: #333333;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(45deg, #0077cc, #663399, #ff6600);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    color: #666666;
}

.main-canvas {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    aspect-ratio: 16/9;
    /* border: 2px dashed #ffffff; */
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: url(../img/cover.CxL97twJ_yAGA0.webp) center no-repeat #FFF;
    background-size: 115% !important;
 box-shadow: 0 0 30px rgb(0 0 0 / 17%);
}
.main-canvas:hover {
    box-shadow: 0 0 30px rgb(0 0 0 / 54%);
}
.main-canvas.has-image #ref div{display:block}

.main-canvas.has-image {
    border: none;
    cursor: default;
    background: #ffffff;
}

.canvas-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: opacity 0.3s ease;
}

.canvas-placeholder .icon {
    font-size: 4rem;
    color: #ffffff9e;
    margin-bottom: 20px;
}

.canvas-placeholder h3 {
    font-size: 1.5rem;
    color: #202020;
    margin-bottom: 10px;
    text-shadow: 1px 1px 10px #fff;
}

.canvas-placeholder p {
    color: #ffffff;
    font-size: 1rem;
    /* text-shadow: 1px 1px 1px #000; */
    background-color: #0000005c;
    border-radius: 10px;
    padding: 3px 0px 10px 0px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    cursor: pointer;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: right;
    align-items: center;
}

.aspect-selector, .magic-wand {
    background: #ffffff;
    border-radius: 12px;
    padding: 7px 12px 7px 12px;
    color: #333333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    appearance: none;
    border: 1px solid #e9e9e9;
}

.aspect-selector{/* max-width:200px; */}
#numberResults{max-width:40px;text-align: center;}
.aspect-selector:hover, .magic-wand:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 119, 204, 0.1);
}

.magic-wand {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    background: linear-gradient(45deg, #673ab7, #e91e63);
    color: white;
    border: none;
    padding: 8px 7px 8px 7px;
    border-radius: 50%;
    width: 32px !important;
}

.magic-wand:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 51, 153, 0.2);
}

.prompt-section {
    margin-bottom: 30px;
}

.prompt-input {
    width: 100%;
    padding: 20px;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    background: #ffffff;
    color: #333333;
    font-size: 1.1rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.prompt-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 119, 204, 0.1);
}

.prompt-input::placeholder {
    color: #999999;
}

.generate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #e91e63, #673ab7);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 119, 204, 0.2);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(45deg, #cccccc, #dddddd);
    color: #666666;
    box-shadow: none;
    line-height: 33px;
    padding: 18px 18px 15px 18px;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thumbnail:hover {
    transform: translateY(-5px);
  box-shadow: 0 0 30px rgb(0 0 0 / 39%);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #0077cc;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: #e91e63;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    float: right;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.magic-suggestions {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cccccc;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.magic-suggestions h3 {
    color: #0077cc;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.suggestion {
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.suggestion:hover {
    border-color: #0077cc;
    background: rgba(0, 119, 204, 0.05);
}

.suggestion-title {
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
}

.suggestion-desc {
    color: #666666;
    font-size: 0.9rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 247, 246, 0.8);
    z-index: 999;
    display: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #999999;
    font-size: 1.5rem;
    cursor: pointer;
}

.hidden-input {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .controls {
        flex-direction: revert;
        align-items: stretch;
    }

    .aspect-selector, .magic-wand {
        width: 100%;
        text-align: center;
    }

    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
  #help{display:none;}
  .canvas-placeholder p{display:none}
}

.main-canvas.drag-over {
    border-color: #663399;
    box-shadow: 0 0 40px rgba(102, 51, 153, 0.3);
    background: rgba(102, 51, 153, 0.05);
}

.remove-image-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    color: #666666;
    font-size: 1.2rem;
    border: 1px solid rgba(102, 102, 102, 0.3);
}

.remove-image-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    transform: scale(1.1);
    border-color: rgba(255, 0, 0, 0.5);
}

.main-canvas:not(.has-image) .remove-image-btn {
    display: none;
}

.download-image-btn {
    position: absolute;
    top: 15px;
    right: 50px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    color: #666666;
    font-size: 1.2rem;
    border: 1px solid rgb(74 74 74 / 30%);
}

.download-image-btn:hover {
    background: #009688;
    color: white;
    transform: scale(1.1);
    border-color: #009688;
}

.main-canvas:not(.has-image) .download-image-btn {
    display: none;
}

.fullscreen-image-btn {
    position: absolute;
    top: 15px;
    right: 85px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    color: #666666;
    font-size: 1.1rem;
    border: 1px solid rgb(74 74 74 / 30%);
}

.fullscreen-image-btn:hover {
    background: #673ab7;
    color: white;
    transform: scale(1.1);
    border-color: #673ab7;
}

.main-canvas:not(.has-image) .fullscreen-image-btn {
    display: none;
}

/* ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â»ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸ ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â´ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â»ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚ÂºÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¾ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¾ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Âº ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â² ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¼ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â°ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â½ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â°ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â¦ */
.thumbnail .remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
    font-size: 1rem;
    border: 1px solid rgba(102, 102, 102, 0.3);
    opacity: 0;
}

.thumbnail:hover .remove-image-btn {
    opacity: 1;
}

.thumbnail .remove-image-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    transform: scale(1.1);
    border-color: rgba(255, 0, 0, 0.5);
}

.thumbnail .download-image-btn {
    position: absolute;
    top: 8px;
    right: 38px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
    font-size: 1rem;
    border: 1px solid rgba(102, 102, 102, 0.3);
    opacity: 0;
}

.thumbnail:hover .download-image-btn {
    opacity: 1;
}

.thumbnail .download-image-btn:hover {
    background: #009688;
    color: white;
    transform: scale(1.1);
    border-color: #009688;
}

.thumbnail .fullscreen-image-btn {
    position: absolute;
    top: 8px;
    right: 68px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
    font-size: 0.9rem;
    border: 1px solid rgba(102, 102, 102, 0.3);
    opacity: 0;
}

.thumbnail:hover .fullscreen-image-btn {
    opacity: 1;
}

.thumbnail .fullscreen-image-btn:hover {
    background: #673ab7;
    color: white;
    transform: scale(1.1);
    border-color: #673ab7;
}

::-webkit-scrollbar {
    width: 6px; 
    height: 6px; 
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4dbe4, #f8fafc);
    border-radius: 3px;
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #09a372, #d4dbe4);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px;
  margin: 10px 10px 0px 0px;
  z-index: 1;
  min-width: 30px;
  min-height: 30px;
  color: #fff;
  float: right;
  /* background: linear-gradient(45deg, #673ab7, #e91e63); */
  }
.user-avatar:hover{cursor:pointer;}
#glmn {
  position: absolute;
  width: 185px;
  height: 85px;
  margin: 0px 0px 0px 0px;
  right: 9px;
  top: 51px;
  border-radius: 8px;
  padding: 15px 20px 15px 20px;
  color: #000;
  display: none;
  font-size: 14px;
  background: linear-gradient(45deg, #e1d1ff, #ffe8f0);
}

#glmn a{float:left;width:100%;color: #005a3d;text-decoration:none;margin:0px 0px 10px 0px;}
#glmn a:hover{text-decoration:underline;}
#glmn a.exit{text-align: right;
    color: #fff;
    font-size: 13px;
    margin: 8px -9px -24px 5px;
    width: auto;
    float: right;
    background-color: #000;
    border-radius: 4px;
    padding: 0px 5px 3px 5px;}
#model{width: 180px;}


.cthth_nero {
    float: right;
    clear: both;
    margin: -29px 51px 0px 0px;
    padding: 2px 0px 2px 0px;
    z-index: 2;
    position: relative;
    height: 30px;
    background-color: #ffffff;
    border-radius: 6px;
}
.cthth_nero div.nro {
    border-radius: 7px;
    height: 28px;
    padding: 5px 5px 0px 5px;
    line-height: 14px;
    width: 74px;
    text-align: center;
    cursor: pointer;
    font-size: 17px;
    color: #000000;
    overflow: hidden;
}
.cthth_nero div.nro:hover{color:#E91E63}

.aspect-selector.auto-selected {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.aspect-selector.auto-selected {
    animation: pulse-green 1.5s;
}
.youtube-button {
  display: inline-flex;
  align-items: center;
  padding: 0px 0px 0px 7px;
  background-color: #FF0000;
  color: white;
  /* font-size: 16px; */
  /* font-weight: bold; */
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  margin: 16px -10px -10px 17px;
  position: absolute;
  width: 36px;
  height: 36px;
}

.youtube-button i {
  margin-right: 10px;
  font-size: 20px;
}

.youtube-button:hover {
  background-color: #cc0000;
  transform: scale(1.05);
}

#help {
    position: absolute;
    top: 15px;
    z-index: 123;
    fill: #fff;
    background-color: #8d8d8d;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    left: 64px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgb(0 0 0 / 20%);
}
#help:hover{background-color:#000; cursor:pointer;}
.fancybox-content ul ul > li::marker {
  color: black;
  content: "Ã¢â€ â€™";
  font-size: 21px;
}
.fancybox-content ul ul{margin:1rem 0 1rem 0;}
.fancybox-content h3{color:#e91e63;}
.fancybox-content code{color:#4CAF50; font-size:18px; font-weight:900}

#ref{/* width: 87px; *//* height:100%; *//* background-color: #00000040; *//* padding:20px 0px 0px 0px; *//* margin: 0px 0px 0px 0px; *//* position: absolute; *//* z-index: 1; *//* color: #FFF; */}
#ref div{
        position: relative;
        left: 10px;
        top: 10px;
        margin: 0 0 -50px 0;
        display:block;
        width:50px;
        height:50px;
        border-radius:50%;
        text-align:center;
        padding: 0px 0px 0px 0px;
        font-size: 31px;
        background-size: 80% !important;
        display: none;
        color: #666666;
        background: url(../img/1px.gif) center no-repeat #d7d7d7;
        /* box-shadow: 0 0 10px rgb(0 0 0 / 44%); */
        border-radius: 8px;
        }
#ref div:hover{ background:#666; color:#FFF;}
#ref div .fas{margin: 12px 0px 0px 0px;font-size: 24px;}
#ref div.ref-background .fa-image{color:#fff0;}
#ref1, #ref2, #ref3 {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}
#ref1.hover-delete, #ref2.hover-delete, #ref3.hover-delete {
    transform: scale(1.02);
}
.delete-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    background: url(../img/1px.gif) center no-repeat #e91e63 !important;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.delete-overlay i {
    font-size: 24px;
    margin-bottom: 5px;
}

.delete-overlay span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#ref1.removing, #ref2.removing, #ref3.removing {
    transform: scale(0.95);
    opacity: 0.7;
    transition: all 0.2s ease;
}
#ref div.ref-background {
    background-size: 125% !important;
}

.brush-tool {
    position: absolute;
    top: 72px;
    left: 10px;
    background: #d7d7d7;
    border: none;
    border-radius: 50%;
    width: 49px;
    height: 49px;
    cursor: pointer;
    display: none;
    z-index: 26;
    text-align:center;
    /* box-shadow: 0 0 10px rgb(0 0 0 / 44%); */
    border-radius: 8px;
}
.brush-tool:hover{background:#666}
.brush-tool:hover .fas{color:#FFF;}
.brush-tool .fas{color: #666666;padding: 14px;font-size: 17px;}
.brush-tool.active {
    background: #000000;
    color: white;
}
.has-image .brush-tool {
    display: block;
}
.mask-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    opacity: 0.5;
    pointer-events: auto !important;
    z-index: 10 !important;
        background-color: #ffffff87;
}
.brush-controls {
    position: absolute;
    top: 123px;
    left: 10px;
    background: rgb(0 0 0 / 77%);
    padding: 10px;
    border-radius: 8px;
    display: none;
    z-index: 15;
    color: #FFF;
}
.brush-size-control {
    margin-bottom: 10px;
}
.brush-size-control input {
    width: 100px;
}
.mask-actions {
    display: flex;
    gap: 5px;
}
.mask-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.clear-mask { background: #f44336; color: white; }
.toggle-mask { background: #2196F3; color: white; }

.brush-size-control {
    margin-bottom: 10px;
}

.brush-size-control input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

.mask-actions button {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background: #555;
    color: white;
    cursor: pointer;
}

.mask-actions button:hover {
    background: #777;
}