/* PDF Designer Layout */
.pdf-designer-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-color);
    z-index: 9999;
}

.designer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.designer-title-input {
    font-size: 1.2rem;
    font-weight: bold;
    border: 1px solid transparent;
    background: transparent;
    padding: 5px 10px;
    width: 300px;
}

.designer-title-input:focus {
    border: 1px solid var(--primary-color);
    background: var(--bg-color);
    outline: none;
}

.designer-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.designer-sidebar {
    width: 250px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section h4 {
    padding: 0 15px;
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.designer-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.designer-tabs li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.designer-tabs li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.designer-tabs li.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.designer-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.designer-editor-container {
    flex: 1;
    height: 100%;
}

.designer-live-preview {
    flex: 1;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: #fff; /* Preview is usually white */
}

.preview-header {
    padding: 10px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-weight: bold;
}

.preview-iframe {
    flex: 1;
    border: none;
    width: 100%;
    background: white;
}
