
.crop-element {
    display:none;
}

.crop-window-main {
    display:flex; 
    gap:12px; 
    padding:12px;
}

.lightboxImage-container {
    text-align: center;
}

.crop-window-main.is-cropping {
    height:65%; 
}

/* Lightbox Modal Styles */
#imageLightbox .modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#imageLightbox .modal-header {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

#imageLightbox .crop-ratio-options .btn {
    font-size: 0.8rem;
}

.tag-list-container {
    display: flex;
    flex-wrap: wrap;
}

#cropPreview {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

#imageDescription {
    border-left: 3px solid #007bff;
    line-height: 1.6;
}

/* Add spinner animation for description generation */
@keyframes spinner {
    to {transform: rotate(360deg);}
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}


.description-section {
    height: 35%;
    max-height: 30vh;
    padding: 16px;
    overflow-y: auto;
}

.description-container {
    position: relative;
    padding: 6px;
    min-height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fafafa;
    font-size: 0.9rem;
    border-left: 3px solid #007bff;
    line-height: 1.2;
}

.ai-text-delete {
    position:absolute;    
    top:-10px;
    right: 0;
    color: red;
    opacity:0.1;
    transition: opacity 200ms ease;
}
.ai-text-delete a {
    color: red;
}
.ai-text-delete:hover {
    opacity:1;
}

.ai-text-info {
    display: flex;
    gap: 4px;
    position:absolute;
    background: #ccc;
    top:-10px;
    border: 1px solid darkgrey;
    border-radius: 3px;
    font-size: 0.7rem;
    padding: 1px 4px;
}

.btn-success-flash {
    animation: success-flash 0.5s ease-in-out;
}

@keyframes success-flash {
    0% {
        background-color: #198754; /* Bootstrap success green */
        border-color: #198754;
        color: white;
    }
    50% {
        background-color: #157347;
        border-color: #146c43;
    }
    100% {
        background-color: #198754;
        border-color: #198754;
        color: white;
    }
}