/* Studio Modal Styles */
.sw-studio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.sw-studio-modal.is-open {
    display: flex;
}

.sw-studio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
}

.sw-studio-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sw-studio-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-studio-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.sw-studio-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #64748b;
}

.sw-studio-content {
    flex: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px;
}

.sw-studio-workspace {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    max-height: 100%;
    user-select: none;
}

.sw-studio-outline {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    pointer-events: none;
}

.sw-studio-logo-wrapper {
    position: absolute;
    cursor: move;
    border: 1px dashed transparent;
    transition: border-color 0.2s;
}

.sw-studio-logo-wrapper:hover {
    border-color: #2563eb;
}

.sw-studio-logo {
    display: block;
    max-width: 200px;
    pointer-events: none;
}

.sw-studio-resizer {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #2563eb;
    border-radius: 50%;
    cursor: nwse-resize;
    border: 2px solid white;
}

.sw-studio-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.sw-studio-actions {
    display: flex;
    gap: 12px;
}

.sw-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.sw-btn-secondary:hover {
    background: #e2e8f0;
}