/* Styles cho các phần tử có thể kéo thả */

.draggable-element {
    position: fixed !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease !important;
    border-radius: 5px;
    overflow: hidden;
}

/* Thanh tiêu đề kéo thả */
.drag-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 22px;
    background: linear-gradient(to right, rgba(0, 80, 0, 0.8), rgba(0, 40, 0, 0.8));
    cursor: grab;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    z-index: 100;
    user-select: none;
}

.datetime-container.minimized .clock {
    padding: 0;
    text-align: center;
    width: 100%;
    display: block !important;
}

.drag-header:active {
    cursor: grabbing;
}

/* Nút điều khiển */
.drag-controls {
    display: flex;
    gap: 8px;
    opacity: 1;
}
.datetime-container {
    height: auto !important;
    min-height: 20px;
}

.drag-button {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.drag-button:hover {
    transform: scale(1.1);
    background: rgba(0, 50, 0, 0.8);
}

.drag-title {
    font-size: 10px;
    color: rgba(0, 255, 0, 0.8);
    font-family: "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hiệu ứng khi kéo thả */
.dragging {
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7) !important;
    transform: scale(1.02);
}

/* Hiệu ứng hover */
.draggable-element:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Hiệu ứng ghost khi kéo thả */
.drag-ghost {
    border: 2px dashed rgba(0, 255, 0, 0.5);
    background: rgba(0, 20, 0, 0.2);
    pointer-events: none;
}

/* Animation khi đặt lại vị trí */
@keyframes resetAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.reset-animation {
    animation: resetAnimation 0.5s ease;
}

/* Thêm padding cho các phần tử có thanh kéo thả */
.datetime-container, .discord-activity, .changelog-box {
    padding-top: 30px !important;
}

/* Hiệu ứng snap vào lưới */
@keyframes snapEffect {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-2px) translateY(-2px); }
    50% { transform: translateX(2px) translateY(2px); }
    75% { transform: translateX(-1px) translateY(-1px); }
    100% { transform: translateX(0) translateY(0); }
}

.snap-effect {
    animation: snapEffect 0.3s ease;
}

