* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logoutBtn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#logoutBtn:hover {
    background-color: #c0392b;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

header p {
    color: #7f8c8d;
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sidebar-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.configs-list {
    margin-top: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.config-item {
    position: relative;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.config-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.config-item.active {
    background-color: #ebf8ff;
    border-color: #3498db;
    border-left-width: 4px;
}

.config-item .config-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
    padding-right: 30px;
}

.config-item .config-description {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 8px;
}

.config-item .config-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #a0aec0;
}

.config-item .config-meta span {
    background-color: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
}

.config-item .config-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.config-status.active {
    background-color: #48bb78;
}

.config-status.development {
    background-color: #ecc94b;
}

.config-status.deprecated {
    background-color: #f56565;
}

.config-status.disabled {
    background-color: #cbd5e0;
}

.loading {
    color: #95a5a6;
    font-style: italic;
    padding: 10px;
}

.editor {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.editor-header h2 {
    margin: 0;
    color: #2c3e50;
}

.api-endpoint {
    background-color: #edf2f7;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #2c3e50;
}

.form-section {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
}

.form-group.third {
    flex: 1;
}

.form-group.two-thirds {
    flex: 2;
}

.form-group.quarter {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
    margin-left: 2px;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

small {
    display: block;
    margin-top: 4px;
    color: #7f8c8d;
    font-size: 0.8rem;
}

.code-editor {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    border: none;
}

.code-editor:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3498db;
}

.slug-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.slug-prefix {
    background-color: #edf2f7;
    padding: 10px 12px;
    color: #4a5568;
    font-family: monospace;
    border-right: 1px solid #ddd;
}

.slug-input-group input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.slug-input-group input:focus {
    box-shadow: none;
    outline: none;
}

.api-url-preview {
    margin-top: 10px;
    padding: 10px;
    background-color: #ebf8ff;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.api-url-preview code {
    display: inline-block;
    margin: 5px 0;
    padding: 5px 10px;
    background-color: #fff;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
}

#apiSlug:invalid {
    border-color: #fc8181;
}

#apiSlug:invalid:focus {
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

.slug-status {
    margin-top: 5px;
    font-size: 0.85rem;
}

.slug-status.available {
    color: #48bb78;
}

.slug-status.unavailable {
    color: #f56565;
}

.headers-container {
    margin-bottom: 10px;
}

.header-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.header-row input {
    flex: 1;
    padding: 8px 12px;
}

.test-panel {
    background-color: #ebf8ff;
    border-color: #90cdf4;
}

.test-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.test-result {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.test-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.test-result-header h4 {
    margin: 0;
    color: #2c3e50;
}

.test-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.test-status.success {
    background-color: #c6f6d5;
    color: #22543d;
}

.test-status.error {
    background-color: #fed7d7;
    color: #742a2a;
}

.test-result-data {
    max-height: 300px;
    overflow: auto;
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid #e2e8f0;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
}

.endpoint-url {
    background-color: #edf2f7;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 20px 0;
    word-break: break-all;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group.half,
    .form-group.third,
    .form-group.quarter,
    .form-group.two-thirds {
        width: 100%;
    }
}
/* Добавьте в конец файла */

.highlight-section {
    background-color: #f0f9ff;
    border-left: 4px solid #3498db;
}

.highlight-section h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.section-description {
    background-color: #e8f4f8;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #2c3e50;
    border-left: 3px solid #3498db;
}

.section-description code {
    background-color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e74c3c;
    font-family: monospace;
}

.onec-query {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background-color: #1e2b3a;
    color: #e8e8e8;
    border-left: 4px solid #3498db;
}

.onec-query:focus {
    background-color: #1a2634;
    color: #ffffff;
}

#queryParamName {
    font-family: monospace;
    background-color: #f8f9fa;
}