/* manual_view.html specific styles */

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.manual-container {
    max-width: 1000px;
    margin: 100px auto 60px;
    padding: 0 24px;
}

.manual-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-strict);
    padding-bottom: 20px;
}

.manual-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.manual-actions .btn {
    height: 40px;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.manual-actions .btn svg {
    flex-shrink: 0;
}

.manual-badge {
    display: inline-block;
    background: rgba(0, 220, 250, 0.1);
    color: var(--arigen-cyan);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 10px;
}

.manual-meta h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.manual-content {
    padding: 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strict);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.manual-editor-textarea {
    width: 100%;
    min-height: 600px;
    padding: 20px;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border-strict);
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

.manual-editor-textarea:focus {
    border-color: var(--arigen-cyan);
}

.editor-hint {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* GitHub Markdown Style Sync */
.markdown-body {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    font-size: 1.1rem;
    line-height: 1.6;
}

.markdown-body img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    max-width: 100%;
}

/* Editor & Loading View Utils */
.editor-actions-container {
    display: none;
    gap: 12px;
    align-items: center;
}

.save-btn-custom {
    background: var(--arigen-orange) !important;
    border-color: var(--arigen-orange) !important;
    color: white !important;
}

.save-btn-custom:hover {
    background: var(--arigen-orange-hover) !important;
    border-color: var(--arigen-orange-hover) !important;
}

.manual-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--arigen-cyan);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.editor-view-container {
    display: none;
}

.error-text {
    color: red;
}

.markdown-fallback {
    white-space: pre-wrap;
}
