/* YAML Beautifier Tool Styles */
.yaml-beautifier-tool {
    margin-bottom: 2rem;
}

.yaml-tool-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.yaml-toolbar {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.yaml-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.control-select,
.control-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #ffffff;
    color: #212529;
    transition: all 0.2s ease;
    min-width: 100px;
}

.control-select:focus,
.control-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.control-input {
    width: 80px;
}

.control-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-top: 1.5rem;
}

.control-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0d6efd;
}

.yaml-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #0d6efd;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.btn-icon {
    font-size: 1rem;
}

/* Editor Panels */
.yaml-editors-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

.editor-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.panel-title-group {
    flex: 1;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
}

.panel-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.btn-sample {
    padding: 0.375rem 0.75rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-sample:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.panel-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-error {
    background: #f8d7da;
    color: #842029;
}

.editor-wrapper {
    position: relative;
    flex: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.editor {
    flex: 1;
    min-height: 400px;
    border-radius: 0;
}

.editor-status {
    padding: 0.5rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-text {
    font-size: 0.75rem;
    color: #6c757d;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
}

.status-indicator.success {
    background: #198754;
}

.status-indicator.error {
    background: #dc3545;
}

/* Converters Section */
.yaml-converters {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.converter-header {
    margin-bottom: 1rem;
}

.converter-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.converter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-converter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-converter:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
}

.converter-icon {
    font-size: 1rem;
}

/* ACE Editor Customization */
.ace-xcode .ace_content .ace_variable {
    color: #2d5ada;
}

.ace-xcode .ace_content .ace_string {
    color: #cc5b5c;
}

.ace-xcode .ace_content .ace_constant.ace_numeric {
    color: #008100;
}

.ace-xcode .ace_content .ace_boolean {
    color: #0b7500;
}

.ace-github {
    background: #f6f7f9;
}

.ace-github .ace_gutter {
    background: #f6f7f9;
}

.ace-github .ace_error {
    display: none;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .yaml-editors-container {
        grid-template-columns: 1fr;
    }
    
    .editor-wrapper {
        min-height: 300px;
    }
    
    .editor {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .yaml-toolbar {
        padding: 1rem;
    }
    
    .yaml-controls {
        gap: 0.75rem;
    }
    
    .control-group {
        flex: 1;
        min-width: calc(50% - 0.375rem);
    }
    
    .control-input {
        width: 100%;
    }
    
    .yaml-actions {
        width: 100%;
    }
    
    .btn-action {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 0.375rem);
    }
    
    .yaml-editors-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .btn-sample {
        width: 100%;
    }
    
    .editor-wrapper {
        min-height: 250px;
    }
    
    .editor {
        min-height: 250px;
    }
    
    .yaml-converters {
        padding: 1rem;
    }
    
    .converter-buttons {
        width: 100%;
    }
    
    .btn-converter {
        flex: 1;
        justify-content: center;
        min-width: calc(33.333% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .btn-action span:not(.btn-icon) {
        display: none;
    }
    
    .btn-action {
        min-width: auto;
        padding: 0.625rem;
    }
    
    .btn-converter span:not(.converter-icon) {
        display: none;
    }
    
    .btn-converter {
        min-width: auto;
        padding: 0.625rem;
    }
    
    .control-group {
        min-width: 100%;
    }
}