.xml-editor-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
}

.xml-editor-toolbar {
    background: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.xml-editor-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.xml-editor-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 15px;
}

.xml-editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.xml-editor-tabs {
    display: flex;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.xml-editor-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-right: 1px solid #dee2e6;
    background: #f8f9fa;
    transition: all 0.3s;
}

.xml-editor-tab.active {
    background: #fff;
    border-bottom: 2px solid #1e40af;
    font-weight: 600;
}

.xml-editor-tab:hover {
    background: #e9ecef;
}

.xml-editor-panel {
    flex: 1;
    overflow: hidden;
    display: none;
}

.xml-editor-panel.active {
    display: flex;
    flex-direction: column;
}

.CodeMirror {
    height: 100%;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.xml-tree-view {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xml-tree-item {
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
}

.xml-tree-item:hover {
    background: #e9ecef;
}

.xml-tree-item.selected {
    background: #1e40af;
    color: white;
}

.xml-tree-item.has-children::before {
    content: '▶';
    display: inline-block;
    width: 15px;
    margin-right: 5px;
    transition: transform 0.2s;
}

.xml-tree-item.expanded::before {
    transform: rotate(90deg);
}

.xml-tree-children {
    margin-left: 20px;
    display: none;
}

.xml-tree-item.expanded + .xml-tree-children {
    display: block;
}

.xml-form-editor {
    padding: 20px;
    overflow-y: auto;
}

.xml-form-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.xml-form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.xml-form-group input,
.xml-form-group textarea,
.xml-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.xml-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.xml-preview {
    padding: 20px;
    background: #1e1e1e;
    overflow: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre;
    word-wrap: break-word;
    color: #d4d4d4;
    line-height: 1.6;
}

.xml-preview.error {
    color: #dc3545;
    background: #fff;
}

.xml-preview pre.xml-formatted {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    white-space: pre;
    word-wrap: normal;
    overflow-x: auto;
}

.xml-preview .xml-tag {
    color: #569cd6;
}

.xml-preview .xml-tag-name {
    color: #4ec9b0;
    font-weight: 600;
}

.xml-preview .xml-attr {
    color: #9cdcfe;
}

.xml-preview .xml-attr-name {
    color: #92c5f7;
}

.xml-preview .xml-attr-value {
    color: #ce9178;
}

.xml-preview .xml-declaration {
    color: #808080;
    font-style: italic;
}

.xml-preview .xml-comment {
    color: #6a9955;
    font-style: italic;
}

.xml-validation-result {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.xml-validation-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.xml-validation-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-xml {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-xml-primary {
    background: #1e40af;
    color: white;
}

.btn-xml-primary:hover {
    background: #1e3a8a;
}

.btn-xml-secondary {
    background: #6c757d;
    color: white;
}

.btn-xml-secondary:hover {
    background: #5a6268;
}

.btn-xml-success {
    background: #28a745;
    color: white;
}

.btn-xml-success:hover {
    background: #218838;
}

.btn-xml-danger {
    background: #dc3545;
    color: white;
}

.btn-xml-danger:hover {
    background: #c82333;
}

.btn-xml.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.xml-template-selector {
    margin-bottom: 15px;
}

.xml-template-selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.xml-attribute-list {
    margin-top: 10px;
}

.xml-attribute-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.xml-attribute-item input {
    flex: 1;
}

.xml-drag-over {
    background: #e3f2fd !important;
    border: 3px dashed #1e40af !important;
    position: relative;
}

.xml-drag-over::before {
    content: 'Dosyayı buraya bırakın';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #1e40af;
    z-index: 1000;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.xml-node-info {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.xml-node-info h5 {
    margin: 0 0 10px 0;
    color: #1e40af;
}

.xml-node-info p {
    margin: 5px 0;
    font-size: 13px;
    color: #6c757d;
}

.xml-search-box {
    margin-bottom: 15px;
}

.xml-search-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.xml-stats {
    display: flex;
    gap: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.xml-stat-item {
    display: flex;
    flex-direction: column;
}

.xml-stat-label {
    color: #6c757d;
    font-size: 11px;
}

.xml-stat-value {
    font-weight: 600;
    color: #1e40af;
}

@media (max-width: 768px) {
    .xml-editor-main {
        flex-direction: column;
    }

    .xml-editor-sidebar {
        width: 100%;
        max-height: 200px;
    }
}

