/* File: assets/cmp-style.css */

/* Overlay background */
.cmp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.cmp-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Popup box */
.cmp-popup {
    background: #fff;
    padding: 30px;             /* <-- padding inside the popup */
    border-radius: 12px;       /* <-- rounded corners */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: auto;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}
.cmp-popup.top-center {
    align-self: flex-start;
    margin-top: 5%;
}

.cmp-popup.mid-center {
    align-self: center;
}

.cmp-popup.bottom-center {
    align-self: flex-end;
    margin-bottom: 5%;
}

/* Close button */
.cmp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #333;
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

/* Admin Color Preview */
input[type="color"] {
    vertical-align: middle;
    margin-left: 10px;
    width: 40px;
    height: 30px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}