body {
    display: flex;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    height: 100vh;
    box-sizing: border-box;
}

.main-content {
    flex: 1;
    margin-right: 20px;
    overflow-y: auto;
    height: calc(100vh - 40px);
}

.filter-sidebar {
    width: 320px;
    min-width: 320px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e5eb;
    padding: 20px;
    height: 800px;
    max-height: 800px;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.filter-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
}

.row {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.name-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.row-number {
    background-color: #3498db;
    color: white;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.name {
    font-weight: bold;
    font-size: 1.3em;
    color: #2c3e50;
}

.description {
    color: #7f8c8d;
    margin: 8px 0 8px 40px;
    font-size: 0.95em;
}

.request, .response {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 8px 0 8px 40px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    border-left: 3px solid #3498db;
}

.response {
    border-left-color: #2ecc71;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0 40px;
}

.writtenin, .type, .usage {
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
}

.writtenin {
    background-color: #e8f4fc;
    color: #2980b9;
    border: 1px solid #d1e7f7;
}

.type {
    background-color: #f0f7f0;
    color: #27ae60;
    border: 1px solid #d4efdf;
}

.usage-Yes {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.usage-No {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Стили для текстовых фильтров */
.text-filter {
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    overflow: hidden;
}

.text-filter-header {
    padding: 15px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e1e5eb;
}

.text-filter-content {
    padding: 15px;
    background-color: white;
}

.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    transition: all 0.2s;
    box-sizing: border-box;
}

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

.filter-input::placeholder {
    color: #aaa;
}

.filter-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-clear:hover {
    color: #666;
}

.input-wrapper {
    position: relative;
}

.dropdown-section {
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-header {
    padding: 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.dropdown-header:hover {
    background-color: #e9ecef;
}

.dropdown-header.active {
    background-color: #3498db;
    color: white;
    border-bottom-color: #2980b9;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.dropdown-header.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: white;
}

.dropdown-content.expanded {
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-options {
    padding: 10px;
}

.filter-option {
    display: block;
    margin-bottom: 8px;
    padding: 10px 12px;
    cursor: pointer;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95em;
    border: 1px solid #eaeaea;
}

.filter-option:hover {
    background-color: #e9ecef;
    border-color: #d1d5db;
}

.filter-option.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.filter-reset {
    display: block;
    padding: 12px;
    margin-top: 10px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.2s;
}

.filter-reset:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}

.hidden {
    display: none;
}

.filter-count {
    display: block;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    border: 1px solid #e1e5eb;
    margin-bottom: 10px;
}

.active-filters {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 10px;
    min-height: 20px;
}

/* Custom scrollbars */
.filter-content::-webkit-scrollbar,
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.filter-content::-webkit-scrollbar-track,
.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb,
.dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb:hover,
.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 15px;
        height: auto;
    }
    
    .main-content {
        margin-right: 0;
        margin-bottom: 20px;
        height: auto;
        overflow-y: visible;
    }
    
    .filter-sidebar {
        width: 100%;
        position: static;
        height: auto;
        max-height: none;
    }
    
    .filter-content {
        overflow-y: visible;
    }
    
    .description,
    .request,
    .response,
    .meta-info {
        margin-left: 15px;
    }
}

@media (max-height: 900px) {
    .filter-sidebar {
        height: calc(100vh - 40px);
        max-height: calc(100vh - 40px);
    }
}