/*
 * ===========================================
 *               МАРШРУТЫ
 * ===========================================
 */

/* Список пользовательских маршрутов */
.custom-routes-section {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.custom-routes-section h3 {
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--color-gray-800);
    font-size: 18px;
    font-weight: 600;
}

.custom-route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.custom-route-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.custom-route-item:last-child {
    margin-bottom: 0;
}

.route-info {
    flex: 1;
}

.route-name {
    font-weight: 600;
    color: var(--color-gray-800);
    display: block;
    margin-bottom: 0;
}

.route-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all var(--transition-normal);
}

.edit-btn:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
}

.delete-btn {
    background: var(--color-danger);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: all var(--transition-normal);
}

.delete-btn:hover {
    background: var(--color-danger-hover);
    transform: scale(1.05);
}

/* Анонимные маршруты */
.anonymous-route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--color-warning-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    background-color: rgba(255, 193, 7, 0.05);
}

.anonymous-route-item:hover {
    border-color: var(--color-warning);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
    transform: translateY(-1px);
}

.anonymous-route-item:last-child {
    margin-bottom: 0;
}

/* Настройки маршрута в карточке */
.route-settings {
    padding: 10px 0 0 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.route-settings .setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.route-threshold-input {
    width: 100px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.route-threshold-input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.route-telegram-checkbox {
    cursor: pointer;
}

.route-telegram-checkbox:disabled {
    cursor: not-allowed;
}

.route-header-top {
    padding-bottom: 8px;
}