/* Fundo escurecido atrás da janela */
.modal-cortador-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 10005;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}

/* A janela flutuante em si */
.modal-cortador-content {
    background: #1e1e1e; width: 95%; max-width: 600px;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    border: 1px solid #8B4513; display: flex; flex-direction: column;
    overflow: hidden; animation: zoomInCortador 0.3s ease;
}

@keyframes zoomInCortador {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Cabeçalho da janela */
.cortador-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: #111; border-bottom: 1px solid #333;
}

.cortador-header h3 { 
    color: #e74c3c; margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px;
}

/* Botão de fechar (X) */
.btn-fechar-cortador {
    background: none; border: none; color: #aaa; font-size: 18px; cursor: pointer; transition: 0.3s;
}
.btn-fechar-cortador:hover { color: #fff; transform: scale(1.2); }

/* Corpo onde a foto fica */
.cortador-body {
    padding: 20px; background: #222; display: flex; justify-content: center; align-items: center;
    max-height: 55vh;
}

.cortador-img-container {
    width: 100%; height: 50vh; text-align: center; background: #000;
}

.cortador-img-container img {
    max-width: 100%; max-height: 100%; display: block; margin: 0 auto;
}

/* Rodapé onde fica o botão de baixar */
.cortador-footer {
    padding: 15px 20px; background: #111; border-top: 1px solid #333; text-align: center;
}

.cortador-dica {
    color: #888; font-size: 12px; margin-bottom: 12px;
}

/* Botão bonito de Baixar */
.btn-baixar-recorte {
    background: linear-gradient(45deg, #e74c3c, #c0392b); color: #fff;
    border: none; padding: 12px 30px; border-radius: 25px; font-weight: bold;
    font-size: 16px; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(231,76,60,0.4);
    display: inline-flex; align-items: center;
}

.btn-baixar-recorte:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231,76,60,0.6);
    background: linear-gradient(45deg, #ff6b5b, #e74c3c);
}