.editor-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-gray);
}

.editor-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    align-items: flex-start;
}

/* Document Editor Container */
.document-editor-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 700px;
}

.editor-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #FAFAFA;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot.close {
    background-color: #FF5F56;
}

.window-dot.minimize {
    background-color: #FFBD2E;
}

.window-dot.maximize {
    background-color: #27C93F;
}

.editor-header-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.editor-live-badge {
    background-color: #D1FAE5;
    color: #005F54;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.editor-live-badge i {
    font-size: 0.5rem;
}

/* Editor Body Area */
.editor-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.editor-title-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: transparent;
}

.editor-title-input::placeholder {
    color: #E5E7EB;
}

/* Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-btn {
    background: none;
    border: none;
    color: #4B5563;
    font-size: 1rem;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #E5E7EB;
    color: var(--text-dark);
}

.toolbar-select {
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.editor-textarea {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4B5563;
    background: transparent;
}

.editor-textarea ul, .editor-textarea ol {
    margin-left: 2rem;
    padding-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.editor-textarea ul {
    list-style-type: disc;
}

.editor-textarea ol {
    list-style-type: decimal;
}

.editor-textarea li {
    margin-bottom: 0.25rem;
}

.editor-textarea::placeholder {
    color: #9CA3AF;
}

/* Deployment Sidebar */
.deployment-sidebar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: fit-content;
}

.deployment-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.deployment-desc {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
    margin-top: 1rem;
}

.deployment-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deployment-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.deployment-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234B5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type="date"].deployment-select {
    background-image: none;
}

.deployment-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-publish-main {
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-publish-main:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
}

.btn-draft-secondary {
    width: 100%;
    background-color: var(--white);
    color: #6B7280;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-draft-secondary:hover {
    background-color: #F9FAFB;
    color: var(--text-dark);
}

.security-footer {
    border-top: 1px solid #F3F4F6;
    padding-top: 1.5rem;
    text-align: center;
}

.security-footer-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.security-footer-sub {
    font-size: 0.6rem;
    color: #D1D5DB;
    text-transform: uppercase;
}

/* Lower Sub Section */
.drafts-container {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drafts-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.draft-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1rem;
}

.drafts-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.drafts-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.drafts-empty-state {
    border: 1px dashed #D1D5DB;
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Secondary Topbar */
.editor-secondary-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #F9FAFB;
    border-bottom: 1px solid var(--border-color);
}

.btn-exit-editor {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-exit-editor:hover {
    background: #F3F4F6;
}

.editor-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-quick-save {
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quick-save:hover {
    background: #E0E7FF;
}

.editing-status {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editing-status strong {
    color: var(--text-dark);
    font-weight: 800;
}

/* Publish to Staff Large Area */
.editor-publish-area {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 2rem;
}

.btn-publish-large {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 1.25rem 4rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s;
}

.btn-publish-large:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.publish-subtext {
    font-size: 0.65rem;
    font-weight: 800;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Simulated Draft Cards */
.draft-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #F9FAFB;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.draft-item:hover {
    background-color: var(--white);
    border-color: #D1D5DB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.draft-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.draft-item-status {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 1024px) {
    .editor-content-wrapper {
        grid-template-columns: 1fr;
    }
}