.animate-pulse {
    animation: pulse-green 1.5s infinite;
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.editor-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    display: block !important;
}
.editor-panel.visible {
    transform: translateY(0) !important;
}
.editor-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.btn-close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.collage-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 10px;
}
.collage-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.toolbar-controls .btn {
    font-size: 0.8rem;
    padding: 5px 10px;
}
.preview-side .fixed-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.preview-side .btn-tool {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.preview-side .btn-tool:hover {
    background: rgba(0,0,0,0.7);
}
.bottom-actions {
    display: flex;
    gap: 12px;
}
.bottom-actions .btn {
    flex: 1;
    border-radius: 30px !important;
    padding: 8px 12px;
    font-weight: bold;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
.preview-side .post-text-overlay {
    position: absolute !important;
    cursor: grab;
    pointer-events: auto !important;
    padding: 5px;
    z-index: 50;
    width: auto !important;
    min-width: 20px;
    max-width: 90%;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0,0,0,0.9);
    text-align: center;
    touch-action: none;
    user-select: none;
    display: inline-block !important;
    margin: 0 !important;
    transform: none !important;
}
.preview-side .post-text-overlay:active {
    cursor: grabbing;
}
.btn-visibility {
    background: rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.8) !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.btn-visibility:hover {
    background: rgba(0,0,0,0.45) !important;
    border-color: rgba(255,255,255,0.25) !important;
}
.btn-visibility:has(input:checked) {
    background: rgba(25, 135, 84, 0.3) !important;
    border-color: #198754 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.3);
}
.cancel-btn, .publicar-btn {
    background: rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    box-shadow: none !important;
}
.cancel-btn:hover, .publicar-btn:hover {
    background: rgba(0,0,0,0.45) !important;
    border-color: rgba(255,255,255,0.25) !important;
}
