/* ============================================
   PROPERTIES PANEL STYLES
   ============================================ */

/* Toggle Switch */
.mn-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.mn-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mn-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.mn-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #94a3b8;
    transition: 0.3s;
    border-radius: 50%;
}

.mn-toggle input:checked+.mn-toggle-slider {
    background-color: rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.6);
}

.mn-toggle input:checked+.mn-toggle-slider:before {
    transform: translateX(26px);
    background-color: #38bdf8;
}

.mn-toggle input:disabled+.mn-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Properties Panel Scrollbar */
.mn-properties-panel::-webkit-scrollbar {
    width: 8px;
}

.mn-properties-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.mn-properties-panel::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

.mn-properties-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* Button Styles */
.mn-btn-secondary {
    transition: all 0.2s;
}

.mn-btn-secondary:hover {
    background: rgba(56, 189, 248, 0.3) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-1px);
}

.mn-btn-secondary:active {
    transform: translateY(0);
}

/* Input Styles */
.mn-properties-panel input[type="text"]:focus,
.mn-properties-panel textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* Animation for panel show/hide */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mn-properties-panel {
    animation: slideInRight 0.3s ease-out;
}