
/* --- Link & Social Editing --- */
.link-edit-controls, .social-edit-controls {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    gap: 5px;
    z-index: 20;
}

.demo-edit-btn, .demo-delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: white;
    transition: transform 0.2s;
}

.demo-edit-btn { background: #4070AB; } /* Blue for Edit */
.demo-delete-btn { background: #E23E57; } /* Red for Delete */

.demo-edit-btn:hover, .demo-delete-btn:hover { transform: scale(1.1); }

/* Ensure relative positioning for containers */
.album-link-capsule,
.spotify-track-link,
.youtube-embed-container,
.social-icons a {
    position: relative;
}

/* Specific fix for Social Icons which are inline-block */
.social-icons a {
    display: inline-block;
    /* Increase margin to fit buttons if needed, but absolute positioning handles it */
}

/* Fix for Youtube Container overflow hidden */
.youtube-embed-container {
    overflow: visible !important;
}
/* But inner content needs hidden for border radius */
.youtube-preview-inner {
    overflow: hidden;
}

/* Modal Simple Edit */
#modal-simple-edit .input-group { margin-bottom: 15px; text-align: left; }
#modal-simple-edit label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; }
#modal-simple-edit input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ccc; box-sizing: border-box; }

/* --- FORCE MODAL VISIBILITY --- */
.modal.is-open {
    display: block !important;
}

/* --- Driver.js Theme Overrides --- */
.driver-popover {
    --driver-popover-bg: #1E1E1E;
    --driver-popover-text-color: #f1f1f1;
    --driver-popover-title-text-color: #E23E57;
    --driver-popover-close-btn-color: #ccc;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Nunito Sans', sans-serif;
    z-index: 100000 !important; /* Ensure on top of everything */
}

.driver-popover-title {
    font-weight: 800;
    font-size: 1.2rem;
}

.driver-popover-description {
    line-height: 1.6;
}

/* Buttons */
.driver-popover-footer button {
    border-radius: 50px !important;
    font-weight: bold !important;
    padding: 8px 16px !important;
    border: none !important;
    text-shadow: none !important;
    transition: transform 0.2s;
}

.driver-popover-footer .driver-popover-next-btn {
    background-color: #E23E57 !important;
    color: #fff !important;
}

.driver-popover-footer .driver-popover-next-btn:hover {
    background-color: #c92a42 !important;
    transform: scale(1.05);
}

.driver-popover-footer .driver-popover-prev-btn {
    background-color: transparent !important;
    color: #aaa !important;
    border: 1px solid #444 !important;
}

.driver-popover-footer .driver-popover-prev-btn:hover {
    color: #fff !important;
    border-color: #fff !important;
}

/* Overlay z-index fix */
.driver-overlay {
    z-index: 99999 !important;
}
