/* Modal Styles */
.scdev-sb-v2-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.scdev-sb-v2-modal.show {
    opacity: 1;
    visibility: visible;
}

.scdev-sb-v2-modal.scdev-hidden {
    display: none !important;
}

.scdev-sb-v2-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.scdev-sb-v2-modal-content {
    position: relative;
    z-index: 10001;
    background: var(--scdev-bg-primary);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.scdev-sb-v2-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--scdev-border-light);
    background: var(--scdev-bg-secondary);
    border-radius: 8px 8px 0 0;
    position: relative;
    flex-shrink: 0;
}

.scdev-sb-v2-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0066cc;
    text-align: center;
    flex: 1;
}

.scdev-sb-v2-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: var(--scdev-text-secondary);
    transition: color 0.2s;
    font-weight: 300;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 12px;
}

.scdev-sb-v2-modal-close:hover {
    color: var(--scdev-text-primary);
}

.scdev-sb-v2-modal-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
}

.scdev-sb-v2-section {
    margin-bottom: 8px;
}
