/* Update Engine Dark Glassmorphism Styling */
.updater-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 16px;
    color: #f8fafc;
}

.updater-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

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

.target-badge {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Meta Inputs */
.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.meta-grid .form-group:last-child {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #3b82f6;
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 4px;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

.tool-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tool-btn.highlight {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.color-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.color-btn:hover {
    transform: scale(1.2);
}

/* Document Canvas & Content Blocks */
.document-canvas {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-block {
    position: relative;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px;
    transition: border-color 0.2s ease;
}

.content-block:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.block-controls {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.content-block:hover .block-controls {
    opacity: 1;
}

.block-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Content Editable Types */
.editable-element {
    outline: none;
    line-height: 1.6;
}

.editable-element[data-type="heading"] {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f8fafc;
}

.editable-element[data-type="paragraph"] {
    font-size: 1rem;
    color: #cbd5e1;
}

/* Glassy Highlight Box */
.editable-glass-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.editable-glass-box .editable-element {
    color: #f1f5f9;
    font-size: 0.95rem;
}

/* Code Block */
.editable-code {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: monospace;
    padding: 14px;
    border-radius: 8px;
    color: #38bdf8;
    font-size: 0.88rem;
}

/* Modal Styling */
.modal-card.width-large {
    max-width: 680px;
    width: 90%;
}

.published-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.published-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #f8fafc;
}

.published-info p {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.published-actions {
    display: flex;
    gap: 8px;
}
