body.dark-mode .draggable:hover {
    background-color: #6c757d !important;  /* tom próximo de bg-secondary */
    border-color: #adb5bd !important;      /* tom claro do dark para contraste */
    color: #f8f9fa !important;             /* quase branco, texto visível no escuro */
}

body.dark-mode #form-area {
    background-color: #1e1e1e; /* Área de drop também escura */
    border-color: #444;
}

body.dark-mode .card-body .placeholder {
    color: #aaa;
}

body.dark-mode .image-placeholder {
    
}

body.dark-mode .image-placeholder i {
    color: #aaa;
}

.draggable {
    cursor: move;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.draggable:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.draggable .title {
    font-weight: bold;
    margin: 0;
    position: relative;
}
.draggable .icon {
    font-size: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.1);
}
.draggable .controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}
.draggable .controls button {
    background: none;
    border: 1px solid #ddd;
    padding: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    height: 24px;
    width: 24px;
}
.draggable .controls .col-count {
    display: inline-block;
    width: 24px;
    text-align: center;
    font-size: 0.8rem;
    margin: 0;
}
#form-area {
    border: 2px dashed #ccc;
    min-height: 240px;
    padding: 20px;
    background-color: #FFFFFF;
    position: relative;
}
#form-area .placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #FFFFFF;
}

#sub-form {
    border: 2px dashed #ccc;
    min-height: 120px;
    padding: 20px;
    background-color: #FFFFFF;
    position: relative;
}
#sub-form .placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #FFFFFF;
}
.image-placeholder {
    width: 100%;
    height: auto;
    max-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.image-placeholder i {
    font-size: 3rem;
    color: #888;
}
.image-preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: cover;
}
.card-body {
    min-height: 200px;
    border: 1px #ccc;
    padding: 10px;
    position: relative;
}
.card-body .placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    color: #888;
}
.card-title {
    color: white;
}

.signatureCanvas {
    border: 1px solid #ccc;
    width: 100%;
    height: 200px;
    cursor: crosshair;
}

.ui-draggable-dragging {
    position: absolute !important;
    z-index: 99999 !important;
    pointer-events: none;
}

