:root {
    --primary: #333;
    --secondary: #666;
    --accent: #4a4a4a;
    --light: #f8f9fa;
    --dark: #222;
    --text: #444;
    --border: #ddd;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --correct: #27ae60;
    --wrong: #e74c3c;
    --selected: #3498db;
}

/* Стили для быстрых карты сайта */

.sitemap-header {
            text-align: center;
            padding: 40px 0;
            margin-bottom: 30px;
            background: linear-gradient(to right, var(--primary), var(--dark));
            color: white;
            border-radius: 10px;
        }
        
        .sitemap-header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }
        
        .sitemap-header p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }
        
        .sitemap-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }
        
        .sitemap-category {
            background: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 25px;
            transition: var(--transition);
            border-left: 5px solid var(--primary);
        }
        
        .sitemap-category:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .sitemap-category h2 {
            color: var(--secondary);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .sitemap-category h2 i {
            color: var(--primary);
        }
        
        .sitemap-links {
            list-style: none;
        }
        
        .sitemap-links li {
            margin-bottom: 12px;
            padding-left: 10px;
            border-left: 2px solid var(--border);
            transition: var(--transition);
        }
        
        .sitemap-links li:hover {
            border-left: 2px solid var(--primary);
        }
        
        .sitemap-links a {
            color: var(--dark);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            transition: var(--transition);
        }
        
        .sitemap-links a:hover {
            color: var(--primary);
        }
        
        .sitemap-links a i {
            font-size: 0.9rem;
            color: var(--info);
        }

/* Стили для быстрых инструментов */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.converter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.converter-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.converter-row input, .converter-row select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.converter-row button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.converter-row button:hover {
    background: var(--dark);
}

.timer-container {
    text-align: center;
}

.timer-display {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary);
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.timer-controls button {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.timer-controls button:hover {
    background: var(--primary);
    color: white;
}

/* Decision Tree */
.decision-tree {
    text-align: center;
}

.tree-step {
    display: none;
}

.tree-step.active {
    display: block;
}

.tree-step p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.tree-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tree-result {
    display: none;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.tree-result.active {
    display: block;
}

/* Кнопки */
.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn:hover {
    background: var(--dark);
}

.secondary-btn {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

/* Canvas placeholder */
.canvas-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    text-align: center;
}

.canvas-placeholder i {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ddd;
}

/* Адаптивность для инструментов */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .converter-row {
        flex-direction: column;
    }
    
    .timer-controls {
        flex-direction: column;
    }
    
    .modeling-container {
        grid-template-columns: 1fr;
    }
}

/* Анимации для интерактивных элементов */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-card {
    animation: fadeIn 0.3s ease;
}

/* Стили для состояний загрузки */
.loading-state {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Улучшенные стили для форм */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1em;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Стили для состояний валидации */
.input-error {
    border-color: #e74c3c !important;
}

.input-success {
    border-color: #27ae60 !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
}

.success-message {
    color: #27ae60;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Стили для примеров API */
.api-service-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.api-endpoints {
    margin-top: 15px;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ddd;
}

.http-method {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    min-width: 60px;
    text-align: center;
}

.http-method.get { background: #28a745; }
.http-method.post { background: #007bff; }
.http-method.put { background: #ffc107; color: #000; }
.http-method.delete { background: #dc3545; }

.endpoint-url {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.endpoint-description {
    color: #666;
    font-size: 0.9em;
}

.try-endpoint {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Генератор документов */
.doc-generator-container {
    margin: 20px 0;
}

.doc-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.doc-type-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.doc-type-card.active {
    border-color: var(--primary);
    background: #f0f8ff;
}

.doc-type-card i {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 15px;
}

.doc-type-card h4 {
    margin: 10px 0;
    color: var(--primary);
}

.doc-type-card p {
    color: #666;
    font-size: 0.9em;
}

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

.doc-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.doc-toolbar select,
.doc-toolbar button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.doc-toolbar button {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.doc-toolbar button:hover {
    background: var(--dark);
}

#docContent {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    resize: vertical;
}

/* Расширенный поиск */
.advanced-search {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-filters-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-filter-group {
    flex: 1;
    min-width: 200px;
}

.search-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.search-filter-group select,
.search-filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-results-info {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9em;
}

.search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
}

.search-result-item {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-result-title {
    margin: 0 0 8px 0;
    color: var(--primary);
}

.search-result-preview {
    color: #666;
    line-height: 1.5;
}

.search-result-meta {
    font-size: 0.8em;
    color: #999;
    margin-top: 8px;
}

.search-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Улучшенная система заметок */
.notes-container {
    margin: 20px 0;
}

.notes-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.note-editor {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.note-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 1em;
}

.note-tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.note-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.note-tag .remove {
    cursor: pointer;
    font-weight: bold;
}

.note-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.note-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.note-card-title {
    font-weight: bold;
    margin: 0;
    flex: 1;
    margin-right: 10px;
}

.note-card-actions {
    display: flex;
    gap: 5px;
}

.note-card-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.note-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.note-card-footer {
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.notes-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tag {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.filter-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.no-notes {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-notes i {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ddd;
}

/* Интерактивные чеклисты */
.checklist-container {
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.checklist-item.checked {
    background: #f0f9ff;
    border-left-color: #4CAF50;
    text-decoration: line-through;
    color: #666;
}

.checklist-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.checklist-progress {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.progress-stats {
    font-size: 0.9em;
    color: #666;
}

.checklist-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.checklist-actions button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist-actions button:hover {
    background: #f5f5f5;
}

.checklist-actions button.reset {
    color: #e74c3c;
    border-color: #e74c3c;
}

.checklist-category {
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: #4CAF50;
}

.notification.info {
    background: #2196F3;
}

.notification.warning {
    background: #ff9800;
}

.notification.error {
    background: #f44336;
}

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

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.setting-group {
    margin: 15px 0;
}

.setting-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.setting-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Адаптивность для быстрых действий */
@media (max-width: 768px) {
    .quick-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .quick-action-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .quick-action-btn::after {
        font-size: 11px;
        right: 50px;
    }
    
    .bookmark-actions {
        position: static;
        opacity: 1;
        margin-top: 10px;
    }
}

/* Стили для тестового интерфейса */
.test-container {
    background: var(--light);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.test-settings {
    margin: 15px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.test-settings label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.test-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.test-progress, 
.test-timer {
    font-weight: bold;
}

.test-question {
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.test-options {
    margin-top: 15px;
}

.test-option {
    display: block;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.test-option:hover {
    background: #f0f8ff;
    border-color: var(--selected);
}

.test-option.selected {
    background: #e1f0fa;
    border-color: var(--selected);
}

.test-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.test-controls button {
    flex: 1;
}

.test-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-summary {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: center;
}

.result-details {
    margin-top: 20px;
}

.correct-answer {
    color: var(--correct);
    font-weight: bold;
}

.wrong-answer {
    color: var(--wrong);
    font-weight: bold;
}

/* Стили для системы закладок */
.bookmark-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 10px;
    position: relative;
    transition: all 0.3s;
}

.bookmark-btn:hover {
    color: #ffc107;
}

.bookmark-btn.active {
    color: #ffc107;
}

.bookmark-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.bookmark-btn:hover .bookmark-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Анимации */
@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.heartbeat {
    animation: heartbeat 0.5s ease;
}

.pulse {
    animation: pulse 0.3s ease;
}

/* Список закладок */
#bookmarksList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.bookmark-link {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 5px 0;
}

.bookmark-link i {
    margin-right: 8px;
    color: #ffc107;
}

.remove-bookmark {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-bookmark:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.no-bookmarks {
    padding: 15px;
    text-align: center;
    color: #6c757d;
}

.no-bookmarks i {
    font-size: 1.5em;
    margin-bottom: 5px;
    display: block;
}

/* Счетчик закладок */
.bookmarks-counter {
    display: inline-block;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    margin-left: 5px;
}

/* Уведомления для закладок */
.bookmark-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #ffc107;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.bookmark-notification.removed {
    border-left-color: #dc3545;
}

.bookmark-notification i {
    margin-right: 10px;
    font-size: 1.2em;
}

.bookmark-notification.added i {
    color: #ffc107;
}

.bookmark-notification.removed i {
    color: #dc3545;
}

.bookmark-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для карты компетенций */
.competency-intro {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.progress-summary {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: width 0.3s ease;
}

.competency-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.category-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-card h3 {
    margin-top: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.competency-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.competency-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.competency-list li:last-child {
    border-bottom: none;
}

.competency-list input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.competency-list label {
    flex-grow: 1;
    cursor: pointer;
}

.skill-level {
    display: flex;
    gap: 5px;
}

.skill-level i {
    font-size: 0.7em;
    cursor: help;
}

.skill-level .basic { color: #ff9800; }
.skill-level .advanced { color: #4caf50; }
.skill-level .expert { color: #2196f3; }

.development-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.recommendation-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.recommendation-card h4 {
    margin-top: 0;
    color: #2c3e50;
}

.recommendation-card ul {
    padding-left: 20px;
}

.recommendation-card li {
    margin-bottom: 8px;
}

.save-progress {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.save-progress button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.save-progress button:hover {
    background: #2980b9;
}

.save-progress p {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Стили для инструментов моделирования данных */
.modeling-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.modeling-editor, .modeling-output {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    background: var(--light);
    box-shadow: var(--card-shadow);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.editor-toolbar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.editor-toolbar button:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.canvas-container {
    height: 300px;
    border: 1px dashed var(--border);
    border-radius: 4px;
    background: rgba(0,0,0,0.03);
    position: relative;
    overflow: auto;
}

#er-canvas {
    width: 100%;
    height: 100%;
    min-height: 280px;
    position: relative;
}

.entity {
    position: absolute;
    width: 150px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 10px;
    cursor: move;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.entity-header {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.attribute {
    padding: 3px 0;
    font-size: 0.9em;
}

.relationship {
    position: absolute;
    height: 2px;
    background: var(--accent);
    transform-origin: 0 0;
    z-index: 5;
}

.sql-generator {
    margin-bottom: 25px;
}

.sql-preview {
    background: var(--dark);
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    white-space: pre;
    overflow: auto;
    min-height: 150px;
    max-height: 200px;
    margin-bottom: 15px;
}

#generateSqlBtn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

#generateSqlBtn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.normalization-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.norm-step {
    background: rgba(0,0,0,0.03);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.tables-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.tables-container table {
    min-width: 200px;
    border: 1px solid var(--border);
    border-collapse: collapse;
}

.tables-container th, 
.tables-container td {
    padding: 8px 12px;
    border: 1px solid var(--border);
}

.data-patterns {
    margin: 30px 0;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pattern-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    background: var(--light);
    transition: var(--transition);
}

.pattern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pattern-preview {
    height: 120px;
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
    margin: 15px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pattern-preview .entity {
    position: static;
    width: auto;
    padding: 10px 15px;
}

.apply-pattern {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.apply-pattern:hover {
    background: var(--primary);
}

.db-comparison {
    margin-top: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.comparison-table th, 
.comparison-table td {
    border: 1px solid var(--border);
    padding: 12px 15px;
    text-align: left;
}

.comparison-table th {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background: rgba(0,0,0,0.03);
}

/* Стили для режима доступности и темной темы */
body.accessibility {
    --text: #000;
    --border: #000;
    --light: #fff;
    --dark: #000;
    font-size: 18px;
    line-height: 1.8;
}

body.accessibility .section {
    border: 2px solid var(--dark);
}

body.dark-theme {
    --primary: #ddd;
    --secondary: #aaa;
    --accent: #777;
    --light: #222;
    --dark: #f0f0f0;
    --text: #e0e0e0;
    --border: #444;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .section,
body.dark-theme nav {
    background: #333;
}

body.dark-theme .highlight-box {
    background: #444;
    border-left-color: var(--accent);
}

body.dark-theme .example {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-theme .test-container {
    background: #2a2a2a;
}

body.dark-theme .test-question,
body.dark-theme .test-result {
    background: #333;
    color: #e0e0e0;
}

body.dark-theme .test-option {
    border-color: #444;
}

body.dark-theme .test-option:hover {
    background: #2a3b4d;
}

body.dark-theme .test-option.selected {
    background: #1e2a38;
}

body.dark-theme .test-header {
    border-bottom-color: #444;
}

body.dark-theme .modeling-editor, 
body.dark-theme .modeling-output,
body.dark-theme .pattern-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-theme .canvas-container {
    background: #1e1e1e;
}

body.dark-theme .entity {
    background: #4e73df;
}

body.dark-theme .sql-preview {
    background: #1a1a1a;
}

body.dark-theme .norm-step {
    background: #333;
}

body.dark-theme .pattern-preview {
    background: #252525;
}

body.dark-theme .comparison-table tr:nth-child(even) {
    background: #333;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    transition: var(--transition);
}

header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: white;
    padding: 1.5rem 2rem;
    grid-column: 1 / -1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 1.8rem;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 600;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.accessibility-toggle, .theme-toggle, .pdf-export {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.accessibility-toggle:hover, .theme-toggle:hover, .pdf-export:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-bar {
    flex: 0 1 400px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
}

nav {
    background: white;
    padding: 1.5rem 0;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
}

.nav-header {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.nav-header h2 {
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-categories {
    padding: 0 1rem;
}

.category {
    margin-bottom: 1.5rem;
}

.category h3 {
    font-size: 0.95rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 4px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--secondary);
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--dark);
}

.nav-links a:hover i, .nav-links a.active i {
    color: var(--dark);
}

main {
    padding: 2rem;
    /* max-width: 1000px; */
    margin: 0 auto;
    width: 100%;
}

.section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2 i {
    color: var(--accent);
}

.section h3 {
    color: var(--secondary);
    margin: 1.8rem 0 0.8rem;
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.section ul, .section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.section li {
    margin-bottom: 0.7rem;
}

.highlight-box {
    background: #f0f0f0;
    border-left: 4px solid var(--primary);
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.2rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.example {
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

.example-header {
    display: flex;
    align-items: center;
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.example-header i {
    margin-right: 8px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.5rem 0;
}

.quick-link {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.quick-link:hover {
    background: var(--primary);
    color: white;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.resource-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

        /* Стили для футера */
        footer {
            background: var(--dark);
            color: white;
            padding: 50px 0 0;
            grid-column: 1 / -1;
            border-top: 3px solid var(--primary);
            margin-top: 50px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .footer-container {
            display: flex;
            flex-wrap: wrap;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            gap: 30px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 250px;
            margin-bottom: 30px;
        }
        
        .footer-logo {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .footer-logo i {
            font-size: 32px;
            color: var(--primary);
            margin-right: 15px;
        }
        
        .footer-logo h3 {
            font-size: 20px;
            font-weight: 600;
            margin: 0;
            color: white;
        }
        
        .footer-description {
            line-height: 1.6;
            opacity: 0.85;
            margin-bottom: 25px;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .footer-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary);
            display: inline-block;
            color: white;
        }
        
        .footer-links {
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 12px;
            list-style: none;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: white;
            opacity: 1;
            transform: translateX(5px);
        }
        
        .footer-links i {
            margin-right: 8px;
            font-size: 12px;
            color: var(--primary);
        }
        
        .footer-contacts {
            padding: 0;
        }
        
        .footer-contacts li {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .footer-contacts i {
            width: 24px;
            color: var(--primary);
            margin-right: 10px;
        }

        .footer-contacts a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: var(--transition);
        }
        
        .footer-contacts a:hover {
            color: white;
            opacity: 1;
            transform: translateX(5px);
        }
        
        .social-links {
            margin: 25px 0;
        }
        
        .social-links h4 {
            font-size: 16px;
            margin-bottom: 15px;
            font-weight: 500;
            color: white;
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
        }
        
        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            font-size: 18px;
            transition: var(--transition);
        }
        
        .social-icons a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }
        
        .newsletter h4 {
            font-size: 16px;
            margin-bottom: 15px;
            font-weight: 500;
            color: white;
        }
        
        .subscribe-form {
            display: flex;
            gap: 10px;
        }
        
        .subscribe-form input {
            flex: 1;
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        
        .subscribe-form input::placeholder {
            color: var(--gray);
        }
        
        .subscribe-form button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .subscribe-form button:hover {
            background: #2980b9;
        }
        
        .footer-copyright {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
            opacity: 0.7;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .footer-bottom {
            background: rgba(0, 0, 0, 0.2);
            padding: 20px;
            margin-top: 30px;
        }
        
        .footer-links-bottom {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }
        
        .footer-links-bottom a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 14px;
            opacity: 0.8;
            transition: var(--transition);
        }
        
        .footer-links-bottom a:hover {
            opacity: 1;
            color: white;
            text-decoration: underline;
        }
        
        .back-to-top {
            text-align: center;
        }
        
        .back-to-top a {
            color: var(--primary);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-weight: 500;
        }
        
        .back-to-top a:hover {
            color: white;
            text-decoration: underline;
        }

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
}

.overlay {
    display: none;
}

/* Стили для API-тестера */
.api-tester {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
}

.api-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.api-controls select, .api-controls input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.api-controls select {
    width: 100px;
}

.api-controls input {
    flex: 1;
    min-width: 200px;
}

.api-controls button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.api-controls button:hover {
    background-color: #45a049;
}

.api-response {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 4px;
    max-height: 300px;
    overflow: auto;
    font-family: monospace;
    font-size: 14px;
}

.api-url {
    color: #1e6bb8;
    cursor: pointer;
    text-decoration: underline;
    word-break: break-all;
}

.api-url:hover {
    color: #0d4a9e;
}

.api-tips {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 0.9em;
    color: #555;
}

/* Прогресс-бар чтения */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--selected));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 10000;
}

.reading-progress.show {
    transform: scaleX(1);
}

/* Режим фокусировки */
.focus-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
}

.focus-mode.active {
    display: block;
}

.focus-content {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
}

.focus-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

/* Быстрые действия */
.quick-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: black;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    background: var(--primary-dark);
}

.quick-action-btn::after {
    content: attr(title);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-action-btn:hover::after {
    opacity: 1;
}

/* Улучшенные закладки */
.bookmark-section {
    position: relative;
}

.bookmark-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bookmark-section:hover .bookmark-actions {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 900px) {
    body {
        grid-template-columns: 1fr;
    }

    nav {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
    }

    .modeling-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 80px);
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    nav.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1100;
        background: rgba(255,255,255,0.2);
        border: none;
        color: white;
        padding: 8px;
        border-radius: 4px;
        font-size: 1.2rem;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 900;
    }

    .overlay.active {
        display: block;
    }
    
    .header-content {
        padding-left: 50px;
    }

    #scrollToTopBtn.desktop {
                display: none !important;
            }
    #scrollToTopBtn.mobile {
                display: block !important;
            }
    .footer-container {
                flex-direction: column;
                gap: 40px;
            }
            
            .footer-column {
                min-width: 100%;
            }
            
            .footer-links-bottom {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .subscribe-form {
                flex-direction: column;
            }
            
            .main-content {
                padding: 1rem;
            }
            
            .card-container {
                grid-template-columns: 1fr;
            }
}

@media (max-width: 600px) {
    .section {
        padding: 1.5rem;
    }

    main {
        padding: 1.5rem;
    }

    .header-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .search-bar {
        width: 100%;
    }

    .pattern-preview {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .pattern-preview .entity {
        width: 100%;
    }
}

@media (min-width: 769px) {
            #scrollToTopBtn.desktop {
                display: block !important;
            }
            #scrollToTopBtn.mobile {
                display: none !important;
            }
    }
