/* Editor CSS */
.editor-textarea {
    width: 100%;
    height: 300px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 250px;
}

/* Dark Mode spezifische Editor-Styles */
[data-theme="dark"] .editor-textarea {
    background: rgba(30, 35, 38, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.editor-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
}

.save-button {
    background: var(--accent-green);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button:hover {
    background: #00a085;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.save-button:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Editor window specific styles */
#editor-window .window-content {
    min-width: 600px;
    max-width: 800px;
    min-height: 450px;
    max-height: 550px;
}

/* Vollbild Modus für Editor */
#editor-window.maximized .window-content {
    min-width: auto;
    max-width: none;
    min-height: auto;
    max-height: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#editor-window.maximized .editor-textarea {
    height: calc(100vh - 200px);
    max-height: none;
    flex: 1;
}

#editor-window.maximized .save-button {
    margin-top: auto;
}

/* Responsive editor */
@media (max-width: 768px) {
    .editor-textarea {
        height: 250px;
        font-size: 13px;
        padding: 15px;
    }
    
    #editor-window .window-content {
        min-width: auto;
        max-width: 100%;
    }
    
    .save-button {
        width: 100%;
        justify-content: center;
    }
}
