/* Modal Container */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.preparing {
    opacity: 0;
    visibility: visible;
}

.modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: rgba(25, 25, 35, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

/* Header mantém o mesmo estilo */
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Body ocupa todo o espaço restante */
.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* Image Container ocupa toda a área disponível */
.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    overflow: hidden;
}

#modal-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* Info Area mantém o mesmo estilo */
.image-info {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.prompt-container {
    flex: 1;
    margin-right: 16px;
}

.info-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.info-text {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Actions mantém o mesmo estilo */
.info-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Visibility Toggle mantém o mesmo estilo */
.visibility-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visibility-toggle input {
    display: none;
}

.toggle-label {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visibility-toggle input:checked+.toggle-label {
    background: rgba(66, 184, 131, 0.2);
    color: #42B883;
}

/* Navigation mantém o mesmo estilo */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
}
.batch-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 30, 40, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.batch-controls.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.selection-counter {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.batch-buttons {
    display: flex;
    gap: 8px;
}

.batch-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.batch-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.batch-btn.delete {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

.batch-btn.delete:hover {
    background: rgba(220, 53, 69, 0.3);
}

/* Animações mantêm o mesmo estilo */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .modal-header {
        padding: 12px 16px;
    }
    
    .image-info {
        padding: 12px 16px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .prompt-container {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .modal-title {
        font-size: 1rem;
    }
    
    .batch-controls {
        left: 10px;
        right: 10px;
        transform: translateY(100px);
        border-radius: 15px;
    }
    
    .batch-controls.show {
        transform: translateY(0);
    }
}